Detailed VS2012 Publishing Site steps _ Practical Skills

Source: Internet
Author: User

Often we do a good job of their favorite site, but do not know how to publish, today small compilation to teach you how to achieve the release of the website.

1, open your VS2012 website project, right click item menu to regenerate the site project; Click Right again to publish:

2, pop-up Web publishing Settings panel, click < New. To create a new publish profile:

Enter your own definition of the profile name:

3, click Next: In the Publish method select "File System", so we can publish to their own designated local files.

Select the folder you specified: Create a new folder by clicking on the red arrow in the upper right corner of the image below, and customizing the name (my website). Click Open to go to the next step

4, in the configuration, to choose "Release"-publishing mode (release, known as released version, it is often a variety of optimizations, so that the code size and speed of the program is optimal, so that users are well used.) Debug is often referred to as the debug version, which contains debugging information and is not optimized for programmers to debug programs.

5, click Next: Enter the preview before the release of the interface

Click Publish to publish the folder you specified, and here I am releasing the website folder under C disk.

After the success of the release, click the folder, all the pages of the. cs files have disappeared, where have you gone? Is it inside the bin folder? Let's take a guess.

Post a good screenshot:

6. Launch the Internet Information Services (IIS) Manager into the IIS interface through the "Control Panel" management tool.

Right-click Web site Add site

7, the following figure, the left red box to enter a custom site name (please try to use English, here I write myphotosite), the right red arrow to click on the ' Select (E) ... ' Make changes.

You can click on the Drop-down list box according to your own version of the site to choose (generally please choose not with classic). Here I choose to choose DefaultAppPool,

8, select the physical path of the published Web site folder.

9, click the Drop-down list to select "Their current IP address"

Click OK: At this time our site is still a step on the release of good, click the site Myphotossite, and then click on the red arrow below to switch to the "content view."

10, the last step: Register the IIS server. Command: aspnet_regiis-i (please copy), first in the program menu VS2012 "Visual Studio Tools" VS2012 developer command prompt. Right-click the VS2012 developer command prompt. Run as an administrator. (If you are not running as an administrator, you will be prompted for "Insufficient permissions" error)

After running, right-click to paste Aspnet_regiis-i press ENTER. Waiting to run about 1 minutes prompted installation completed (my machine slow so provide 1 minutes for everyone to refer to, we do not worry slowly waiting for installation to complete).

Finally, find your own website homepage, right click to browse. IE sometimes does not respond (the Address bar appears blank), to be able to browse several times to be successful. Show us the results:

The above is VS2012 publish the whole process of the website, each step is equipped with corresponding picture, hope can help everybody.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.