Re: Creating Word Document Issue

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Eliyahu Goldin (removemeegoldin_at_monarchmed.com)
Date: 02/16/05


Date: Wed, 16 Feb 2005 12:08:48 +0200

Arvind,

In the document
http://support.microsoft.com/default.aspx?scid=kb;en-us;257757 you will find
that Microsoft is strongly against using office automation on server side.
Nevertheless if you insist, you can do it. Try giving permission to ASPNET
user account to access word application
object. It can be done with dcomcnfg.exe

Eliyahu

"Arvind P Rangan" <arvind99@hotmail.com> wrote in message
news:enQyhnAFFHA.1480@TK2MSFTNGP10.phx.gbl...
> Hi all,
>
> trying to create word document using following syntax in c#
>
> private Word.ApplicationClass oWordApp = new Word.ApplicationClass();
>
> Application throws error as :
> Exception Details: System.UnauthorizedAccessException: Access is denied.
>
> The ASP.NET process is not authorized to access the requested resource.
For
> security reasons the default ASP.NET process identity is
> '{machinename}\ASPNET', which has limited privileges. Consider granting
> access rights to the resource to the ASP.NET process identity.
>
> 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
> "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
> Write box in the Allow column.
>
> But as per the security goes, i have ensured that machine\aspnet user has
> full access to the folder and even i gave the full access to C: but still
> the same error is showing. Can anyone help me on this.
>
> Thanks
> Arvind
>
>



Relevant Pages

  • Re: Creating Word Document Issue
    ... user account to access word application ... > The ASP.NET process is not authorized to access the requested resource. ... > security reasons the default ASP.NET process identity is ... > access rights to the resource to the ASP.NET process identity. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Creating Word Document Issue
    ... user account to access word application ... > The ASP.NET process is not authorized to access the requested resource. ... > security reasons the default ASP.NET process identity is ... > access rights to the resource to the ASP.NET process identity. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Creating Word Document Issue
    ... user account to access word application ... > The ASP.NET process is not authorized to access the requested resource. ... > security reasons the default ASP.NET process identity is ... > access rights to the resource to the ASP.NET process identity. ...
    (microsoft.public.dotnet.languages.csharp)
  • Access Denied
    ... execution of the current web request. ... requested resource. ... For security reasons the default ... the resource to the ASP.NET process identity. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Access is denied
    ... An unhandled exception occurred during the execution of the ... current web request. ... For security reasons the default ASP.NET process identity is ... access rights to the resource to the ASP.NET process identity. ...
    (microsoft.public.security)