An implementation that stores uploaded attachments to another file server in ASP.

Source: Internet
Author: User

Assume there are two servers: A and B, where A is a Web server (ip:192.123.1.1, a server for IIS publishers), and B is a file server (ip:192.123.2.2)

  1. Create a shared folder under a disk in file Server B docshare, and create a user on that server, such as Docuser, and assign this user read and write access to the shared folder
  2. The same user, such as Docuser, is also created in Web Server A, and the password must be consistent with the Docuser in B. and add user Docuser to the IIS_WPG user group
  3. Create a new application pool Docpool, and Set permissions authentication, enter user name Docuser and password.
  4. Set IIS published program's application pool to Docpool
  5. Add a virtual directory under the root of the program that is published by IIS, the name is files, and the virtual directory maps to the shared directory path of server B, such as: \\192.123.2.2\DocShare set a specific user access, enter the user name Docuser, password.
  6. In the program code, the save path to the settings file is Server.MapPath ("Files") : The path to the virtual directory.

An implementation that stores uploaded attachments to another file server in ASP.

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.