One of the most daunting tasks a webmaster must perform is uploading a large web site to a remote web server. Depending on your Internet connection speed, the task can be tedious as files are uploaded to your root directory one file at a time. If you have 10 or 20 files this is not a big deal. But what if you have hundreds or thousands of files to upload? The files can range from code behind files, to images, audio files, DLL files and more.
Luckily Microsoft has introduced a solution to this problem with MS Web Deploy. Web deploy can be used with IIS 7, Web Matrix, Visual Studio, or through the command prompt MS DOS. The first thing that you will need to do is download MSDeploy. This is the tool that will help you package or zip your web site.
Run through the installation wizard to install the “Web Deployment” tool on your computer. You do not need IIS 7 for this. Although Web Deploy and IIS 7 can work side by side, the Web Deployment Tool can run independently. You can install and run this on Windows 7, Vista, or XP without setting up your own local web server.
One thing you do need to install is the “Remote Manager Service.” This should be part of the Web Deployment Tool installation Wizard, but by default the installation does not install it, therefore you will have to manually install it.
The installation will install the MSDeploy command. This command can be invoked using the MS DOS command prompt. One thing you need to be aware of is that MSDeploy requires administrator rights to run properly. The easiest way this can be done is to navigate to MS DOS using Windows Explorer. Go to C:\Windows\System32 and right click on CMD.EXE. Choose “Run as Administrator”.
Once the command prompt is up, you will navigate to the folder level where MSDeploy.exe exists. On Windows 7, the default installation will place msdeploy.exe in C:\Program Files (x86)\IIS\Microsoft Web Deploy.
msdeploy.exe has an extensive command base. Typing [MSDeploy /?] in the command prompt will yield a large selection of commands and conditions you can run. There are two core tasks that MSDeploy can be used for. One is Archiving and the other Packaging. The two are different and each have their own unique properties.
For zipping files and publishing to a remote IIS web server, you will be using the Package Provider. Archive is mainly used for backing up your site for safe storage, where as the packaging method zip up the files for you. For a list of provider settings, you may want to look at this Microsoft site to get your feet wet.
To get started deploying your site with a zip file, one thing you need to know is that you cannot simply use your OS compression tool to zip a website. You will need to use MSDeploy for that. When MSDeploy zips a file, it will also create a couple of xml files. These files are archive.xml and systemInfo.xml. These files describe the properties of your web application. You will need these files to deploy to an IIS server with MSDeploy.
Technically you can manually create these files and then manually zip. However, creating these files from scratch is much more complicated than running MSDeploy. To properly zip your web site, you will first need to navigate to the folder where msdeploy.exe exists. The path to MSDeploy should be C:\Program Files (x86)\IIS\Microsoft Web Deploy V3. Once you are there, run this command in your MSDOS command prompt:
msdeploy.exe -verb:sync -source:iisApp=”C:\ Test_site\Website” -dest:package=c:\Test_site\testsite.zip
You will need to use the provider iisApp so that MSDeploy will know the destination folder will be an application folder. If you are uploading to the root it shouldn’t be a problem since most IIS root folders are already set as an application folder. But if you are going to upload it to a subfolder, zipping the files with the iisApp provider will be important.
Bear in mind that the paths I am using are examples, and it will be up to you to determine the path where your website exists and the path where you want to place the zip file. Once this is done, you can run the MSDeploy command against your remote IIS server:
msdeploy.exe -verb:sync -source:package=”c:\Test_site\testsite.zip” -dest:iisApp=”domain.com/subfolder01″,wmsvc=domain.com,username=IIS_username,password=IIS_password,skipAppCreation=false -allowUntrusted=true
The “skipAppCreation” command forces a subfolder to be created as an application folder. By omitting this command the default value will be “true.” If you are uploading directly to your root, you do not need to define this value. You will need to use the iisApp provider as your destination. Otherwise, MSDeploy will not know how to connect to the remote IIS server.
Lastly the target server where you will be placing your packaged file and uncompressing it will need to have Remote Manager Services installed. Without you will not be able to publish your site with MSDeploy. In addition to that, the MSDeploy (Web Deploy) tool is only for Microsoft platforms. From what I’ve read it will work on an Windows XP, Windows Vista, Windows 7, and even Windows Servers such as Windows 2008. It is not compatible with non-Microsoft platforms such as Linux or Mac.
It’s a common question, and one that can have serious ramifications if you don’t consider it: Where should I register my domain name?
Domain registrars can come in many different forms. The difference between web site host and registrar is often blurred these days. Network Solutions, Register.com, Go Daddy, Namecheap, etc., were originally established to register domain names. Over the years they began to offer additional services such as email and web site hosting. There are also companies that started their lives as web site hosts, then later became domain registrars as well. Then, just to make it confusing, there are resellers – companies (like WinHost) who can offer domain registration services, but are not registrars themselves.
Technically, as far as your web site and users are concerned, where your domain is registered is irrelevant. A site hosted at any host can use a domain registered with any registrar. The DNS system will route your traffic like the post office routes your letters. Well, hopefully better than the post office routes your letters.
For the sake of convenience, many people choose to use their host as their registrar, so that everything can be managed from one location. Whether you do that or use a registrar that is unrelated to your host is a matter of preference.
Here at WinHost your user account contains your domain registrations, so they are separate from your hosting accounts. That’s an ideal set up for anyone who wants to maintain that separation and flexibility without managing payments in multiple locations. The independence and control that you have can save you headaches in the long run.
If price is a concern, then you’ll want to go with a registrar who can offer the lowest price on the kinds of domains that you need. These days there are very few truly “budget” registrars left. The market has leveled out and you will not typically find a difference of more than a dollar or two between registrars. But for those who are strapped for cash, there is the lure of the free domain name. But be aware of the pitfalls that may come along with “free.”
Are “free” domains really free?
You may have heard horror stories of domains being held hostage, or made unavailable through the neglect or – in some cases – vindictiveness of the host. A common tool that many hosts use to get your business is the offer of a “free” domain name. While that may be a tempting offer, you should get some details about that free domain. Before you pour your time and effort into creating a site around it, ask the host following questions:
Who owns the domain?
Typically the host will make themselves the administrative contact for any domain names they provide for free as part of a hosting package. The administrative contact controls the domain, so you always want your contact information to be the admin contact information. At the very least, you want your email address to be listed in the admin section.
Can I keep the name if I change hosts?
Some hosts may allow for this, but only after you pay them a fee. Sometimes that fee is retroactive, meaning you’ll wind up paying for the domain from the day they registered it. Back when it was supposed to be “free.”
Can I keep my hosting but transfer the domain to a registrar of my choice if I opt to pay for it myself?
If you spend six months creating a site and building an audience you may want to take further control of your domain by moving it away from the host and paying for renewals yourself. Make sure the host will allow you to do that. If you are the admin contact, you can usually move the domain, but if the host is listed as billing contact, they can make the move difficult if they want to.
If you use a domain that you don’t own or you can’t move, you may be in for trouble down the road. We have seen many new customers having difficulty gaining control of what they thought was their domain name. But if you are aware of the “gotchas” surrounding domain name ownership, you can avoid those kinds of problems.
Here at WinHost you always have full control of domains that are registered through us. You are the administrative contact, you can cancel your site or move it to another host, switch the domain on your hosting account – whatever you do you’ll always have access to your domains.
It’s not surprising that most of our customers use WinHost for .NET or asp applications. We run Windows servers exclusively after all. But don’t forget that we also offer php!
If you used php on a Windows server 5 or 6 years ago you might be thinking, “Why would I want to put myself through that torture again?” But the Windows php implementation has improved significantly in the past few years, and performance is equal to what you would see on any Linux server. Seriously.
Evidence of that improved performance is the growing number of WinHost users installing WordPress, phpBB and other php/MySQL applications. And why not? Especially since the App Installer in Control Panel makes installing many php/MySQL applications quick and easy.
You don’t have to do anything to use php with your WinHost site. It’s there waiting for you, right now. And frankly, it’s a little sad that you’ve been neglecting it.
By the way, if you have an account at an old fashioned Linux host because you thought you needed it to run your php app – free yourself! Move the site over to your truly flexible WinHost account.
Because at WinHost you can have it both ways.
A subdomain is an extension of your domain name; a prefix that allows you to use URLs such as blog.HostingAccountDomain.com, forum.HostingAccountDomain.com, etc. A subdomain typically routes traffic to a specific subdirectory within your account.
To create a subdomain, log in to Control Panel, click the “Sites” tab and click the “Manage” link for the domain you wish to work with.
In the Site Tools section, click the “Subdomain Manager” icon or link.

