简体   繁体   中英

MVC4 deployment in IIS7.. 500 internal error

I have MVC4 which is running fine my local IISExpress. Today My admin created brand new Dev server and created new web application under default website. I have published same code into that webapplication folder. when I typed http://dev.company.com/iapps/vol it blows up 500 - Internal server error

在此处输入图片说明

How can I troubleshoot this?

There are like a million things that could be wrong (missing DLLs, file permissions, DB access, etc)
The easiest way start debugging the problem is accesing the site from inside the dev server. This way IIS will throw the error to the browser because it's local.

Try registering ASP.NET.

From Windows Explorer, browse to: C:\\Windows\\System32

Find cmd.exe, right click on it and "Run as administrator"

Then in run this: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319>aspnet_regiis -i

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