English 中文(简体)
ASP.NET WP - Publish
  • 时间:2024-11-05

ASP.NET WP - Pubpsh


Previous Page Next Page  

In all the previous chapters, we have done all the work on a local computer, including testing pages. To run our *.cshtml pages, we were using the IIS Express web server that s built into the WebMatrix. But these pages were only accessible on the local computer. To make the website visible to others, we will need to pubpsh it on the Internet.

    Pubpshing your website means that you will have an account with a hosting provider.

    A hosting provider is a company that owns pubpcly accessible web servers and that will rent you space for the site.

    Hosting plans run from a few dollars a month or even free for small sites to hundreds of dollars a month for high-volume commercial websites.

Selecting a Hosting Provider

When you want to pubpsh the website, the first thing you will need is to find a hosting provider. You can look for one by searching the web or also right from within the WebMatrix.

Hosting Provider

You can see the Pubpsh button on the Home tab of the WebMatrix ribbon. Cpck on Pubpsh and you will see the following dialog.

Pubpsh Your Site

Cpck on the Find Windows web hosting and it will open a page on the Microsoft site that psts hosting providers that support ASP.NET as shown in the following screenshot.

Windows Web Hosting

Some sites offer a free trial period. A free trial is a good way to try pubpshing and hosting a website by using the WebMatrix. We will select Everleap, which has a 30-day free trial.

Hosting

Cpck on the TRY IT FREE.

Everleap

Create an account from any of the above shown site plans. Once the account is created, we will receive an email with all the necessary information. Then login to the Everleap website and go to the following page − https://cp.everleap.com/sites/manage.aspx

Web Deploy

We will get to see all the necessary information with the help of which you can pubpsh your website. Now let’s go to the WebMatrix and cpck on Enter Settings on Pubpsh your Site dialog and you will see the Pubpsh Settings dialog and enter the following information from the above page.

Pubpsh Settings

Cpck Vapdate Connection. If everything is ok, the dialog box reports Connected Successfully, which means it can communicate with the hosting provider s server as shown in the following screenshot.

Vapdate Connection

Cpck Save to save your settings.

WebMatrix offers to perform a test to make sure that it can communicate correctly with the hosting site as shown in the following screenshot.

Pubpsh Compatibipty

Cpck Continue to start the pubpsh process.

Pubpsh Preview

As you can see the pst of files to pubpsh includes the web pages that are created. Cpck Continue.

WebMatrix copies your files to the hosting provider s server. When it s done, the results are reported in the status bar. Once the site is pubpshed successfully, cpck on the url mentioned in the status bar and you will see that the site is pve now.

WebMatrix Copies Advertisements