473,749 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

32 New Member
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
Jan 8 '08 #1
5 21654
kenobewan
4,871 Recognized Expert Specialist
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 New Member
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
san1709
1 New Member
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 Recognized Expert Specialist
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 New Member
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
1559
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 are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
5
1760
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 asp.net page now fails with the following message: - Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit
5
2789
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
2977
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 debugging on the web server. server side error occurred on sending debug HTTP Request. I am running WinXP Pro SP1 with all hotfixes and VS.NET 2002 and .NET Framework 1.0
1
2871
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 attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
6
2877
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 on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
0
1283
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 Application Unavailable" errors. I'm using a custom "Server Application Unavailable" page to send me an email whenever this occurs. I also have a ProcessHistory page that leverages ProcessModelInfo.GetHistory() to show me what's going on at the...
17
4881
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 Microsoft .Net 1.1 & 2.0 installed. How do I remedy this error? //Error below Server Application Unavailable The web application you are attempting to access on this web server is
7
1145
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 that I managed to fix. Now, he's getting this error (similar to the one a few weeks ago): Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh"
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6800
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.