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