Asp.net website server construction starts from scratch

Source: Internet
Author: User
1. Install IIS (Internet Information Services:
1. Select "Control Panel ".
2. Click "add or delete ". Program ".
3. Select "Add/delete Windows components", select IIS, and place the system installation disk to the optical drive. click Next.

4. After the installation is successful, "Internet Information Service" will be included in "Control Panel \ Management Tools.

Ii. Asp.net environment Configuration:
: Http://www.cnblogs.com/wf225/archive/2007/10/19/929837.html
If you cannot run the MSI file, install Windows Installer 3.1
 
Microsoft. NET Framework 2.0 Reusable Component package (x8620..exe
Microsoft. NET Framework 2.0 Simplified Chinese Language package .exe
Aspajaxextsetup. MSI (ASP. NET 2.0 Ajax extension)

Note: you must first install IIS and then install. NET Framework.
If the order of IIS and. NET is reversed, or IIS is reinstalled,

Solution 2:
1. reinstall the Microsoft. NET Framework 2.0 component package.
2. Use aspnet_regiis.exe-I to reinstall IIS mapping (mainly used to match the extention of files such as aspx and asmx ).
Create a new notepad file, rename it aspnet_regiis.bat, and add the following three lines:
@ Echo off
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe-I
Pause
Double-click aspnet_regiis.bat.

3. IIS configuration
Open "Control Panel \ Administrative Tools \ Internet Service Manager", select "Default site", right-click and select properties,
1. "web site" settings.

2. Set "document", add logon. aspx, and move it to the top.

3. Set "ASP. NET" and select 2.0.50727.

4. Restart IIS:

5. Create a site:

6. Refresh Directory: Right-click/refresh
Site browsing: Right-click or browse

7. Browse files: Right-click and browse


Asp.net the runtime environment configuration is complete.

Iv. SQL2000 database installation
1. Remember the user name and password during installation.
2. After the installation, if you forget the password, use Windows authentication to open the Enterprise Manager, find security \ login, and double-click the SA user to reset the password. You can also create a new user and password.

3. Attach a database


V. ModifyWeb. config
Open with notepad Web. config File, find
< Connectionstrings>
<Add
Name =" Connectionstring"
Connectionstring ="Data Source = 192.168.1.101;Initial catalog = databasename;User ID = username; Password = pwd;"
Providername = "system. Data. sqlclient"/>
</Connectionstrings>
Note:
Data Source : SQL The name of the computer on which the server is located or IP .
Initial catalog : Name of the database to be accessed.
User ID : Login Sqlserver User name.
Password : Login Sqlserver Password.

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.