A little experience to finish a small website (2): The configuration of asp.net+access program running environment

Source: Internet
Author: User
Tags iis access
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.







Related Article

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.