Accessing ClearCase Mapped Drive using ASP.NET

M

Mrunal

Hi,
I am trying to access a mapped drive(its a clearcase
mapped drive) using ASP.NET on win2003 server but am
getting error as

Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException:
Could not find a part of the path "Y:\".

Source Error:


Line 26: void AddNodes(String fpath,String sID)
Line 27: {
Line 28: string[] listFiles = AccessFileSystem.GetFiles
(fpath);


And i am able to access the drive using stand alone C# app
running on the same machine
Thanks
Mrunal
 
K

Ken Schaefer

Drives are mapped for the logged on user only.

So, something that's mapped for your user account (which you are running the
WinForms app under) is not mapped for the NT AUTHORITY\Network Service
account.

Assuming that you have an appropriate user account running your ASP.NET app
(ie one that has permissions to remote resources), then you can use a UNC
path instead (\\server\share)

Cheers
Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top