We have a virtual server running Windows Server 2003 R2 in VBox on a developer machine in order to emulate the Data Center's web server and SQL Server.
After some difficulties I carried out a file system publish of a Asp.Net MVC 4 web app. I copied it to our Virtual server under a new directory under InetPub called DeployedWorkingModels. So here is the path: C :\Inetpub\DeployedWorkingM
I created a new Web Site called "WorkingModels" in addition to the "Default Web Site" like the Data Center would do. I made the Home Directory C :\Inetpub\DeployedWorkingM
odels. I created a new AppPool called AppPool40 like the Data Center will do. (However in IIS 6.0 I was not able to find any place where you could configure which framework the AppPool would use.)
I configured the folder WorkingModel-40 as a web application under "WorkingModels"
I configured the new app to use the new AppPool40. Then I right clicked on the web application and selected "Browse". I got "Internet explorer could not display page". I downloaded WFetch and ran it on that web app and it informed me that the issue was a 404 error. I right-clicked on the web site and selected "browse" and it got 404. I right-clicked on the index.cshtml page of the Home directory of the views directory and selected "browse" and got a 404 error. I asked for help on several sites.
After getting no help on this I started making changes.
I copied the folder for my project "WorkingModel-40" directly under wwwroot. Then I opened IIS. I configured my project "WorkingModel-40" as an application directly under "Default Web Site". Then I right-clicked on the web application and selected "Browse". This time for the URL http://localhost/WorkingModel-40
I got a 403 error. When I drilled down to the Views/Home/Index.cshtml file for the URL http://localhost/WorkingModel-40/Views/Home/Index.cshtml
I get a 404 error.
Based on guidence from www.Asp.Net
, I ran the aspnet_regiis.exe from the Framework64 folder. I right-clicked on the site again. Same 403 error.
The same person said the issue was that NetworkService did not have permissions to the folder. so I made sure it was added to the folder with full rights. Same 403 error.
I was provided a link with instructions on how to fix this. This site http://technet.microsoft.com/en-us/library/cc737351(v=WS.10).aspx
said to run this command
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true
In the Inetpub\AdminScripts directory From the command prompt. This result in the "browse" menu item returning "Service Unavailable". It resulted in these errors in the System Event Viewer:
A process serving application pool 'AppPool 40' reported a failure.
The process id was '2064'. The data field contains the error number.
The data field contained this error code: 800700c1
I tried running this script to change it back to false.
I tried stopping and restarting the service serveral times no difference.
Next day I did a restart and a hard shutdown.
I was provided this link. http://support.microsoft.com/kb/894435/en-us
which had me change the script script I ran to
adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
and then run
After this was done, I was back to the browse showing 403 and 404
I tried changing the routing in the routeconfig.cs using the method referred here http://www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-cs
to add ".aspx" to the controller in the routing. That did not work.
I created a new folder called WebSiteName
I put a wwwroot under that folder.
I deployed my published app under that folder.
In IIS I created a new web site with port of 81.
I made the home directory of this web site be the wwwroot folder just created.
I configured the deployed app as an application.
then I clicked "Browse" This time I got
[To Parent Directory]
Friday, March 14, 2014 12:11 PM <dir> bin
Friday, March 14, 2014 12:11 PM <dir> CodeTemplates
Friday, March 14, 2014 12:11 PM <dir> Content
Wednesday, January 22, 2014 9:27 AM 32038 favicon.ico
Friday, March 14, 2014 12:11 PM <dir> Images
Friday, March 14, 2014 12:11 PM <dir> Models
Friday, March 07, 2014 3:26 PM 2789 packages.config
Friday, March 14, 2014 12:09 PM 49 PrecompiledApp.config
Friday, March 14, 2014 12:11 PM <dir> Scripts
Friday, March 14, 2014 12:11 PM <dir> Views
Friday, March 14, 2014 12:09 PM 5251 Web.config
However any attempt to click browse on any of the views in the views folder still results in 404. In addition, any attempt to connect to the site using IE results in 404.
This was all entered in a previous post with me updating it each time I tried something new. The administrators of experts Exchange told me that because I was entering new posts, it appeared to experts that there was activity on the question. I was advised to delete it and start over.
So this is a new post whose original post contains all the steps I've taken. I really hope someone can answer it this time.