Access|asp.net| program
Today I sent the good things to the client (she asked me to do something, called it). Results she used to configure the ASP program to configure the program, and then run, the results will not be able to pull ~ (see only static interface, and the dynamic part of the database dealing with can not be displayed).
To solve this problem, I specifically found a machine test that was not installed on the. NET environment, which is only loaded with Windows2000, with IIS. Here's my summary:
The first step, I first installed the microsoft.net.framework1.1 software package.
The second step is to install Microsoft Data Access Components 2.7 (MDAC), otherwise you will be prompted for OLE DB to be unavailable when you run the program.
The third step, set the computer IP, I set to 192.168.0.20 (can be arbitrarily set, as long as not automatically get)
Step fourth, turn on IIS and set IP to 127.0.0.1 in the properties of the default Web site (because I was the IP when I was developing the program, and of course it could be changed to another IP (192.168.0.20), However, to find the webinfo-suffix file in the Program project folder, open Notepad, and change the path in its web URLPath to the appropriate IP address.
Step fifth, in IIS, in the default Web Site property, set the local path to the directory of the corresponding program, add the program first name (index.aspx) in the document item to the IE Address bar http://127.0.0.1 Run the program.
Another question:
I had a good program on my machine, to other machines may appear problems, the most problematic is the absolute path of the problem, for example, I want to display a picture, I first use Server.MapPath () to take its folder path and then add its name to display, then this will be the absolute path , in other machine access can be error, the original code to direct assignment relative path: @ "folder name/" + Picture name, you can.