Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to migrate IIS6 web.config to IIS7  (Read 3180 times)

0 Members and 1 Guest are viewing this topic.

vinayakk

  • Guest
How to migrate IIS6 web.config to IIS7
« on: April 09, 2014, 10:30:47 pm »
If you are using custom httpHandlers or httpModules, you would need to
run the migration command below.

C:\> %systemroot%\system32\inetsrv\APPCMD.EXE migrate config "domain_name.com/virtual_directory"
Successfully migrated section "system.web/httpModules".
Successfully migrated section "system.web/httpHandlers".

Now if you are going to migate the web.config inside the WEB_ROOT directory itself and not inside any virtual directory don’t miss a forward slash, / after the domain name.

eg:

C:\> %systemroot%\system32\inetsrv\APPCMD.EXE migrate config "domain_name.com/"
Successfully migrated section "system.web/httpModules".
Successfully migrated section "system.web/httpHandlers".

Otherwise you may get an error like below,

ERROR ( message:Cannot find APP object with identifier “domainame.com”. )

 :) :)