2

Getting HTTP 500 while requesting the ASP files which are deployed in 64bit server and the application uses .net 4.0 framework. Can any one have any idea?

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
sandeep talabathula
  • 3,238
  • 3
  • 29
  • 38
  • Have you tried a generic asp page to confirm it's IIS and not a script error? What does the IIS log or event viewer show as the error detail.It should be working. – Bill Martin Dec 01 '11 at 16:48
  • What version of Windows server are you using? – AnthonyWJones Dec 01 '11 at 22:18
  • Is there any other detail in the 500 error? Can you see entries in the eventlog the correspond to the time you are getting the error? – AnthonyWJones Dec 01 '11 at 22:25
  • @Bill Martin/@AnthonyWJones: this is the problem with all asp files. Below are error log: Exception message: Server operation is not available in this context. at System.Web.HttpServerUtility.MapPath(String path) at lmsportal.Global.Session_End(Object sender, EventArgs e) – sandeep talabathula Dec 07 '11 at 06:35
  • @AnthonyWJones: using windows server 2003 R2. – sandeep talabathula Dec 07 '11 at 06:37

3 Answers3

1

In your IIS configuration (role features) you will need to ensure that ASP is enabled. The application pool would need to be classic and in most cases in advanced properties of application pool you will need to enable 32 bit applications (if you use any older activeX controls)

Hope that helps

(Turning off friendly errors in IE and restarting the browser will most likely yield more info)

Daniel Elliott
  • 22,647
  • 10
  • 64
  • 82
1

Control Panel > Administrative Tools > IIS. Under your servername, select 'Web Service Extensions' On the right, set 'Active Service Pages' to 'Allowed' and do an iisreset.

Bill Martin
  • 4,825
  • 9
  • 52
  • 86
0

This could be because you do not have .aspx files registered in Handler Mappings in IIS for the site

Nitesh
  • 2,286
  • 2
  • 43
  • 65