Re: access is denied ???

From: buran (buran_at_buran.com)
Date: 08/25/03


Date: Mon, 25 Aug 2003 15:38:25 +0300


Thank you, but could you help me further?

Buran

"Sean" <Shazbot1@hotmail.com> wrote in message
news:eVnz1JwaDHA.656@tk2msftngp13.phx.gbl...
> 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.
> >
> >
>
>



Relevant Pages

  • 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)
  • Re: Browsers Resolving Symbolic Link (e.g. Windows Shortcuts)
    ... That path also contains a subdirectory 'style' in the same directory, and the subdirectory 'style' contains the file 'std.css' which is a Windows shortcut file. ... The only connection to HTML or CSS is via the http server, the program that interprets a request from your browser and "serves" a resource. ... Secondly a windows "shortcut" is not a symbolic link. ...
    (alt.html)
  • Re: Advice on long running processes
    ... The biggest differences between run-and-exit vs. long running processes are ... resource management and error recovery. ... for request in getNextRequest: ... The other big thing is error recovery. ...
    (comp.lang.python)