Re: using word from asp.net application

From: Saravana (saravank_at_sct.co.in)
Date: 11/02/04


Date: Tue, 02 Nov 2004 08:19:48 GMT

Check out this support link
INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/?id=257757

-- 
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"mr net" <nice_guy@inter.net.il> wrote in message
news:10af01c4c0b3$05936040$a501280a@phx.gbl...
> Hi,
>
> I'm trying to write:
> Dim objWord As New Word.Application
> in the codebehind page but I'm getting the error written
> below. The question is what is the correct way to use word
> or any other office automation in asp.net applications? In
> the old (asp) days I used to write the code in a com.
> Today we can use the visual basic codebehind page but - is
> it the right way? should I change the ASP.NET permissions
> as written in the error message???
>
> Thanks!
> the error message that I received:
> *******************************************************
> 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.
> *******************************************************
>
>
>


Relevant Pages

  • Re: Access Denied
    ... READ permission to the resource file. ... "Simon" wrote in message ... > execution of the current web request. ... If the application is impersonating ...
    (microsoft.public.inetserver.iis.security)
  • Re: access is denied ???
    ... probibly is being denied access to the location of the object... ... > ASP.NET is not authorized to access the requested resource. ... > granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • 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)
  • Re: Resource reservation problem
    ... Are you sure the client is using the "Make a Meeting" to send the request? ... double-clicking ON IT trying to create a meeting directly on the resource. ...
    (microsoft.public.outlook.calendaring)
  • Re: if-modified-since question (protocol problem?)
    ... request, but in response you are interested only if your request ... To base the decision on whether there is something 'new to show' would require knowledge about something 'old' - a cached resource. ... No Last-Modified header is sent in the response, ...
    (comp.infosystems.www.authoring.html)