简体   繁体   中英

Error deploying ASP.NET WebApplication on IIS

recently I've been struggling to deploy my ASP.NET Web Application on IIS (I'm using Windows 10). I did everything exactly the same as it was written here . Things went smoothly and nicely till I tried to open my application ( .aspx ) on IIS in browser. And I got the ERROR . I tried to search for the solution in google/stockoverflow, but seems nothing goes right for me or I'm really bad at searching.

Maybe any suggestions to tackle the problem?

Thanks in advance!

Without actually seeing your setup in iis itself, it is hard to determine what the problem is. But the first thing I would check is to see if your localhost site in iis is bound correctly Please see here on correctly setting up your bindings.

This won't be the final answer, but to begin with, always get the full error info first.

Please open Event Viewer in Windows, and under Windows Logs hopefully there will hopefully be some error pertaining to ASP.NET. Can you get the info from that and post it?

Doing this may also help https://www.webwiz.net/kb/asp-tutorials/friendly-HTTP-error-messages.htm

UPDATE BASED ON COMMENTS:

I think you need to uninstall and reinstall IIS, it sounds like something is wrong there. You can do it from add/remove Windows components, eg.

http://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/

You may need to re-register ASP.NET afterwards

To fix IIS mappings for ASP.NET, run the Aspnet_regiis.exe utility: Click Start, and then click Run. In the Open text box, type cmd, and then press ENTER. At the command prompt, type the following, and then press ENTER: "%windir%\\Microsoft.NET\\Framework\\version\\aspnet_regiis.exe" -i In this path, version represents the version number of the .NET Framework that you installed on your server. You must replace this placeholder with the actual version number when you type the command.

Did you set up IIS correctly? same with asp.net(Need to register too).

Additional:

  1. Check IIS if Directory Browsing is enabled.
  2. Check application pool framework (It must be the with project framework.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM