We help IT Professionals succeed at work.

Website using server space on another disk

Hi

Built a website in .net c# which is run from usual c:\internetpub\etc

Want to access image files stored in code behind on an a different hard disk e.g. d:\website22\images\ in a folder were path is known and can be hard code referenced

How I can I do that please.

Rgds
stephen  
Comment
Watch Question

Principal Consultant
CERTIFIED EXPERT
Commented:
In order to access Image Files from a different disk, please follow the steps given below:

In case you are using IIS 6.0

1. Open Internet Information Services (IIS) 6.0 Manager
2. Expand Server Name
3. Expand Web Sites
4. Right Click on the Website Name
5. Choose New > Virtual Directory ....
6. Give Alias name in the Dialog Box ex. imgd - for images in D drive, and Click Next
7. Choose the path to appropriate folder on D Drive and Click Next
8. Enable Read Permission and Disable others and Click Next
9. Click Finish

Now you can access images on D drive folder by using /imgd in your code.


In case you are using IIS 7.0

1. Open Internet Information Services (IIS) 6.0 Manager
2. Expand Server Name
3. Expand Web Sites
4. Right Click on the Website Name
5. Choose Add Virtual Directory ....
6. Give Alias name in the Dialog Box ex. imgd - for images in D drive
7. Choose the path to appropriate folder on D Drive and Click OK

Now you can access images on D drive folder by using /imgd in your code.
Hope this helps!

Regards,

Explore More ContentExplore courses, solutions, and other research materials related to this topic.