Next, click the “Add” button.

Enter the subdomain and click the “Create” button.

Finally you’ll see confirmation that your subdirectory has been created.
For tips on redirecting subdomain traffic to a subdirectory, see this Knowledge Base article, or our forum.
Jeremy Foster works for Microsoft as a Developer Evangelist in Seattle, WA. By way of introduction he says, “It is my job to connect with developers in our northwest region – to inform and inspire them in the use of Microsoft’s amazing development tools and frameworks. I use my own website codefoster.com to blog and stay connected with the development community. I plan to expand it in the future to include robust developer resources, screencasts, podcasts, and more.”
When did you first become interested in web technologies?
I started doing software development in the early 90’s and built my first website around ’93. It was an exciting venture at the time to create a personal place on the web that was visible to the world. It was a venture that I have never really shaken. Around ’97 I started working with programmatic, data-driven website applications and it has been a strong part of my career track ever since.
Which technologies are you using for your web site?
I’m a big fan of ASP.NET MVC. I like using MS SQL for the data and usually interact with it using Entity Framework code first, although at this point my site doesn’t have any database dependencies.
How long have you hosted your site with WinHost?
I’ve been using WinHost for a few months – perhaps half a year, but I’ve only recently (February 2012) begun working at Microsoft and started up my codefoster.com site to support that.
Why did you choose WinHost?
I believe I found some positive reviews and was enough dismayed by my former host and enough attracted by the low introductory rates to just give it a try.
Thanks, we’re glad you did. What do you consider to be the key benefits of using WinHost?
WinHost has impressed me all around. The control panel seems more unified and intuitive than most, the temporary site URLs are good, and the support has been great (one time responding within an hour on a weekend).
What future plans do you have for your web site?
I will likely be adding test and demo apps within my site for educational purposes and will continue to flesh out the codefoster.com main site in whatever ways will best support my audience.
Which future technologies or trends are you most excited about?
I am very excited about Windows 8 and cloud computing. With Windows 8 I get to take my many years of web application development experience into the client platform that’s already installed on hundreds of millions of computers.
What do you like to do when you aren’t up to your neck in technology?
I really enjoy getting out on the water sailing or under the water scuba diving in the Pacific Northwest. My wife and I also enjoy hiking, traveling, and finding good happy hour restaurants in Seattle.
Thanks, Jeremy, for being the first WinHost customer spotlight interview, we really appreciate it.
This may be an old topic but it’s worth mentioning.
Ever since SQL 2005 was released, there is a weird setting in SQL Management Studio that prevents you from saving the changes on your database. The error is very misleading because it gives an impression that the security error is coming from the SQL Server itself, when in fact it’s your SQL Management Studio that is generating the error.
I was hoping this would be fixed in SQL 2012 Management Studio, but it still seems to exist.
This is the error you will see in Management Studio:

