The project was finally packaged and deployed last week. To sum up, there are some things for packaging ASP. NET websites.
1. When the database is installed during packaging, it is restored through the database backup file, instead of creating a new SQL statement (because there is a lot of Project initialization data ). Modify the Web. config file at the same time.
2. Create a website and set the website attributes, including anonymous access, integration with Windows authentication, documentation, and ASP. NET options to 2.0.
3. Operate the registry. Write related information to the registry, such as the installation path.
4. If the drive letter of the installation path is in the NTFS format, set the corresponding folder on the website to allow everyone to have the modification permission, because permissions must be set for uploading and uploading files.
5. If the installation machine does not have the. NET frameword2.0 framework, the framework will be automatically installed.
Find the required system button on the properties page of the installation project,
Click the button to see, installProgramRequired components (including. Net framwork2005 of course ),
Select. Net framwork and select "Download essential system components from the same location of my application" in the options below ",
In this way, the installation package will contain ". Net framwork"
ReferenceArticle:
1Vs2005PairIISOperations
2. install or attach a database
3. Use vs2005 to create the installation package
4. Set permissions for a folder on a Windows hard drive
5. How to Use C # To create an IIS Site and set the. NET Framework version to ASP. NET 2.0
After reading these articles, it's almost the same. In some details, it's okay to adjust them by yourself.