ASP.NET not running

S

shahnaz yousuf

Following is the sample code of my .aspx file
<%@ Page Language="C#" %><Script runat="server">
void Page_Load(Object sender, EventArgs EvArgs) {
Response.Write("Hello World");
}

</script>
THis file resides in wwwroot folder when i run the code by writing
http://localhost/Hello1.aspx I get the following error

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Technical Information (for support personnel)
Error Type:

Active Server Pages, ASP 0221 (0x80004005)
The specified 'Page Language="C#" ' option is unknown or invalid.
/Hello1.aspx, line 1
What could be the reason
ran aspnet_regiis -i from command line but the error still persists
Uninstalled .NET framework and re-installed still no luck
VS.NET is already on my system. Please advise
Dear Biswajit and Dave


Shahnaz Yousuf
Mumbai India
(e-mail address removed)
 
J

John Soulis [MSFT]

Hello Shahnaz,
Please check your iis mappings for the aspx extension, so we can see what
dll it is pointing to.
Thank you,
John Soulis
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
J

John Soulis [MSFT]

Open IIS and go to the properties of the default website. Click the Home
Directory tab. Click on the configuaration button. Then select the mappings
tab. Then look for the aspx extension and see what the executable path is
set to
Thank you,
John Soulis
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top