Re: writing to an outlook folder

From: Nakah (nakahspam_at_free.fr)
Date: 08/17/04


Date: Wed, 18 Aug 2004 01:33:09 +0200

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 ?

"Brent Burkart" <brentb@wvmb.com> wrote in message
news:Og1AVoJhEHA.1344@TK2MSFTNGP11.phx.gbl...
>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
>
>



Relevant Pages

  • Re: Resource reservation problem
    ... I am positive the request is not directly made on the resource calendar. ... Are you sure the client is using the "Make a Meeting" to send the request? ... if you re-read the original posting my concern is with Outlook 2007 ...
    (microsoft.public.outlook.calendaring)
  • Re: Resource reservation problem
    ... I never modified the resource's Exchange properties. ... I am positive the request is not directly made on the resource calendar. ... Scenario: From my Outlook 2007 client: create new meeting ...
    (microsoft.public.outlook.calendaring)
  • Re: Resource reservation problem
    ... I have no problems sending reservation requests from OWA. ... When I book the resource from the Outlook client, ... because when I send a request from OWA. ...
    (microsoft.public.outlook.calendaring)
  • Re: MsiInstaller detection of product...feature...failed
    ... Word and Outlook at the Office apps. ... The resource 'HKEY_CLASSES_ROOT\.pip\' does not exist. ... 'WORDFiles' failed during request for component ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Workgroup Messaging Message Configuration
    ... Project MVP ... Visit http://project.mvps.org/ for the FAQs and additional information ... The first time I did that, a status request was displayed ... I sent the request to the resource at ...
    (microsoft.public.project)