What will lead to this error is when you create a table, save it, then go back into the table and impose changes such as setting auto increment on a specific column.
The reason is because these types of changes will actually cause Management Studio to delete the table and recreate it. This is done behind the scenes by SQL Management Studio. So I guess SQL Management Studio wants to make sure it has permission before making such life altering changes.
Odd right? Fortunately the fix is really easy. In SQL Management Studio (it does not matter whether you are connected to a database or not) go to Tools/Options/Designers/Table and Database Designers. Make sure you uncheck “Prevent saving changes that require table re-creation.”
Now keep in mind, I’m using SQL 2012 Management Studio, but I believe this should be the same for the older SQL Management Studios, such as 2005 and 2008. And as you can see, since I do not need to connect to the SQL Server to make this change, the setting is associated with Management Studio, not the SQL Server itself.
Did you know that on just about every page of Control Panel there is a list of related Knowledge Base articles?
There are a lot of articles in our Knowledge Base (318 and counting!), and we understand that sometimes it can be difficult to quickly find exactly what you are looking for. That’s why we have included a “Related KB Articles” list in many sections of Control Panel.
When you are in the Email section, for example, you have direct access to the most relevant and popular Knowledge Base articles about email.
Also, if you feel that there is a Knowledge Base article that is missing, or that needs updating or clarification, please let us know. We work hard to maintain the best Knowledge Base in the industry, and your help is one of our most valuable tools!
Ready or not, here comes SQL 2012!
I know, you weren’t expecting us to roll it out so soon, were you? We’ve been busy prepping behind the scenes for the Microsoft release, and ensuring that we could offer it to you as soon as it was publicly available.
So you can log in to Control Panel and use SQL 2012 right now.
When you log in to the Site Tools section, the first thing you may notice is that the MS SQL 2008 section has been renamed MS SQL Manager.

