Microsoft KB Archive/189533

= PRB: MAPI_E_FAILONEPROVIDER Accessing Public Folder Through ASP =

Article ID: 189533

Article Last Modified on 11/22/2005

-

APPLIES TO


 * Microsoft Collaboration Data Objects 1.1
 * Microsoft Collaboration Data Objects 1.2
 * Microsoft Collaboration Data Objects 1.21

-



This article was previously published under Q189533



SYMPTOMS
When attempting to access a property or the Folders collection of the Public Folder Information store from an Active Server Pages (.asp) page, the following error may occur:

MAPI_E_FAILONEPROVIDER (8004011D).



CAUSE
Here are two possible reasons for this error:
 * Attempting to step through the tree of the Public Folder Store instead of using the GetFolder method of the Session object to retrieve the folder you are trying to open.
 * Insufficient permissions to the mailbox that you were logged onto. In this case, you may also find that you randomly see "ASP 0115" errors when attempting to run the .asp page.



RESOLUTION
These resolutions match the causes listed in the CAUSE section:

 For information and sample code on how to properly access folders of the Public Folder Information store, please see the following article in the Microsoft Knowledge Base:

178552 HOWTO: View Public Folder Contents from an ASP Page

 Verify the following to ensure proper permissions to the Exchange Server. For simplicity, this article assumes that Internet Information Server (IIS) is on the same computer as the Exchange Server.

Determine the authentication being used by IIS for this .asp page:

 Windows NT Challenge/Response or Basic Authentication:

The Windows NT User that is running the .asp page must have appropriate permissions to the mailbox that the .asp page is logging onto. Verify that the Exchange or Outlook clients can open the mailbox and public folders without being prompted for authentication. Anonymous Access:

If you are accessing IIS as the Anonymous user, you should either logon to the Exchange Server as an Anonymous user. To logon to Exchange as an anonymous user, please see the instructions in the Remarks section of the "Logon Method (Session Object)" article in the Microsoft Developer Network (MSDN) Library.  You may use the following Visual Basic Scripting Edition code in your .asp to help you verify the authentication method and user:

Sample Code <%          Option Explicit Response.Expires = 0

Function BAuthenticateUser Dim strAT On Error Resume Next

BAuthenticateUser = False strAT = Request.ServerVariables("AUTH_TYPE")

Response.Write "Authentication: " & strAT & " " Response.Write "NT User: " & _ Request.ServerVariables("LOGON_USER") & " "

If InStr(1, "_BasicNTLM", strAT, vbTextCompare) < 2 Then Response.Buffer = True Response.Status = ("401 Unauthorized") Response.AddHeader "WWW.Authenticate", "Basic" Response.End Else BAuthenticateUser = True End If          End Function

BAuthenticateUser %> If you receive the

ASP 0115

error during your testing, you may need to stop and start the "World Wide Web Publishing Service" and "IIS Admin Service" from the Services Control Panel before performing the preceding steps.  </li></ol>

Additional query words: CdoE_FAILONEPROVIDER ActMsgE_FAILONEPROVIDER

Keywords: kbmsg kbprb kbcode KB189533

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.