开发者

IIS 7 Wont Open My Aspx Files

I am new to IIS and it is annoying the hell out of me!

I have an asp.NET website that runs beautifully on visu开发者_高级运维al studio 2010, so what i do, is publish the website, put the published website folder in the inetpub/wwwroot folder, connect all the dots, then in my browser i type in http://localhost:8080/A3Media/ and it brings up my index.html page. So the IIS is working correctly because it happily displays .html files. but when i try and access a .aspx file in my website. I get i weird 404 error saying the document doesnt exist. When it obviously does exist because... I checked... multiple times!

So i deducted that my IIS doesnt like .aspx files or anything to do with asp.NET.

So i make sure that i have all the asp.net modules installed by following the usual "windows features" and making sure the asp.net folder is ticked and installed, along with all the depending asp.net folders.

and my website still doesnt work.

have i missed something?

i have no idea:(


One of two options spring to mind.

  1. Have you registered ASP.NET? aspnet_regiis.exe -i Link

    cmd -> cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis.exe -i

  2. In IIS manager - Request Filtering - Is .aspx denied?


Make sure you convert your "A3Media" directory into ASP.NET Application via IIS Manager, please see Deploying ASP.NET Websites on IIS 7.0 for more details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