To be Exact i am getting the following Error.Please help me.
System.UnauthorizedAccessException: Access to the path "C:\XMLFile1.xml" is denied.
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 System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at System.Xml.XmlDOMTextWriter..ctor(String filename, Encoding encoding)
at System.Xml.XmlDocument.Save(String filename)
at mountain.Service1.mountian(String mountainname) in c:\inetpub\wwwroot\mountain\service1.asmx.cs:line 104
Thanks-Ashok
|