Migrate ASP.Net web site from IIS6 to IIS7

Posted by David.Chu.ca on Pro Webmasters See other posts from Pro Webmasters or by David.Chu.ca
Published on 2011-03-03T22:07:08Z Indexed on 2011/03/04 23:33 UTC
Read the original article Hit count: 573

Filed under:
|

I have to migrate an ASP.Net web site from IIS6 to IIS7. I tried to copy the all files for a web site from IIS6 (c:\inetpub\wwwroot\MySite) to another box with Windows Server 2008 R2 where IIS7 is the default web server.

However, the simply copy seems not working. Should I rebuild the web site for IIS7 or should I make changes on the new box with IIS7 such as web.config?

Thanks for the comments. Further investigation I found that http handers seems caused exception:

<!--httpHandlers>
  <add path="Reserved.ReportViewerWebControl.axd" verb="*" 
    type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
    validate="false"/>
</httpHandlers-->

After I comment out the above handler in web.config, the web page works fine. This is just my initial test. I am not sure if I should rebuild the web site from source codes or not. If so, do I need to specify for IIS7?

© Pro Webmasters or respective owner

Related posts about iis7

Related posts about iis6