Re: access is denied ???
From: Sean (Shazbot1_at_hotmail.com)
Date: 08/25/03
- Next message: buran: "Re: access is denied ???"
- Previous message: Russ: "Re: ASP.NET and SSL basic question."
- In reply to: buran: "access is denied ???"
- Next in thread: buran: "Re: access is denied ???"
- Reply: buran: "Re: access is denied ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 25 Aug 2003 07:12:17 -0500
your error is not on saving the doc but accessing ther resource object to
msword... probibly is being denied access to the location of the object...
try creating a referece to it 1st so that on compile time your program saves
a copy of the referenced interop object in it's own Bin directory.
"buran" <buran@buran.com> wrote in message
news:uy6oeUtaDHA.2336@TK2MSFTNGP09.phx.gbl...
> Dear ASP.NET Programmers,
>
> I am trying to save a new created Word document, but getting the following
> the error. I granted the necessary rights to the ASPNET user, but I'm
still
> getting this error.
> Thanks in advance,
>
> Buran
>
> Dim objWordApp As New Microsoft.Office.Interop.Word.Application()
> Dim newDoc As New Microsoft.Office.Interop.Word.Document()
>
> newDoc = objWordApp.Documents.Add()
> newDoc.SaveAs("burak1.doc")
>
> 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: buran: "Re: access is denied ???"
- Previous message: Russ: "Re: ASP.NET and SSL basic question."
- In reply to: buran: "access is denied ???"
- Next in thread: buran: "Re: access is denied ???"
- Reply: buran: "Re: access is denied ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|