简体   繁体   中英

asp.net mvc 4 working as web application not as a website

I have a simple asp.net mvc 4 web application, there is no code problem or any issues with routing.

I deploy it to IIS(any version) as a web application it works fine i can browse my site fine. If i just deploy it to web site, it throws standard 404 not found exception.

I am trying to understand why this happens with asp.net mvc web applications?

Any clues? Any experience deploying this as a web site?

Web Applications are compiled, Web Sites are as-is, meaning your C# files are served without actually being compiled in to a .dll

This is why it isn't working, MVC sites must be compiled in to a .dll

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