NOTE:
If this is the first time you are publishing using WebMatrix, please see this Knowledge Base article first, as its related to obtaining a copy of your Publish Profile and importing it into WebMatrix. Also, to use Web Deploy, you must enable access to the primary user for IIS 7 Manager.
To publish the application using the Web Deploy feature in WebMatrix:
- Click the lower portion of the Publish button, then click Settings
- Select Web Deploy from the Protocol drop down menu
- Server Name: https://webserver.discountasp.net:8172/MsDeploy.axd (Replace webserver with the actual server name, for example; web 710)
- Username: your control panel username, NOT your FTP username
- Password: your control panel password
- Site Name: the path you want the application uploaded to. For Example: “domain-name.com” or “domain-name.com/SUBDIRECTORY” Do NOT include http://www in this field. Use the format described above
- Destination URL: make sure this is in proper URL format. For Example: http://www.domain-name.com or http://www.domain-name.com/subdirectory
If the application requires a connection string:
You can obtain your connection string in Control Panel. MSSQL connection string information is located in the MSSQL section of Control Panel and MySQL information is available in the MySQL section of Control Panel. Please note, you will need to update both the database username and password in the connection string.
Click Save to save your settings and you can now publish by using the Publish button.

Article ID: 891, Created On: 1/19/2011, Modified: 4/22/2011