If you create a new ASP.NET Web pages application such as those built from the Site from Template option, you must publish to a.
NET Framework version instead.) Most of the applications that you can download from the Web Gallery require that you publish to a. (Some providers may provide separate sites for each.
Typically, the hosting provider tells you what the default value is and how to change it. NET Framework your site will run under: version 2.0 or 4. The application pool specifies which version of the.
Your database connection string is: Password= password User ID= username Initial Catalog=username.hostingcompany Data Source=Īt the hosting company, your site will be associated with an application pool (often just called an app pool). If your hosting account includes a SQL Server database, you'll also get information that you will need to publish your database, which will typically look like this: If you plan to publish a SQL Server Compact database (.sdf file), you don't need this option.Īfter your account is set up, the hosting provider typically sends you an email message that contains information you'll need in order to publish your website. Support for a SQL Server database might be an option that costs extra. Select one of the hosting providers and click Learn More.įollow the directions provided by the hosting provider's site to set up a new account. The Find Web Hosting web page lists hosting providers. In the Home tab, click the arrow below Publish, and then click Find Web Hosting. To set up web hosting, you must find a web hosting provider and set up an account. You might want to do this to take advantage of SQL Server features such as stored procedures and its additional capabilities, such as handling more than 256 concurrent connections or creating databases larger than 4 gigabytes. For instructions, see How to Migrate a Database to SQL Server. If you're using a SQL Server Compact database and want to publish to a SQL Server database, you must migrate the data to SQL Server before publishing. These scripts create database tables and insert data into them in order to replicate the structure and data that you have in the database on your computer. If you're using a SQL Server or MySQL database, WebMatrix publishes the database by creating scripts that run in a database that has been created for you by your hosting provider. This ensures that the published site will work even if SQL Server Compact isn't already installed on the web server. sdf file but also the database program itself to the web server. When you publish the database, WebMatrix copies not only the. If you're using SQL Server Compact as your database, the data is stored in an. We don't cover those steps here, so we also won't provide any information about how to configure SSL during publishing. Setting up SSL requires extra steps like purchasing and configuring a certificate that's used for encryption. (SSL is what you're using if you access a Web site using instead of SSL encrypts the information going between the browser and server, and is a good idea for pages that involve private information like passwords and credit-card numbers. FTP also lets you publish SQL Server Compact databases, but not databases that use SQL Server or SQL Server Express.Īmong the publishing options is SSL, which stands for secure sockets layer.
If you select a different company, you can still publish from within WebMatrix, but you might need to transfer files using FTP, which is a slightly more manual process. However, you don't have to use one of these hosting companies. These hosting providers all support the Web Deploy process that automates most of the publishing process. WebMatrix Beta lets you select a hosting provider right in the tool.
There are dozens of hosting companies, each offering hosting plans that have different features and pricing. When you publish your website, you copy files from your computer to a web server that's maintained by a hosting company. WebMatrix publishes the website by copying files to a remote server, and it can optionally deploy one or more databases to the hosting site. WebMatrix Beta shows you the changes it plans to make on the remote server, you approve the changes, and then it publishes the site. This includes entering settings for your web hosting account and deciding how to publish the database (if your site has one). Configuring WebMatrix Beta for publishing.Setting up an account with a web hosting provider.Publishing a website involves the following tasks: IntroductionĪfter you create a website, you typically publish the site to a web hosting provider where others can use it.