Summary of a small website (2): configure the runtime environment of Asp.net + Access

Source: Internet
Author: User

today, I sent the prepared items to the client ). as a result, she configures the program by configuring ASP Program and runs the program. The result is certainly not pulled ~ (Only the static interface is displayed, and the dynamic part of the interface with the database cannot be displayed ).
to solve this problem, I found a dedicated device that was not installed.. NET environment. This machine is only installed with Windows2000 and has IIS. The following is my summary:
first, I installed the Microsoft. NET. framework1.1 software package on this machine.
Step 2: Install Microsoft Data Access Components 2.7 (MDAC). Otherwise, the system prompts oledb is unavailable and you need to install this component.
Step 3: Set the IP address of the Local Machine to 192.168.0.20 (as long as it is not automatically obtained).
Step 4: Open IIS, set the IP address to 127.0.0.1 in the "Default web site" attribute (because I used this IP address when developing the program, of course, I can change it to another IP address (192.168.0.20 ), however, to open the file with the suffix webinfo in the program project folder in Notepad mode, change the path in its web urlpath to the corresponding IP address ).
Step 5: Set "local path" in the "Default web site" attribute in IIS to the directory where the corresponding program is located, add the file name (index. aspx) to run the http: // 127.0.0.1 program in the IE Address Bar.

another problem:
if a program runs properly on the sub-host, problems may occur on other sub-hosts. The most serious problem is the absolute path problem, for example, if you want to display an image, use server first. mappath () is displayed by adding its name to the directory where it is located. This will be an absolute path, and errors may occur when accessing other hosts, change the original Code to the relative path: @ "folder name/" + image name.

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.