473,416 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

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 21640
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

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

Similar topics

14
by: Richard Støen | last post by:
Please help! We suddenly started getting the following error message when we try to run any asp.net web application on the web server : Server Application Unavailable The web application you...
5
by: Andy | last post by:
This morning I was quite happily working away when a Windows Update prompted me for install. I found a convenient brake point and duly installed it and rebooted, oh dear what a mistake LOL! Any...
5
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...
1
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...
1
by: Robert Halford | last post by:
On 4th May at 7.45 in the evening my asp.net web sites stopped working on my development server. The page that appears says: Server Application Unavailable The web application you are...
6
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...
0
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...
17
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I have set up a virtual directory using IIS. Whenever, I load a web page of type .htm, I have no problem. Whenever I run a .aspx page I get the statement below. I am running on XP Pro, both...
7
by: Bolwerk | last post by:
Hello I got a client who uses what appears to be ASP.NET 2.0. I come from a UNIX/PHP/Apache background, and I'm not too familiar with ASP.NET. He had some permissions problem a few weeks ago...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
jinu1996
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.