简体   繁体   中英

Accessing a network folder with ASP.NET

I need to access a.network folder in

\\p3clfs\xyz\test.tiff

Then:

String image = @"\\p3clfs\xyz\test.tiff";
MyClass.OpenUrl(image)

Error: c:\.netpub\wwwroot\p3clfs\xyz\ does not exist!

How can I open the URL without "c:\.netpub\wwwroot\"?

If you need to open a.network path (so, something based on the file system,) as a URL, your string needs to be something like this:

String image = @"file://p3clfs/xyz/test.tiff";

Actually the solution was to create a virtual directory in IIS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM