G
Gianfranco
Hi everybody,
First of all, sorry for my english if it isn't perfect ;-p
I have an error in an asp.net application.
I have win2003 server, with iis 6. I'm developping with visual studio
2005, vb.net, framework 2
I'm trying to access some binary files stored in C: in server2003. if i
access them with C:\... it's fine. Now to access them quickly I work
with a Ramdisk (Y and it works fine if i access with Y:\....
If I make a shared folder and try to access them with
\\srv2003\sharedfolder\... it works fine too. But now I'm trying to
access them with a Network Drive Map (Z and I get this error :
System.IO.DirectoryNotFoundException: Could not find a part of the path
'Z:\filename.ext'.
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at Service.GetPersonObject(Int32 IdPerso) in
C:\Inetpub\wwwroot\WebServicePerson\WebServicePerson\App_Code\Service.vb:line
1152
I've seen many topics here where it says to give rights to Asp user.
I've made it. Somebody says to make impersonate application and I have
made it too
<identity impersonate="true" userName="user" password="pwd"/>
But i'm still having this problem. Could someone help me?
In fact i'm trying to access these files through a map drive to test
access with webservices throug the network layer. If we make it only
with a shared folder, does windows use the same implementation of
network layer?
I'm waiting some help impatiently ;-)
Gianfranco
First of all, sorry for my english if it isn't perfect ;-p
I have an error in an asp.net application.
I have win2003 server, with iis 6. I'm developping with visual studio
2005, vb.net, framework 2
I'm trying to access some binary files stored in C: in server2003. if i
access them with C:\... it's fine. Now to access them quickly I work
with a Ramdisk (Y and it works fine if i access with Y:\....
If I make a shared folder and try to access them with
\\srv2003\sharedfolder\... it works fine too. But now I'm trying to
access them with a Network Drive Map (Z and I get this error :
System.IO.DirectoryNotFoundException: Could not find a part of the path
'Z:\filename.ext'.
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at Service.GetPersonObject(Int32 IdPerso) in
C:\Inetpub\wwwroot\WebServicePerson\WebServicePerson\App_Code\Service.vb:line
1152
I've seen many topics here where it says to give rights to Asp user.
I've made it. Somebody says to make impersonate application and I have
made it too
<identity impersonate="true" userName="user" password="pwd"/>
But i'm still having this problem. Could someone help me?
In fact i'm trying to access these files through a map drive to test
access with webservices throug the network layer. If we make it only
with a shared folder, does windows use the same implementation of
network layer?
I'm waiting some help impatiently ;-)
Gianfranco