469,612 Members | 2,182 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

Trouble with IIS settings : Server Application Unavailable (ASP.NET 2.0)

32
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 somebody out there can help me ;)

So, I have an ASP.NET 2.0 application on the test server. That application doesn't work, I get "Server Application Unavailable" all the time but... while experimenting with all the possibles solutions I found over the Internet, I found that if I set the Identity of my application pool to Local System via IIS, everything work fine.

This is a good start, as I know that most of the setup I have done is OK. But I do know that I shouldn't set the Identity of any application pool to Local System unless it's really necessary. I need help to identify what permission I forgot to give to this user or that account.

I have already created a ASPUSER account on the WS 2003. This account has Write permisson on the Microsoft.NET folder, as suggested in some possibles solutions I have read. I have also followed the How To: Create a Service Account for an ASP.NET 2.0 Application" on microsoft.com which means I have runned the following command : [code]aspnet_regiis -ga MyServer\ASPUSER[code]. I set my application to use a separate application pool. If I set the identity of that application to Local System, it works, but if I set it to ASPUSER, it doesn't.

Here's what I get in my browser :

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.


Here's what I can see in the event log :

Source: ASP.NET 2.0.50727.0
Category : ASP.NET 2.0.50727.0
Type : Error
Event : 1334
User : N/A

Failed to initialize the AppDomain:/LM/W3SVC/1411204779/Root/tests_alex/VS_1

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)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

For more information, see Help and Support Center at...



Thank you a lot for your assistance!! :)
Alexandre
Jan 8 '08 #1
5 21404
kenobewan
4,871 Expert 4TB
This is usually a permission problem stemming from the aspnet account user being given appropriate access to the folder. HTH.
Jan 9 '08 #2
myth0s
32
This is usually a permission problem stemming from the aspnet account user being given appropriate access to the folder. HTH.
Yes it was. I didn't thought that Network Service was a "real" account on the local machine. Once that I found out it was, I gave that account read access to htdocs and now everything's fine.

Thank you :)
Jan 9 '08 #3
This is usually a permission problem stemming from the aspnet account user being given appropriate access to the folder. HTH.
Could u let me know how to provide such permission to avoid this kind of error? plz specify the steps for same.This problem comes for me when i access remotely and click link having download file fize >10MB .So how could we download > 20 MB size file remotely.But one times miracle happen and error went away some hour even i didn't changes any codes yet.so plz do favor me .
Thanking u in advance.
santosh
Jan 14 '08 #4
kenobewan
4,871 Expert 4TB
I don't do favors or I might be accused of favortism ;). I don't believe that you are having the same type of problem, a permission in the aspnet account is not influenced by file size per se.
Jan 14 '08 #5
jehrich
24
Hi myth0s,

Try running Process Monitor from Sysinternals on the web server while you are experiencing the error. You should be able to figure out the permissions issue by examining any "access denied" errors in the output.

Good luck!

JE
Jan 15 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

14 posts views Thread by Richard Støen | last post: by
5 posts views Thread by Andy | last post: by
1 post views Thread by Reza Sadeghi | last post: by
6 posts views Thread by Damon Roberts | last post: by
reply views Thread by Phinneas | last post: by
17 posts views Thread by =?Utf-8?B?RGF2ZQ==?= | last post: by
7 posts views Thread by Bolwerk | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.