ASP.NET process identity does not have read permissions to the global assembly cache

Tech-Archive recommends: Fix windows errors by optimizing your registry



(sorry if this is a repeat, I'm having a bit of trouble with Outlook
Express)

I'm trying to set up a test environment for an ASP.NET site on a Windows XP
Pro box. I installed IIS5.1 and then .Net V2.

I put up a web site that contains just a simple Default.aspx "hello world"
page. When I try to connect, I get the "Server Unavailable" page. Plain HTML
pages are served with no problems.

Looking at the Event Viewer Application section I see two error entries:

aspnet_wp.exe (PID: 1676) stopped unexpectedly.

Failed to execute the request because the ASP.NET process identity does
not have read permissions to the global assembly cache. Error:
0x80070005 Access is denied.

I have checked the permissions, the ASPNET account has read on C:\, and Read
& Execute on C:\Windows with "inherit below." I turned off the GAC "Cache
Viewer" shell extension and checked the security on the folders in the GAC,
the permissions were inheriting correctly. I added "Write" to the GAC
folders manually.

None of this made any difference. I tried adding ASPNET to the
Administrators group and restarting IIS, still the same error. I've
reinstalled .Net a couple of times with no change.

I'm having trouble figuring out what the error really means. The process
list contains aspnet_wp running under the ASPNET account even though it
"stopped unexpectedly."

In an attempt to run the worker process under System, I tried modifying the
machine.config processModel element userName/password attributes in the
CONFIG folder and restarting IIS. This didn't make any difference either,
and the aspnet_wp process still shows as running under ASPNET. I'm new to
ASP.NET so I'm not sure if that's normal.

I've been able to get ASP.NET working on a couple of similar machines with
no problems, but I'm not sure what to do in this case. I don't want to
flatten the machine unless I have to.

Anyone out there familiar with this error or know any ways to solve it?

Thanks,

Mike N.




.



Relevant Pages

  • ASP.NET process identity does not have read permissions to the global assembly cache
    ... not have read permissions to the global assembly cache. ... I have checked the permissions, the ASPNET account has read on C:\, and Read ... Viewer" shell extension and checked the security on the folders in the GAC, ... I've been able to get ASP.NET working on a couple of similar machines with ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: cannot delete empty folders - until later
    ... Hmmm. ... No such trouble on the machine the files ... Checking the permissions was a good troubleshooting measure but being that you can delete the folders after a reboot I don't think that this is a permissions issue, your investigation seems to have confirmed this. ...
    (microsoft.public.win2000.general)
  • Re: "access denied" error in asp.net application
    ... what i would do is add some code to print the executing process to the ... > security issue related to the application's attempt to write the GIF file ... > disk and added all the necessary permissions to the ASPNET account. ...
    (microsoft.public.office.developer.web.components)
  • Re: Server Application unavailable error
    ... The best way to approach this, since you can't set the access permissions ... That will, first, annul the ASPNET account and, then, recreate it, ... Juan T. Llibre, asp.net MVP ... the ASPNET account to the GAC directory itself. ...
    (microsoft.public.dotnet.framework.aspnet)
  • "access denied" error in asp.net application
    ... Using .ExportPicture to write the GIF/JPEG/PNG image to disk and then load ... security issue related to the application's attempt to write the GIF file to ... disk and added all the necessary permissions to the ASPNET account. ...
    (microsoft.public.office.developer.web.components)