title: How to Run .asp page on vs2010 project
body: <p>My local pc os is windows7 .Work on vs2010 C# .In my project I have .aspx and .asp files.My project start up page is .asp.After run the project I get the error .</p>
  
  <p>The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.asp' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.</p>
  
  <p><img src="https://i.stack.imgur.com/v0ZGM.png" alt="enter image description here"></p>
  
  <p>Picture describe in detail</p>
  
  <p>I need help ,to run this project.What makes this project runnable?If have any query plz ask?Thanks in advance</p>
  
  <pre><code>bellow is my asp page syntax:
  
  &lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%&gt;
  &lt;% 
  If Request("Action")="2" Then
      Response.Cookies("AdminUserID") = ""
      Response.Cookies("Username") = ""
      Session.Abandon()
  End If
   %&gt;
  &lt;!--#include file="Functions.asp" --&gt;
  &lt;%
  MM_valUsername=CStr(Request("User"))
  If MM_valUsername &lt;&gt; "" Then
    set MM_rsUser = Server.CreateObject("ADODB.Recordset")
    MM_rsUser.ActiveConnection = MM_LocalDB_STRING
    MM_rsUser.Source = "SELECT RepName, RepPassword, RepID"
    MM_rsUser.Source = MM_rsUser.Source &amp; " FROM dbo.SalesReps WHERE RepName='" &amp; Replace(MM_valUsername,"'","''") &amp;"' AND RepPassword='" &amp; Replace(Request("Password"),"'","''") &amp; "'"
    MM_rsUser.CursorType = 0
    MM_rsUser.CursorLocation = 2
    MM_rsUser.LockType = 3
    MM_rsUser.Open
    If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then 
      ' username and password match - this is a valid user
      Session("Username") = MM_valUsername
      Session("AdminUserID") = MM_rsUser("RepID")
      Response.Cookies("Username") = MM_valUsername
      Response.Cookies("Username").Path = "/"
      Response.Cookies("AdminUserID") = MM_rsUser("RepID")
      Response.Cookies("AdminUserID").Path = "/"
      Response.Cookies("Username").Expires = DateAdd("d",1,Date)
      Response.Cookies("AdminUserID").Expires = DateAdd("d",1,Date)
      Response.Redirect("default.asp")
    Else
      Response.Write("User Name or Password is wrong")
    End If
    MM_rsUser.Close
  End If
  %&gt;
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  &lt;title&gt;1800wheelchair.com - Login&lt;/title&gt;
  &lt;link href="Styles.css" rel="stylesheet" type="text/css"&gt;
  &lt;/head&gt;
  
  &lt;body onLoad="document.Login.User.focus()"&gt;
  &lt;!--#include file="Header.asp"--&gt;
  &lt;form ACTION="login.asp" METHOD="get" name="Login"&gt;
  &lt;table width="100%" border="0" cellpadding="0" cellspacing="0" height="300"&gt;
  &lt;tr height="300"&gt;
  &lt;td align="center"&gt;
  &lt;table width="275" height="150" border="2" cellpadding="0" cellspacing="0" bgcolor="#EFEFEF" rules="groups"&gt;
      &lt;tr&gt;
        &lt;td colspan="2" align="center" class="labelA"&gt;&lt;b&gt;User Login&lt;/b&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td class="text"&gt;&amp;nbsp;&amp;nbsp;User Name: &lt;/td&gt;
      &lt;td&gt;&lt;input tabindex="0" name="User" type="text" value="&lt;%= Request("User") %&gt;" size="20"&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="text"&gt;&amp;nbsp;&amp;nbsp;Password: &lt;/td&gt;
      &lt;td&gt;&lt;input name="Password" type="password" value="" size="20"&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="2" align="center"&gt;&lt;input type="submit" value="Log In"&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>if i change the extension of asp page as aspx show the bellow error</p>
  
  <p><img src="https://i.stack.imgur.com/GfSDO.png" alt="enter image description here"></p>