ASP.NET MVC 3 Areas working locally but not on server, returns 404

Happy New Year SO users! I have an issue that I hope someone can help me with.

The steps that got me here:

An ASP.NET Web Site was converted to a Web Application (this works).

Then MVC libraries were added to the Web Application via the web.config file.

An MVC controller, view and routing entry were added manually (this works - able to see the default blue page).

I then MANUALLY added an Areas folder and supporting folders / files including the AreaRegistration class (manually as well) [Note: I have to add the MVC stuff (like an Area) manually because using the usual right-click context dialog box is not available]

The problem:

The non-Areas controller / view AND the Areas controller / view work fine on my local pc, but return a 404 error on the server. Why? What do I need to do to get this working?

Other Information

Local IIS version 7.5

Server IIS version = 7.5

Answers


Assuming i read this right, the non-areas stuff is the stuff controlled by the mvc controller? If so, I have a stupid question. Did you verify the dll files are present on the webserver?

Also, working with both ASP.NET and MVC id suggest just rewriting the whole thing using mvc instead of reworking an old project.


I was able to solve this issue by the proper registration of Routes in the Global.asax.cs file.


Try cleanup following directories as mentioned here and rebuild project

C:\Temp C:\Users\%Username%\AppData\Local\Microsoft\VisualStudio C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files Path\To\Your\Project\obj\Debug


Need Your Help

Update content within a referenced model in mongoose

node.js mongodb express mongoose meanjs

I have a problem that I can't seem to find a proper solution for.