Once you’re inside, you’ll see that when you create a new database, you now have the option to choose SQL 2012.

That’s all there is too it.
We’re happy to be able to make SQL 2012 available to you quickly. We’re working hard to make WinHost the only web host you’ll ever need.
If you have domain names registered elsewhere but use them on a WinHost site, you may want to consider moving your domains to your WinHost account so you have all of your web site properties under one (virtual) roof. Here’s how you do that.
The first thing to do is to take note of a few things that will make your transfers smooth and trouble-free:
- We can accept incoming transfers of .com, .net, .org, .biz, .info and .name domains only.
- Make sure the domain name is unlocked at the current registrar.
- If whois privacy is enabled, you will have to disable it during the transfer process.
- If your domain name was registered or transferred less than 60 days ago, it is not eligible for transfer until 60 days have passed. The 60 day non-transferable period also applies if you changed the domain registrant’s contact organization or the registrant’s first or last name when an organization is not listed.
We have some videos that cover the domain preparation process for the most popular registrars. You can see them here.
To get started, log in to Control Panel and click the Domains tab.
Click the Transfer Domain Name button.
Enter the domain name you wish to transfer, select the extension and click the Continue button.
At this point our system performs a check to make sure your domain is eligible for transfer. If you have missed a step in preparing your domain name for transfer, or it is ineligible for any other reason, you will see the following error:
Domain status [status] does not allow for transfer
Go back and check the pre-transfer steps and make sure you haven’t missed anything. If the transfer initiation still fails and you are unsure why your domain is not eligible for transfer, please contact the current registrar.
If your domain is eligible for transfer, you will be taken to the next step which includes:
WHOIS Privacy – choose whether your whois contact information will be visible to the public. There is a $5 annual fee to activate whois privacy. Whois privacy is not transferable from your previous registrar.
Next you will want to complete the contact information in the following fields (we will pre-populate the Registrant fields with information from your WinHost account):
- Registrant (Domain Name Owner) Contact
- Admininistrative (Admin) Contact
- Billing Contact
- Technical Contact (this option will be available soon)
The next section is where you choose to keep the Name servers for the domain the same as they currently are, or change them to point to WinHost. If your name servers do not point to WinHost and you intend to use the domain on a site in your WinHost account, chose “Change to WinHost’s name servers.”

The next step is to double check the contact information, name servers and “Transfer Request Approver” email. You must have access to the Transfer Request Approver email address in order to complete the transfer process.
You can edit any information that needs to be changed on this page.
If everything looks good, click the “Transfer Domain Name” button.
If you need to set up a new site for the domain name, you can click the Order New Site for this Domain button on the final page.
Once you have approved the transfer to us, the actual transfer between the two registrars can take a day or two. Depending on who the old registrar is, you may be able to speed up the process by also approving the transfer from their control panel. Though this is not always applicable, many of the larger registrars, such as GoDaddy, do allow for transfer approval.
While the transfer is in progress your domain will continue to function as normal (there is no “downtime” in a registrar transfer) and the domain’s status will be “Pending Transfer” in the WinHost Control Panel. When the transfer is complete the domain status changes to “Active.”
If you run into any problems, we have a Knowledge Base article that provides a step by step explanation of the domain transfer process.
The latest forum posts


