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”. )
A good article to refer is available at http://blogs.msdn.com/tmarq/archive/2007/08/30/iis-7-0-asp-net-pipelines-modules-handlers-and-preconditions.aspx
Continue ReadingA particular website of a client was getting “Service Unavailable” message for just one website in a Plesk server while all other website was working fine. No logs in Event Viewer were giving any clue. However when someone changed the Application pool to use the shared pool plesk(domain2.0)pool, it was working fine which deserted the issue to application pool issue.
Approach to the solution
“%plesk_bin%”\dbclient –direct-sql –sql=”select su.login, a.password from accounts a, sys_users su where a.id=su.account_id and su.login=’username’ ”
login password
username password
where username is an owner of the domain, which can be taken from Plesk => Domains => Web Hosting Settings
net user IUSR_username password
There are two most common issues while restoring the database (usually ending in .bak format).
First error
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘user_database‘ database. (Microsoft.SqlServer.Express.Smo)
Solution for First error

System.Data.SqlClient.SqlError: Directory lookup for the file “D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\user_database.mdf” failed with the operating system error 3(The system cannot find the path specified.). (Microsoft.SqlServer.Express.Smo)
On an html page, one of our customers was getting this issue. Despite asking him to change the extension to .asp, he insisted to have html extension and still process the HTTP verbs, where it is POST method here.
Situation becomes like this a static page wants to be read a dynamic page and process the values obtaining from POST method. Solution is to make the .html read as .asp with asp dll, just like we do html parse as php in Linux boxes Here are the steps to do it on a Windows 2003 machine
1. Start –> Run –> inetmgr
2. Websites –> website/domain name in question
3. Right Click on the domain –> Properties –> Home Directory –> Configuration
4. In the tab Mappings –> Add an extension for .html and .htm , if it is missing (most cases it will be missing) and edit to add all verbs (POST, GET, HEAD are needed)
5. Fields to be added are as below,
Executable : C:\WINDOWS\system32\inetsrv\asp.dll
Extension : .html
Limit to : GET,HEAD,POST,TRACE
And Click Apply, OK
All is well !!
Customer wanted to have a dedicated IP, but once I change the IP from the plesk control panel, I couldn’t get the website when accessed using IP. Instead, it was giving me the plesk control panel’s default page. Reason ? Default Website was having the IP as “All Unassigned”. Set that to the main IP address. But after that I was getting a new error.
What I could get was “Bad Request (Invalid Hostname)” in bold letters. Here is what I did to fix the same.
Start -> Run -> inetmgr -> Expand the (+) -> Websites -> Right click on the domain name -> Take Properties -> Website -> IP Address (make sure that it has the dedicated IP assigned there) and then click “Advanced”
Add/Edit Web Site Identification
IP Address : Choose the dedicated IP from drop down list
TCP/IP Port : 80
Host Header Value : Leave it blank (Important)
Leaving the Host Header Value should fix the issue and fetch the website when accessing it using the IP.
Continue Reading