writing to an outlook folder

  • Thread starter Thread starter Brent Burkart
  • Start date Start date
B

Brent Burkart

I have an application that needs to write tasks into an outlook task folder.
I keep getting the "Access is Denied" error

ASP.NET is not authorized to access the requested resource.

Which resource do I need to give the asp.net account access to. I have ran
dcomcnfg.exe and given the asp.net account access to all the resources.
This doesn't change anything.

Any ideas are appreciated.

Thanks,
BTB
 
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.

Thanks for your reply
 
Yeah, I am currently developing this on a local machine and I knew I would
have to tackle this later. Is there an easier way to get data into a shared
tasks folder?

Thanks,
Brent
 
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.

Is Outlook actually installed on your server, not your client?
 
Hi,
I have the same problem, I have made an assembly that access to Outlook 2003
through
Microsoft.Interop.Office.Outlook assembly. My library works fine with
Windows applications. However, when I try to use it with ASP.NET
applications, I have this error :

Access is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.



I have tried <identity impersonate="true" userName="MyMachine\MyUser"
password="p@Ssword"/> but I have still the same error.
Can anybody help me please ?
 
Er, I'm obviously missing something here - are you saying that you're
getting an error when you try to instantiate an instance of Outlook, and you
haven't actually *installed* Outlook...?

Also, what are you trying to do here? Is the code snippet you posted
supposed to be client-side VBScript instantiating Outlook on the client's
PC, or server-side VB.NET instantiating Outlook on the webserver?
 
the only thing you are missing is that I am developing this on a development
box that does have outlook. As soon as its complete, I will be moving it to
a production box.

The code is supposed to be server side.

Thanks
 
Back
Top