Mar 25, 2010 09:55 PM|pdcbob|LINK
Like so many others, I have a problem deploying my working (in VS2008) MVC application.
My development machine is Windows XP Pro, with IIS 5.1. IIS is working for other functions than MVC.
I created a new MVC project (mvctest), changing only the Global.asax.cs file to include a default route as suggested in this site's "Deploying and Running Websites" article and the web config file to use my SQLEXPRESS database (not a user instance in app_data).
It runs fine in the development Web Server, and I can log in with no problem. Everything looks good.
I created a directory mvctest (c:\inetpub\wwwroot\mvctest), used IIS Manager to turn it into an application named mvctest, with its own application pool, and configured .mvc to aspnet_isapi.dll (unchecking the checkbox "Verify that file exists").
I copied the contents (bin directory, views, etc) to this new mvctest directory, checked once more to make sure the web.config file didn't have anything I could recognize as belonging to the development environment, and tried to access the application with
I get error 403 - "The web site declined to show this webpage". The suggestion is that the site wants me to log in...
I tried the same, but published to the mvctest directory instead of copying the files. Same problem.
In either case, if I try to access something beyond the root, I get "The page cannot be found (HTTP 404)".
This should not be difficult. What is going on?
deploying mvc 2 applications