Re: using word from asp.net application
From: Saravana (saravank_at_sct.co.in)
Date: 11/02/04
- Next message: Alessandro Rossi: "Access to ASP net application on IIS with Mozilla"
- Previous message: Saravana: "Re: ASP.Net Life Cycle"
- In reply to: mr net: "using word from asp.net application"
- Messages sorted by: [ date ] [ thread ]
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. > ******************************************************* > > >
- Next message: Alessandro Rossi: "Access to ASP net application on IIS with Mozilla"
- Previous message: Saravana: "Re: ASP.Net Life Cycle"
- In reply to: mr net: "using word from asp.net application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|