D
Daniel Xiao
I write a program accessing files in network drive o:. It is doable as a
standalone application. However, if it is running under windows service,
the following exception will appear:
13/07/2004 10:24:48 AM run() error: System.IO.IOException: The specified
network password is not correct.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at dump_tool.Dump_Load.run()
The source codes relevant are:
Cur_Fs = File.Open( Cur_File, FileMode.Open, FileAccess.Read,
FileShare.Read );
Where Cur_File = "o:\jul04\10\fares.fl", o: is a mapped network drive.
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
standalone application. However, if it is running under windows service,
the following exception will appear:
13/07/2004 10:24:48 AM run() error: System.IO.IOException: The specified
network password is not correct.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at dump_tool.Dump_Load.run()
The source codes relevant are:
Cur_Fs = File.Open( Cur_File, FileMode.Open, FileAccess.Read,
FileShare.Read );
Where Cur_File = "o:\jul04\10\fares.fl", o: is a mapped network drive.
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!