Hi,
whem I try
filename = Now.TimeOfDay.ToString.Substring(0, 8) & EncodeVisitId & ".html"
mywebReq = WebRequest.Create(url1)
mywebResp = mywebReq.GetResponse()
sr = New StreamReader(mywebResp.GetResponseStream, System.Text.Encoding.ASCII)
strHTML = sr.ReadToEnd
sw = System.IO.File.CreateText("\\server1\Websites\" & filename)
sw.WriteLine(strHTML)
sw.Close()
Response.WriteFile("\\server1\Websites\" & filename)
I get the error:
Server Error in '/AOHIntranetApps/VisitManager' Application.
Access to the path '\\server1\Websites\Q1ZJRD03MzQz.html' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more informat ...
Go to the complete details ...