Hi All,
Need some advice. I built Scott Gu's MVC demo and got it running on localhost and ran into the same trouble when uploading (File not found). My web host provider is advising that I switch over to a server running IIS7. That way I won't have to go to all the trouble of rerouting in Application_BeginRequest (plus all the other trouble: http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx)
Here's the problem. I would have to transfer three other apps built with VS2k5 against 2.0. I have a main domain with two (now three with this MVC app) subdomains running under it. I plan on converting these apps to target 3.5 in the near future. Am I opening up a can of worms by doing this? What to do? Should I convert first then transfer?
Also,
Does anyone know why this statement is auto-added to the Global.asax for a new MVC project:
routes.IgnoreRoute(
"{resource}.axd/{*pathInfo}");
I'm adding an axd path in the web config of the main domain to get a gradient (from code project) so ... this is causing a runtime error when I try to load the MVC app (at least I think).
UPDATE: That wasn't causing the issue. I didn't have the Gradient Handler utility classes in the MVC project. Creating an App_Code folder and adding them to it, along with adding the handler path in the web config, fixed that particular error.