473,382 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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

Please look at the "what I've already done" section of this message
before responding to it: I believe that I've done everything that the
people who experience this error are typically told to do.

I have created an ASP.NET web service that I have running on my
development machine, and am trying to get it to run on my test server.
Both machines are running Windows 2000 SP4, IIS 5, and the .NET 2.0
framework.

When I attempt to access the service through IE, I get the familiar
page which reads:

"Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web
browser to retry your request.

"Administrator Note: An error message detailing the cause of this
specific request failure can be found in the application event log of
the web server. Please review this log entry to discover what caused
this error to occur. "

The attempt also results in three entries in the application log.
One's a warning:

"Failed to initialize the AppDomain:/LM/W3SVC/10/Root

Exception: System.Configuration.ConfigurationErrorsException
Message: Exception of type
'System.Configuration.ConfigurationErrorsException ' was thrown."
[stack trace omitted]

Then two errors:

"Failed to execute the request because the ASP.NET process identity
does not have read permissions to the global assembly cache. Error:
0x80131902 "

"aspnet_wp.exe (PID: 744) stopped unexpectedly. "

Here's what I've already done:

- Verified that the machine.config file on the test server is identical
to the one on the development server. Both contain the element
<processModel autoConfig="true"/>, i.e. they aren't giving
aspnet_wp.exe a different user to run under.
- Via Task Manager, determined that aspnet_wp.exe is running as ASPNET.
- Verified that the ASPNET user has read permissions to WINNT\assembly
and its descendants. (I've done this by unregistering shfusion.dll,
setting the permissions in Windows Explorer's directory properties'
Security tab, and re-registering shfusion.dll; I've also run AccessEnum
to verify that none of the descendant directories are denied to
ASPNET.)
- Verified that ASPNET has full-control permissions to the Temporary
ASP.NET Files directory (though I know from experience that you get a
different error if this is the problem).
- Verified that ASPNET has read permissions to the web service's
application directory (again, I know from experience that this also
produces a different error from the one I'm getting).

What's going on here? Why is ASP.NET is throwing a
ConfigurationErrorsException? Why is it telling me that the ASP.NET
process identity doesn't have read permissions to the GAC when it does?
What further diagnostic steps should I be performing?

Any help would be welcome.

Thanks,

Robert Rossney
rr******@gmail.com

Mar 14 '06 #1
2 5389
Please review the directory permissions listed at :
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx

In particular, make sure that the ASPNET account
has Read/write access to the User profile directory.
The User profile directory is used by the GAC cache lock files and the security
configuration caching mechanism of the common language runtime.

If the user profile directory for the account does not exist,
ASP.NET uses the default user profile directory.

Also, review the necessary permissions list found at this page :
http://msdn.microsoft.com/library/de...aght000009.asp

You might find it convenient, to double-check that you
have manually done all that you need to do, to run :

aspnet_regiis -ga yourmachinename\account

where yourmachinename\account is the ASPNET user account.

In your case, that would apparently be : aspnet_regiis -ga yourmachinename\ASPNET

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<rr******@gmail.com> wrote in message news:11**********************@i39g2000cwa.googlegr oups.com...
Please look at the "what I've already done" section of this message
before responding to it: I believe that I've done everything that the
people who experience this error are typically told to do.

I have created an ASP.NET web service that I have running on my
development machine, and am trying to get it to run on my test server.
Both machines are running Windows 2000 SP4, IIS 5, and the .NET 2.0
framework.

When I attempt to access the service through IE, I get the familiar
page which reads:

"Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web
browser to retry your request.

"Administrator Note: An error message detailing the cause of this
specific request failure can be found in the application event log of
the web server. Please review this log entry to discover what caused
this error to occur. "

The attempt also results in three entries in the application log.
One's a warning:

"Failed to initialize the AppDomain:/LM/W3SVC/10/Root

Exception: System.Configuration.ConfigurationErrorsException
Message: Exception of type
'System.Configuration.ConfigurationErrorsException ' was thrown."
[stack trace omitted]

Then two errors:

"Failed to execute the request because the ASP.NET process identity
does not have read permissions to the global assembly cache. Error:
0x80131902 "

"aspnet_wp.exe (PID: 744) stopped unexpectedly. "

Here's what I've already done:

- Verified that the machine.config file on the test server is identical
to the one on the development server. Both contain the element
<processModel autoConfig="true"/>, i.e. they aren't giving
aspnet_wp.exe a different user to run under.
- Via Task Manager, determined that aspnet_wp.exe is running as ASPNET.
- Verified that the ASPNET user has read permissions to WINNT\assembly
and its descendants. (I've done this by unregistering shfusion.dll,
setting the permissions in Windows Explorer's directory properties'
Security tab, and re-registering shfusion.dll; I've also run AccessEnum
to verify that none of the descendant directories are denied to
ASPNET.)
- Verified that ASPNET has full-control permissions to the Temporary
ASP.NET Files directory (though I know from experience that you get a
different error if this is the problem).
- Verified that ASPNET has read permissions to the web service's
application directory (again, I know from experience that this also
produces a different error from the one I'm getting).

What's going on here? Why is ASP.NET is throwing a
ConfigurationErrorsException? Why is it telling me that the ASP.NET
process identity doesn't have read permissions to the GAC when it does?
What further diagnostic steps should I be performing?

Any help would be welcome.

Thanks,

Robert Rossney
rr******@gmail.com

Mar 14 '06 #2
Nope, that wasn't the problem. I had already done everything you
suggested; I've been poring over those two pages for a day and a half.
But I think I've fixed the problem.

I believe the problem stems from my using IIS5. In IIS5, apparently,
the ASP.NET service account has to be granted operator privileges to
the web site. This is done from within Internet Services Manager, on
the "Operators" tab of the web site properties. I clicked "Add," added
<machine>\ASPNET to the list, and that was it.

My web service still isn't working, but only because I haven't
installed it properly. I don't get the warning and errors in the
application log anymore.

See http://ureader.com/message/1498667.aspx.

Robert Rossney
rr******@gmail.com

Mar 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
2
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I created a new virtual directory from within IIS (e.g. WebTest). Then I tried to create a new...
7
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
0
by: c | last post by:
Hello, I'm running Windows Server 2000. .NET Framework 2.0 beta. I just installed it and I've got errors in my event viewer. Failed to execute the request because the ASP.NET process identity...
1
by: Ray | last post by:
Dear all, Now, I am using Global Assembly Cache to share assembly between server and clients. However, it seems that the server and clients use individual Global Assembly Cache. For example, the...
0
by: Eric | last post by:
I'm trying to run a C# web service that I ported from VS 2003 to VS 2005. I'm unable to run it, I see: Failed to execute the request because the ASP.NET process identity does not have read...
7
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the...
4
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
I am at my witless end here, please help! I have an ASP.Net aspx web page, hosted on Windows Server 2003, that receives a query string with the path to an autocad drawing file selected from a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.