Hi,
I created an asp.net 2.0 website with VWD and made it an application in IIS.
It was created on a ntfs disc (my documents...). The directory permissions
are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list
permissions to the apllication directory.
When i start it from the browser, i get this error:
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 application event log tells this:
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.
and this:
Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. Access is denied.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
String codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
Thanks for help
Casper 4 4978
IUSR_MYSERVER is not the usual identity ASP.NET runs as.
If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASPNET...even if you're allowing anonymous access.
If you're running on Windows Server 2003, the account which needs permissions is
MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.
Try granting access permissions to the appropiate account, as outlined above.
If you are still having problems after that, and you're impersonating some account,
save this code as "identity.aspx" and run it :
identity.aspx
========
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsIdentity.GetCurrent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
======
That will tell you what the current account ASP.NET is running as.
Then, assign the appropiate permissions to that account.
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/
===================================
"casper" <no****@dfsdf.nl> wrote in message news:e%****************@TK2MSFTNGP05.phx.gbl... Hi,
I created an asp.net 2.0 website with VWD and made it an application in IIS. It was created on a ntfs disc (my documents...). The directory permissions are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list permissions to the apllication directory.
When i start it from the browser, i get this error: 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 application event log tells this:
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.
and this:
Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
Thanks for help
Casper
Hi, thanks for replying.
I'm running on windows 2000 sp4 and it's also the domain-controller. I ran
your identity.aspx and it tells me that the current account ASP.NET is
running as IWAM_myserver.
So i granted it the permissions and it works.
Strange, because i can read in directory security of IIS: username (for
anonymous access) is IUSR_myserver. And more, in my list of accounts, the
only new accounts i have after installing asp.net are three sqlserver2005
accounts, but no asp or netwoek service...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Ob**************@TK2MSFTNGP02.phx.gbl... IUSR_MYSERVER is not the usual identity ASP.NET runs as.
If you're running on Windows XP, the account which needs permissions is MACHINENAME\ASPNET...even if you're allowing anonymous access.
If you're running on Windows Server 2003, the account which needs
permissions is MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.
Try granting access permissions to the appropiate account, as outlined
above. If you are still having problems after that, and you're impersonating some
account, save this code as "identity.aspx" and run it :
identity.aspx ========
<%@ Page Language="VB" %> <%@ Import NameSpace = System.Security.Principal %> <script runat="server"> Sub Page_Load() Dim tmp As String = WindowsIdentity.GetCurrent.Name() Label1.Text = tmp End Sub </script> <html> <head> <title>WindowsIdentity.GetCurrent.Name()</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label> </div> </form> </body> </html> ======
That will tell you what the current account ASP.NET is running as. Then, assign the appropiate permissions to that account.
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/ =================================== "casper" <no****@dfsdf.nl> wrote in message
news:e%****************@TK2MSFTNGP05.phx.gbl... Hi,
I created an asp.net 2.0 website with VWD and made it an application in
IIS. It was created on a ntfs disc (my documents...). The directory
permissions are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list permissions to the apllication directory.
When i start it from the browser, i get this error: 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 application event log tells this:
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.
and this:
Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
Thanks for help
Casper
re: I'm running on windows 2000 sp4 and it's also the domain-controller. it tells me that the current account ASP.NET is running as IWAM_myserver.
Running a web server on a domain controller is a very
unusual situation because it opens up security considerations.
You should, generally, avoid running a web server on a domain controller.
If you do, you should create a weaker account to run the webserver as.
Read : "How To: Create a Custom Account to Run ASP.NET 1.1" http://msdn.microsoft.com/library/de...secnetht01.asp
The instructions are, basically, the same as for ASP.NET 2.0...
You might also want to read "How To Create a Service Account for an ASP.NET 2.0 Application" http://msdn.microsoft.com/library/de...aght000009.asp
Although the instructions are for Windows Server 2003, just disregard the
instructions regarding the Application Pools. The rest is the same for both OS's.
re: So i granted it the permissions and it works.
Glad that you're running again !
However, you should either
1. not run the web server in your domain controller
2. if that's impossible, create a weaker account per the instructions above.
Good luck!
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/
===================================
"casper" <no****@dfsdf.nl> wrote in message news:uy**************@TK2MSFTNGP04.phx.gbl... Hi, thanks for replying.
I'm running on windows 2000 sp4 and it's also the domain-controller. I ran your identity.aspx and it tells me that the current account ASP.NET is running as IWAM_myserver. So i granted it the permissions and it works.
Strange, because i can read in directory security of IIS: username (for anonymous access) is IUSR_myserver. And more, in my list of accounts, the only new accounts i have after installing asp.net are three sqlserver2005 accounts, but no asp or netwoek service...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:Ob**************@TK2MSFTNGP02.phx.gbl... IUSR_MYSERVER is not the usual identity ASP.NET runs as.
If you're running on Windows XP, the account which needs permissions is MACHINENAME\ASPNET...even if you're allowing anonymous access.
If you're running on Windows Server 2003, the account which needs permissions is MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.
Try granting access permissions to the appropiate account, as outlined above. If you are still having problems after that, and you're impersonating some
account, save this code as "identity.aspx" and run it :
identity.aspx ========
<%@ Page Language="VB" %> <%@ Import NameSpace = System.Security.Principal %> <script runat="server"> Sub Page_Load() Dim tmp As String = WindowsIdentity.GetCurrent.Name() Label1.Text = tmp End Sub </script> <html> <head> <title>WindowsIdentity.GetCurrent.Name()</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label> </div> </form> </body> </html> ======
That will tell you what the current account ASP.NET is running as. Then, assign the appropiate permissions to that account.
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/ =================================== "casper" <no****@dfsdf.nl> wrote in message news:e%****************@TK2MSFTNGP05.phx.gbl... > Hi, > > I created an asp.net 2.0 website with VWD and made it an application in IIS. > It was created on a ntfs disc (my documents...). The directory permissions > are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list > permissions to the apllication directory. > > > When i start it from the browser, i get this error: > 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 application event log tells this: > > 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. > > and this: > > Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc > > Exception: System.IO.FileLoadException > > Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its > dependencies. Access is denied. > > StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, > String codeBase, Evidence assemblySecurity, Assembly locationHint, > StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean > forIntrospection) > > Thanks for help > > Casper > > > >
Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl... re: I'm running on windows 2000 sp4 and it's also the domain-controller. it tells me that the current account ASP.NET is running as IWAM_myserver. Running a web server on a domain controller is a very unusual situation because it opens up security considerations.
You should, generally, avoid running a web server on a domain controller.
If you do, you should create a weaker account to run the webserver as.
Read : "How To: Create a Custom Account to Run ASP.NET 1.1" http://msdn.microsoft.com/library/de...secnetht01.asp The instructions are, basically, the same as for ASP.NET 2.0...
You might also want to read "How To Create a Service Account for an
ASP.NET 2.0 Application" http://msdn.microsoft.com/library/de...aght000009.asp Although the instructions are for Windows Server 2003, just disregard the instructions regarding the Application Pools. The rest is the same for
both OS's. re: So i granted it the permissions and it works. Glad that you're running again !
However, you should either
1. not run the web server in your domain controller 2. if that's impossible, create a weaker account per the instructions
above. Good luck!
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/ =================================== "casper" <no****@dfsdf.nl> wrote in message
news:uy**************@TK2MSFTNGP04.phx.gbl... Hi, thanks for replying.
I'm running on windows 2000 sp4 and it's also the domain-controller. I
ran your identity.aspx and it tells me that the current account ASP.NET is running as IWAM_myserver. So i granted it the permissions and it works.
Strange, because i can read in directory security of IIS: username (for anonymous access) is IUSR_myserver. And more, in my list of accounts,
the only new accounts i have after installing asp.net are three
sqlserver2005 accounts, but no asp or netwoek service... "Juan T. Llibre" <no***********@nowhere.com> wrote in message news:Ob**************@TK2MSFTNGP02.phx.gbl... IUSR_MYSERVER is not the usual identity ASP.NET runs as.
If you're running on Windows XP, the account which needs permissions is MACHINENAME\ASPNET...even if you're allowing anonymous access.
If you're running on Windows Server 2003, the account which needs permissions is MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.
Try granting access permissions to the appropiate account, as outlined above. If you are still having problems after that, and you're impersonating
some account, save this code as "identity.aspx" and run it :
identity.aspx ========
<%@ Page Language="VB" %> <%@ Import NameSpace = System.Security.Principal %> <script runat="server"> Sub Page_Load() Dim tmp As String = WindowsIdentity.GetCurrent.Name() Label1.Text = tmp End Sub </script> <html> <head> <title>WindowsIdentity.GetCurrent.Name()</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label> </div> </form> </body> </html> ======
That will tell you what the current account ASP.NET is running as. Then, assign the appropiate permissions to that account.
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/ =================================== "casper" <no****@dfsdf.nl> wrote in message news:e%****************@TK2MSFTNGP05.phx.gbl... > Hi, > > I created an asp.net 2.0 website with VWD and made it an application
in IIS. > It was created on a ntfs disc (my documents...). The directory permissions > are set on 'anonymous allowed' using IUSR_MYSERVER, which has
read/list > permissions to the apllication directory. > > > When i start it from the browser, i get this error: > 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 application event log tells this: > > 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. > > and this: > > Failed to initialize the AppDomain:/LM/W3SVC/1/Root/testfromc > > Exception: System.IO.FileLoadException > > Message: Could not load file or assembly 'System.Web,
Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its > dependencies. Access is denied. > > StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName
fileName, > String codeBase, Evidence assemblySecurity, Assembly locationHint, > StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean > forIntrospection) > > Thanks for help > > Casper > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mridul Buragohain |
last post by:
hi all!
=====================================
my environment:
MS .NET 1.1 with Service pack 1
ASP.NET framework
IIS 5.0
C#.NET language.
=====================================
|
by: Ken Cox [Microsoft MVP] |
last post by:
MS has posted this here:
http://www.asp.net/faq/ms03-32-issue.aspx
Fix for: 'Server Application Unavailable' Error after Applying Security Update
for IE...
|
by: Reza Sadeghi |
last post by:
Hi
I am getting this error when I tried to browse any asp.net in visual
studio.net. I can build the project but when I try to run and debug the
project I get error message that "Unable to start...
|
by: Keith |
last post by:
All,
I have been told this is an ASP.NET issue and not an IIS
issue, so I am posting this here.
I have a problem with ASP.NET returning an HTTP 500 error
when trying to run ASPX pages on...
|
by: Steve Buster |
last post by:
All right, I have read every forum, newsgroup etc about
this issue and no one seems to know how to fix it. I am
getting a "Server Application Unavailable" exception
running my .NET 1.1...
|
by: Damon Roberts |
last post by:
Hi
My dev server has started posting a Server Application Unavailable error for
all of my asp.net web apps...
Server Application Unavailable
The web application you are attempting to access...
|
by: Phinneas |
last post by:
Howdy,
I have multiple apps running on a pair of dual-processor Win2k IIS servers,
neither of which are domain controllers. My users are experiencing fairly
frequent (10-20 / day) "Server...
|
by: Jon B |
last post by:
Hi All!
I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However,
when I tried to view this site on my local Windows XP machine, I get "Server
Unavailable". If I switch the...
|
by: Kevin Liebowicz |
last post by:
Yes, I wasted the past two days trying to fix this.
Yes, this is on a Win2003 Server.
Yes, this machine is a domain controller.
Yes, I seen the dozens of KB articles like this one:...
|
by: myth0s |
last post by:
Hello everybody :)
I have trouble getting my ASP application to work. I googled a lot for a solution... many solutions I tried came from The Scripts, but none of them worked. Nonetheless, I think...
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |