-1

We have an asp.net mvc web application deployed under IIS7 on Windows Server 2008 R2. Now we need to move the web application to another server, which has IIS8 on Windows Server 2012.

Currently the asp.net mvc is deployed inside the defualt web application, and all the web application's folders and files can be found in this location :-

C:\inetpub\wwwroot 

If i simply copy all the files and folder from the C:\inetpub\wwwroot and add them inside the same location on the new server, will it work?

  • Unlikely. More info needed, does it rely on a database? IIS8 is native to 2012, not IIS7 – Digital Lightcraft May 20 '15 at 10:51
  • yes the two servers are integrated with the DB server,, also the DB server was not changed ,, we are only planning to move the application server not the DB server.. – john Gu May 20 '15 at 10:56
  • @DarkcatStudios is IIS8 work differently compared to IIS 7 ? – john Gu May 20 '15 at 10:59
  • Well assuming all IIS settings, user permissions, file permissions etc are correct, the new server can access the DB, then its likely to work. Is there any reason you cant just transfer everything and try it? – Digital Lightcraft May 20 '15 at 10:59
  • this what i am going to do – john Gu May 20 '15 at 11:00
0

It is unlikely to "Just work" but it is possible.

Often there will be settings, frameworks and user/folder permissions that cannot be transferred and will need to be set up manually on the new server.

Best advice is to pull everything over and try it, but make a Database backup first, just in-case. If it doesnt work (which is likely) view error logs and browser errors to find the route causes (EG setting the correct .NET framework etc)

Also IIS7 and 8 deal with application pool identities slightly differently.

  • currently the asp.net mvc uses the "DefaultApplicationPool" with manage pipeline = standard inside IIS7 ,, so will this work on IIS8 ? – john Gu May 20 '15 at 11:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.