473,225 Members | 1,168 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,225 software developers and data experts.

Server Application Unavailable HTTP 500 error

All,

I have been told this is an ASP.NET issue and not an IIS
issue, so I am posting this here.

I have a problem with ASP.NET returning an HTTP 500 error
when trying to run ASPX pages on Windows Server 2003
Enterprise Edition Only.

This works on Windows 2000, Windows 2003 Web Edition and
Standard Edition.

The error is a peculiar one.

We have installed our application on Windows Server 2003
Web Edition and it installs and runs fine. I have also
installed this Windows Server 2003 Standard edition and
it installed and ran fine. I then installed it on
Windows Server 2003 Enterprise edition and that is when
the problem happens. (keep in mind this is strange)

Our application has ASP, COM, and ASP.NET, along with a
couple 3rd party controls.

If I pull up our application after an iisreset (or reboot
for that matter) before I hit any asp.net page,
everything works fine until I try to go to the ASP.NET
portion of the application. Any time I hit an ASP.NET
page I will get a server application unavailable error
message on the screen. It also says to look in the event
log for more information... There are no errors in the
event viewer, but there is a 500 error message in the IIS
log file for the asp.net page I am trying to work with.

I thought it may be something that we were doing in the
ASP, so I tried calling a hello.aspx page that would only
output the current date/time. Again, I got the server
application unavailable message.

Here is where the wierdness starts. If I run an
iisreset (or reboot) and go to the hello.aspx page before
going into our application, every thing works as it is
supposed to including the ASP.NET portion of the
application.

This does not happen unless I call our application that
calls a COM object.

For example, if I do an iisreset (or reboot) and I go to
hello.asp (which outputs the date and time) and then go
to hello.aspx (which is the same file as before)
everything works fine. I can then go into our
application and pull up all content including the asp.net
portion (because the asp.net was pulled up prior to going
into the application).

Why would this work just fine in the other versions of
Windows server 2003, but not in Windows Server 2003
Enterprise edition?

In addition to this, I have gone as far as running a
FileMon to see if there was a file that I didn't have
permissions to run. Here is what I found... (I am
cutting and pasting from a post in the IIS newsgroup, so
I am sorry for anything that doesn't sound right)

We are using 10 of our own custom DLLs. There are also
some third party DLLs (about 5). But, it doesn't matter
how many DLLs I load. The first page only loads 1 dll
(our Common DLL). That dll will perform string
concatenation along with reading an INI file and some
Kernal Calls. The calls are primarily to
GetPrivateProfileString.

As soon as I load this DLL, I get the error. I haven't
tried to create a simple DLL that has 1 method and
returns "Hello World" to see if the problem will still
exist. I may try this later today.

When I called MS Support to get the HotFix that you had
recommended before http://support.microsoft.com/?
id=821157, I was told by the support person that
he didn't think that the hot fix would solve my problem.

After providing a little more information, He told me to
unregister the shfusion.dll file and navigate to the path
that was showing to give me errors in the FileMon to see
if the path existed. If the path existed, he said to
make sure that the user had the appropriate security on
that folder.

After unregistering the shfusion.dll file I was able to
set permissions on the assebly directory. I added the
IIS_WPG group and gave it full control.

The errors I received in the FileMon run are...
Process:
w3wp.exe:2652

Request:
Directory

Path:
C:\windows\assembly\gac\system.web\1.0.500.0_b03f5 f7f11d50
a3a\

Error:
No Such File

Other:
FileBothDirectoryInformation: system.web.INI

The second one was...

Process:
w3wp.exe:2652

Request:
Query Information

Path:
C:\windows\assembly\NativeImages1_v1.1.4322\System .web

Error:
File Not Found

Other:
Attributes: Error
The NativeImages1_v1.1.4322\System.Web directory does not
exist.

and the
C:\windows\assembly\gac\system.web\1.0.500.0_b03f5 f7f11d50
a3a\

did not exist, but the following directory did
C:\WINDOWS\assembly\GAC\System.Web\1.0.5000.0__b03 f5f7f11d
50a3a

As a side note, If I change the account that my
Application pool is running as to either Local System or
Local Service accounts have no problems running this
code, so the only account that gives me problems would be
the Network Service Account. I would prefer not to run
the Application pool under Local System or Local Service
but this will work as a workaround until we find a
permanent solution.

I originally thought this may be a permissions issue
until I ran into what I described earlier in my
post. Is it possible this could still be a
permissions issue? If so, what is missing permissions in
2003 Enterprise that is there in Web and Standard
Editions?

Thanks,

Keith
Nov 17 '05 #1
1 3128
Hi Keith,

It sounds like a permission issue. Different server may have different
permission setting. If you grant full control permission on
"window/assembly" with Network Service Account, will it work on the Windows
server 2003 Enterprise?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
9
by: Steve Buster | last post by:
All right, I have read every forum, newsgroup etc about this issue and no one seems to know how to fix it. I am getting a "Server Application Unavailable" exception running my .NET 1.1...
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...
7
by: Alan Silver | last post by:
Hello, I would like to create a new web site with VWD, but would like to run it under IIS, not the development server. One reason for this is that I want the web site to be at the domain root,...
4
by: casper | last post by:
Hi, I created an asp.net 2.0 website with VWD and made it an application in IIS. It was created on a ntfs disc (my documents...). The directory permissions are set on 'anonymous allowed' using...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
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...
13
by: Kevin Liebowicz | last post by:
Yes, I wasted the past two days trying to fix this. Yes, this is on a Win2003 Server. Yes, this machine is a domain controller. Yes, I seen the dozens of KB articles like this one:...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.