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\ASPUSE R[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.FileL oadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a' or one of its dependencies. Access is denied.
StackTrace: at System.Reflecti on.Assembly._nL oad(AssemblyNam e fileName, String codeBase, Evidence assemblySecurit y, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotF ound, Boolean forIntrospectio n)
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String codeBase, Evidence assemblySecurit y, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotF ound, Boolean forIntrospectio n)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef, Evidence assemblySecurit y, StackCrawlMark& stackMark, Boolean forIntrospectio n)
at System.Reflecti on.Assembly.Int ernalLoad(Strin g assemblyString, Evidence assemblySecurit y, StackCrawlMark& stackMark, Boolean forIntrospectio n)
at System.Activato r.CreateInstanc e(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttri butes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activato r.CreateInstanc e(String assemblyName, String typeName)
at System.AppDomai n.CreateInstanc e(String assemblyName, String typeName)
at System.AppDomai n.CreateInstanc e(String assemblyName, String typeName)
at System.Web.Host ing.Application Manager.CreateA ppDomainWithHos tingEnvironment (String appId, IApplicationHos t appHost, HostingEnvironm entParameters hostingParamete rs)
at System.Web.Host ing.Application Manager.CreateA ppDomainWithHos tingEnvironment AndReportErrors (String appId, IApplicationHos t appHost, HostingEnvironm entParameters hostingParamete rs)
For more information, see Help and Support Center at...
Thank you a lot for your assistance!! :)
Alexandre