title: HTTP/1.1 500 Server Error With ASP classic
body: <p>At the very outset I would like to state that this is my first ASP classic page that I have created which since the first deployment on IIS is giving me server 500 error. I have searched the entire web and have done almost everything possible to get this right, but all in vain.</p>
  
  <p>I have created a classic ASP page using Web Matrix. This is a web based dashboard which connects to MSSQL server and fetch necessary information. I have a similar app in php which is working perfect, but I wanted to learn ASP hence was trying to make a similar web app on ASP. This app works absolutely fine on Web Matrix. When I run this app from within web matrix (both on chrome as well as IE) it connects to the required database and I can browse the details as expected. The problem starts when I host this on IIS (localhost on my windows 7 pc). This is the exact procedure that I have followed :</p>
  
  <ol>
  <li>Created a new Site on IIS named "YCube" </li>
  <li>Using basic settings I have given the following Physical path for the app (D:\YVXS\Personal\ASP\SSTool\Ycube) {the project output folder} </li>
  <li>In the bindings page I have assigned port 81 </li>
  <li>IIS authentication is set to "Anonymous Auth" </li>
  <li>Application pool for asp is set to classic (as IIS first stated it cannot perform the task in integrated mode) </li>
  </ol>
  
  <p>After this when I tried browsing localhost:81/menu.asp, it given me server 500 error. The 21 days research starts now (bullet points below)</p>
  
  <ol>
  <li><p>To get the descreptive errors on the web page I did following but the error description did not change IIS->asp->Compliation->send error to browser =true, friendly http error on IE = disabled</p></li>
  <li><p>IIS log files, not sure if iam not able to understand the error but  am getting follwing on the log file (C:\inetpub\logs\LogFiles\W3SVC1</p></li>
  </ol>
  
  <p>2013-02-23 08:07:44 ::1 GET /menu.asp |-|ASP_0147|500_Server_Error 80 - ::1 </p>
  
  <ol>
  <li><p>On the IIS forum only I underatood at time global.asa file can cause this problem, I deleted this file and tried, all in vain</p></li>
  <li><p>The folder and files permission for my site is read only, however I have tried the same with read and write access also, this also did not help</p></li>
  <li><p>On the error pages in IIS, i have changed the "Edit feature settins" to "Detailed error", this also didnot give me any futher error desc.</p></li>
  <li><p>24 times i have uninstalled IIS and installed back, nothing has happend</p></li>
  <li><p>Someone suggested to created a dummy asp file and try hosting the same of IIS, so I used a small code</p></li>
  </ol>
  
  <p><code>&lt;HTML&gt; &lt;BODY&gt; This page was last refreshed on &lt;%= Now() %&gt;. &lt;/BODY&gt; &lt;/HTML&gt;</code>, 
  this is giving correct output (This page was last refreshed at 18:88:22....), however with my original asp page I still get server 500 error</p>
  
  <ol>
  <li><p>A friend of mine suggested to delete all other hosted web pages from IIS and try (I had one PHP on the IIS), hence I deleted the same and tried, no changes at all</p></li>
  <li><p>Event log file is showing nothing pertaining the ASP (only few files are there which tells about unexpected shutdown of my PC)</p></li>
  <li><p>I created a second ASP file which had MS access at the backed, this only is also giving me same server 500 error</p></li>
  <li><p>Other things that I have tried is changing the web.config file to send detailed error, (thouh i forgot the exact line) but that also did not help me</p></li>
  </ol>
  
  <p>Here are my system config and other details Windows 7 professional, IIS7.5.7600, MSSQLR2express. Also please note that I have tried hosting this on two othe pc's that I have(both windows 7) and in office server 2003, but all are giving me same server 500 error.</p>
  
  <p>Never thought learning a classic asp will put me into all this Jazz...please help..</p>