HTTP Error 500.0 - Internal Server Error
Seeker
Posts: 2
hi,
i have downloaded the trial, and trying to profile an ASP.net website on my local server but i get this error and when i press refresh the page keep on loading forever.
i tried using profiling on IIS and on unused port option and boht same results.
on a side note i am using Dot Tracer and i can profile with no problem at all
i am using Vista 64 bit
IIS 7
thanks in advanced
i have downloaded the trial, and trying to profile an ASP.net website on my local server but i get this error and when i press refresh the page keep on loading forever.
i tried using profiling on IIS and on unused port option and boht same results.
on a side note i am using Dot Tracer and i can profile with no problem at all
i am using Vista 64 bit
IIS 7
thanks in advanced
Comments
In order to profile IIS 7, a copy of the applicationHost.config is made and all of the extraneous configuration details are stripped out, then this configuration is used for the application pool started by ANTS Profiler. If this configuration is wrong, you could get a 500 internal server error. What you should then do is check the Windows event viewer and look for an error entry in the Application log from a source of "hostablewebcore". This should have detailed information about the configuration failure.
ANTS Profiler 4.3 also does a much better job of setting up the configuration than 4.0 or 4.1. If you already have v4.3, you may want to check for this condition that can be caused by ANTS Profiler that permanently affects your IIS.
I'm having the same problem with Vista 64bit and IIS7 however the application log is less than helpful....
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="HostableWebCore" />
<EventID Qualifiers="49152">2299</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2009-04-23T14:45:13.000Z" />
<EventRecordID>4083</EventRecordID>
<Channel>Application</Channel>
<Computer>CC-101.communicatorcorp.com</Computer>
<Security />
</System>
- <EventData>
<Data>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.</Data>
<Binary>05400080</Binary>
</EventData>
</Event>
It simply points me back to itself!
Is there a way to get this working?
Thanks
The hostablewebcore event log entry just points back to itself and is no help. There is no "Environment" registry value to delete.
I've unsuccessfully tried a number of access-control and security-related workarounds, including temporarily disabling my firewall and all anti-virus software. Here's a rundown of what customer service suggested and what I tried.
There wasn't an Environment value in the registry, nothing to delete...
I created an ACL that explicitly granted the app-pool account (NETWORK SERVICE) full access to the following folders (and their subfolders): c:\windows\Microsoft.Net\Framework\ v2.0.50727\Temporary ASP.NET Files, c:\windows\temp, and %temp%. No change.
I changed the app pool to run under the Local System account and then went back and rechecked the ACLs to ensure that SYSTEM had full access to the folders used by ASP.NET. No change.
I restored the App-pool account to Network Service and ran the above command. It completed successfully, but there was no change.
I cleared out the temporary asp.net files folder, recycled the app pool, restarted IIS. No change
I can't figure out where the temporary copy of applicationHost.config gets created either. A post in another thread (http://www.red-gate.com/messageboard/viewtopic.php?t=8574) mentioned that the local copy of applicationHost.config generated by the profiler before starting a profiling session on an IIS-hosted website is called tmp{something}.config and that this temporary config file is created in %USERPROFILE%\AppData\Local\Red Gate\ANTS Performance Profiler 4. That temporary config file copy never gets created on my machine, and I know that the profiler has write access to the appdata\local\ANTS Performance Profiler 4 folder because it creates a logfile in that folder every time it runs. (Those logfiles don't contain any additional clues or stack traces either.) I also tested to see if I could manually make a copy of applicationHost.config file, and that worked OK, so there are no file-protection problems on that config file or on its containing folder.
I managed to get it working by choosing 'Hosted in web development server' instead of 'hosted in IIS'. It now profiles perfectly.
I'm working on an ASP.NET app, using .Net 2.0 with IIS7 and Vista 64bit.
Hope that helps others.
Debugging from the top.
Are you using <= .NET 1.1?
Also, is your app pool configured in Integrated Pipeline mode?
We don't seem to do so well with the early frameworks or integrated
pipeline. If its possible, please try a different configuration (e.g. .NET
2.0, classic mode). Otherwise, the workaround is to use a console app that
uses HostableWebCore and treats the applicationHost.config file differently
to ANTS (so if this works, we know that this is the cause of the problem).
Please download it from here
(if you are using .NET 1.1)
ftp://support.red-gate.com/Patches/ANTS ... Host11.zip
(otherwise)
ftp://support.red-gate.com/Patches/ANTS ... onHost.zip
The original post was here:
http://www.red-gate.com/MessageBoard/vi ... t=antsappl
icationhost
ReadMe.txt included in zip file.
On a 64-bit OS, profiling a web app when IIS is set to 32-bit fails. You get a HTTP 500 internal server error. We think it's loading the 64-bit core into a 32-bit process.
To set IIS to 32-bit mode, run the VBscript command as described here:
http://support.microsoft.com/kb/894435