C
Cyril Tiwari
Hi,
I created an aspx page on my local machine that logs the number of
contacts I have in my Outlook 2002 client. (pls see code below)
---------------------------------------------------------------------------
Dim objOutlookApp As Outlook.Application
Dim objOutlookNamespace As Outlook.NameSpace
Dim objContact As Object
Dim objOutlookItems As Outlook.Items
Dim objOutlookItem As Outlook.ContactItem
objOutlookApp = New Outlook.Application()
objOutlookNamespace = objOutlookApp.GetNamespace("mapi")
objContact = objOutlookNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
objOutlookItems = objContact.Items
Log.writeLog("Num Contacts : " & objOutlookItems.Count())
---------------------------------------------------------------------------
This code works fine, so, I uploaded this code to our staging server,
STAGE_SERV. I created a domain acct called ASPNET and put it in the
administrator's group on STAGE_SERV. Then, I edited the machine.config
file on STAGE_SERV as follows :
-----------------------------------------------------------------------------
(Under the processModel section)
userName="<domain_name>\ASPNET"
assword = "<ASPNET_domain_password>"
-----------------------------------------------------------------------------
Lastly, in gave STAGE_SERV\ASPNET read access to my local Outlook.exe
client.
When I browse to the application on STAGE_SERV, instead of getting the
number of Outlook contacts in my Outlook 2002 client, I get the
following message :
System.Runtime.InteropServices.COMException (0x80080005): Server
execution failed
Any help would be greatly appreciated.
Thanks in advance.
I created an aspx page on my local machine that logs the number of
contacts I have in my Outlook 2002 client. (pls see code below)
---------------------------------------------------------------------------
Dim objOutlookApp As Outlook.Application
Dim objOutlookNamespace As Outlook.NameSpace
Dim objContact As Object
Dim objOutlookItems As Outlook.Items
Dim objOutlookItem As Outlook.ContactItem
objOutlookApp = New Outlook.Application()
objOutlookNamespace = objOutlookApp.GetNamespace("mapi")
objContact = objOutlookNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
objOutlookItems = objContact.Items
Log.writeLog("Num Contacts : " & objOutlookItems.Count())
---------------------------------------------------------------------------
This code works fine, so, I uploaded this code to our staging server,
STAGE_SERV. I created a domain acct called ASPNET and put it in the
administrator's group on STAGE_SERV. Then, I edited the machine.config
file on STAGE_SERV as follows :
-----------------------------------------------------------------------------
(Under the processModel section)
userName="<domain_name>\ASPNET"
assword = "<ASPNET_domain_password>"
-----------------------------------------------------------------------------
Lastly, in gave STAGE_SERV\ASPNET read access to my local Outlook.exe
client.
When I browse to the application on STAGE_SERV, instead of getting the
number of Outlook contacts in my Outlook 2002 client, I get the
following message :
System.Runtime.InteropServices.COMException (0x80080005): Server
execution failed
Any help would be greatly appreciated.
Thanks in advance.