Re: server application unavailable
- From: "casper" <nomail@xxxxxxxx>
- Date: Mon, 24 Apr 2006 16:31:20 +0200
Thanks
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23B0qWQ6ZGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
re:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/secnetht01.asp
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"
ASP.NET 2.0 Application"
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
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000009.asp
both OS's.
Although the instructions are for Windows Server 2003, just disregard the
instructions regarding the Application Pools. The rest is the same for
above.
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
news:uyU42J3ZGHA.4160@xxxxxxxxxxxxxxxxxxxxxxx
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" <nomail@xxxxxxxx> wrote in message
ranHi, thanks for replying.
I'm running on windows 2000 sp4 and it's also the domain-controller. I
theyour 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,
sqlserver2005only new accounts i have after installing asp.net are three
someaccounts, but no asp or netwoek service...
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:ObWUdyvZGHA.3328@xxxxxxxxxxxxxxxxxxxxxxx
IUSR_MYSERVER is not the usual identity ASP.NET runs as.permissions is
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
MACHINENAME\NETWORK SERVICE...even if you're allowing anonymous access.above.
Try granting access permissions to the appropiate account, as outlined
If you are still having problems after that, and you're impersonating
inaccount,
save this code as "identity.aspx" and run it :news:e%23iUEhvZGHA.3936@xxxxxxxxxxxxxxxxxxxxxxx
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" <nomail@xxxxxxxx> wrote in message
Hi,
I created an asp.net 2.0 website with VWD and made it an application
read/listIIS.
permissionsIt was created on a ntfs disc (my documents...). The directory
are set on 'anonymous allowed' using IUSR_MYSERVER, which has
ispermissions 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
doesbrowsercurrently unavailable. Please hit the "Refresh" button in your web
specificto retry your request.
Administrator Note: An error message detailing the cause of this
server.request failure can be found in the application event log of the web
occur.Please review this log entry to discover what caused this error to
The application event log tells this:
Failed to execute the request because the ASP.NET process identity
Version=2.0.0.0,not
Accesshave read permissions to the global assembly cache. Error: 0x80070005
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,
fileName,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. Access is denied.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName
String codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
Thanks for help
Casper
.
- References:
- server application unavailable
- From: casper
- Re: server application unavailable
- From: Juan T. Llibre
- Re: server application unavailable
- From: casper
- Re: server application unavailable
- From: Juan T. Llibre
- server application unavailable
- Prev by Date: Displaying XML as HTML in a popup
- Next by Date: Syntax for call from aspx page to .cs file then to different aspx page
- Previous by thread: Re: server application unavailable
- Next by thread: Web Hosting Question
- Index(es):