Server was unable to process request. Access denied
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path 'E:\XYZ\' is denied.
Soln:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path 'E:\XYZ\' is denied.
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, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
--- End of inner exception stack trace ---
I recently had a problem that sounds similar. I had a program which was
trying to access "C:\XYZPath\", and got an access denied error.
This was because it only had the path, but no filename. It was, in effect,
trying to access the folder as though it were a file. This was just a matter
of a bad exception thrown by .NET. The real exception was that I was missing
the file name.
trying to access "C:\XYZPath\", and got an access denied error.
This was because it only had the path, but no filename. It was, in effect,
trying to access the folder as though it were a file. This was just a matter
of a bad exception thrown by .NET. The real exception was that I was missing
the file name.
No comments:
Post a Comment