Hi Every one,
I have got a small problem in window server 2003.My problem is ,when i am trying to execute the below code ,I am getting the error :Access to the path 'D:\AWS2\Web\vhost\Data\H\L\20840122\safari\Admin\WordOut.htm' is denied.
System.Net.WebClient objClient = new System.Net.WebClient();
string remoteUri = Request.Url.AbsoluteUri.ToString().Substring(0, Request.Url.AbsoluteUri.ToString().LastIndexOf("/")); ;
string fName = "/WordOut.aspx?ItineraryId={0}&ItineraryName={1}", myStringWebResource = null;
myStringWebResource = remoteUri + fName;
string strBody = objClient.DownloadString(string.Format(myStringWebResource, ItineraryID, Convert.ToString(ViewState["ItineraryName"])));
System.IO.File.WriteAllText(Server.MapPath("~/Admin") + "\\WordOut.htm", strBody);
objClient.Dispose();
please give me solution for this.i know that we need to give re ...
Go to the complete details ...