VS2012 Publishing website Detailed steps

Source: Internet
Author: User

1. Open your VS2012 website project, right click on the Project menu to regenerate the website project; Right click again to publish:

2. Pop-up website publish Settings panel, click < New. Create a new Publish profile:

Enter your own definition of the profile name:

3. Click Next: In the Publish method, select "File System" so that we can publish to the local files that we specify.

Select the folder you specified: Create a new folder by tapping the red arrow in the upper right corner of the box, and customize the naming (I'll write website). Click Open to go to the next step

4, in the configuration, to choose "Release"-Release mode (release is called the release version, it is often a variety of optimizations, so that the program in code size and speed is optimal, so that the user is good to use. Debug is often called a debug version, it contains debug information, and does not make any optimizations to facilitate the programmer to debug the program)

5. Click Next: Enter the pre-Release preview screen

Click Publish to publish the folder you specified, where I posted the website folder under the C drive.

After publishing successfully, click Open Folder, all the pages of the. cs files are gone, where have all gone? Is it inside the bin folder? Let's take a guess.

Posted Good:

6. Through the Control Panel management tool, start Internet Information Services (IIS) Manager to enter the IIS interface.

Right-click Site to add a Web site

7, the following picture, the left red box to enter a custom site name (please try to use English, here I will write myphotosite), the right Red Arrows need to click ' Select (E) ... ' Make changes.

You can click the drop-down list box to choose according to your website version (generally choose not with classic). Here I choose to choose DefaultAppPool,

1. Open your VS2012 website project, right click on the Project menu to regenerate the website project; Right click again to publish:

2. Pop-up website publish Settings panel, click < New. Create a new Publish profile:

Enter your own definition of the profile name:

3. Click Next: In the Publish method, select "File System" so that we can publish to the local files that we specify.

Select the folder you specified: Create a new folder by tapping the red arrow in the upper right corner of the box, and customize the naming (I'll write website). Click Open to go to the next step

4, in the configuration, to choose "Release"-Release mode (release is called the release version, it is often a variety of optimizations, so that the program in code size and speed is optimal, so that the user is good to use. Debug is often called a debug version, it contains debug information, and does not make any optimizations to facilitate the programmer to debug the program)

5. Click Next: Enter the pre-Release preview screen

Click Publish to publish the folder you specified, where I posted the website folder under the C drive.

After publishing successfully, click Open Folder, all the pages of the. cs files are gone, where have all gone? Is it inside the bin folder? Let's take a guess.

Posted Good:

6. Through the Control Panel management tool, start Internet Information Services (IIS) Manager to enter the IIS interface.

Right-click Site to add a Web site

7, the following picture, the left red box to enter a custom site name (please try to use English, here I will write myphotosite), the right Red Arrows need to click ' Select (E) ... ' Make changes.

You can click the drop-down list box to choose according to your website version (generally choose not with classic). Here I choose to choose DefaultAppPool,

8. Select the physical path of the published site folder.

9. Click the drop-down list to select "Your current IP address"

Click OK: At this point our site is one step ahead of the release, click on the site Myphotossite, and then click the red arrow to switch to the "content view."

10. 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 Administrator. (the "Insufficient permissions" error will be prompted if you are not running as an administrator)

After running, right-click Paste Aspnet_regiis-i Press ENTER. Wait for about 1 minutes to run the prompt installation is complete (my machine is slow so provide 1 minutes for everyone to refer to, we do not worry about slowly waiting for installation to complete).

Finally, find your own website home page, right-click Browse. IE sometimes does not respond (the Address bar appears blank), it will be more than a few times to succeed. Show us what we've achieved.

VS2012 Publishing website Detailed steps

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.