Production Method of ASP. NET package and installation

Source: Internet
Author: User
1. In. net, right-click your project (solution) and select Add new project (add new project ).

2. Select the Web Setup Project (Web installation project) of setup and deployment projects ). (Note the storage path of the setupproject. Usually by default)

3. The vs window displays the File System (you setup name ). Click the plus sign of "Web application folder" in the left column, right-click and select "Web application folder", and select "add project output ",
Select both primary output and content files.

4. A new yousetupname project will be added to your project, which is the installed project. Save it. Sometimes an error occurs.

5. Because the. XML,. Rpt, And. GIF files cannot be automatically added to the project, you must add them manually. In Solution Explorer, right-click the yousetup Project (your installation project name), select "add file", and add your. Rpt,. XML, and. GIF files;

6. If you use crystal report, add the support file for Crystal reprot. In Solution Explorer, right-click the yousetup Project (your installation project name), select "add merging module", find it in the window, and select C: \ Program Files \ common files \ merge modules \ dotnetcrystalreports. MSM. Open it and add it;

7. Right-click "File System on the target computer", select properties, and set productname to "Name of the project you want to package" in the Properties window"

8. Right-click "Web application ".ProgramFolder ", select properties. In the Properties window, set defaultdocument to" your default logon page ", that is," start page ",

9. Select Your yousetupname project, right-click and select "generate"; or select "generate yoursetupfilename" in "generate" of the main menu ";

10. then, there will be a yousetupname folder under the storage path of c: \ Documents and Settings \ Administrator \ My Documents ents \ Visual Studio projects \ kaoqin \ file, and a debug folder below, all the files under debug are required.

11. Test the files under debug folder on the machine you want to install, and then install the files. If there is a database, you can restore the database in advance and use it.

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.