0

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?

2
  • How are you deploying? Commented Jun 30, 2014 at 4:23
  • using visual studio web deploy Commented Jun 30, 2014 at 4:31

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

does that mean there is no way my application can run as website if they have compiled dlls?
The c# files inside your MVC application it's self needs to be compiled. So no, you can't run an MVC web application as a ASP.NET Web Site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.