Asp.net + AccessProgramRunning Environment Configuration
Today, I sent the prepared items to the client ). as a result, she configured the program by configuring the ASP program, and then ran it. 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 machine that does not have a. NET environment installed. This machine is only installed with Windows2000 and has IIS. The following is my summary:
Step 1: I first 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)
Step 4: Open IIS and set the IP address to 127.0.0.1 in the "Default web site" attribute (because this IP address is used during program development, of course, you can change it to another IP address (192.168.0.20), but you need 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 of IIS to the directory where the corresponding program is located, and add the name of the homepage of the Program (index. aspx ). Http: // 127.0.0.1 Run the program.
Another problem:
If a program is run properly on my machine, problems may occur on other machines. The most serious problem is the absolute path problem. For example, I want to display an image, I first use server. 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.CodeChange to direct assignment relative path: @ "folder name/" + image name.