looseEnds
06-15-2004, 06:10 AM
I am recieving the following error message:
Server Error in '/' Application.
--------------------------------------------------------------------------------
The underlying connection was closed: The remote name could not be resolved.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The underlying connection was closed: The remote name could not be resolved.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The underlying connection was closed: The remote name could not be resolved.]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult) +140
System.Net.HttpWebRequest.GetResponse() +147
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) +65
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlValidatingReader.ReadWithCollectText Token() +146
System.Xml.XmlValidatingReader.Read() +26
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename) +78
_2lalaland.hangman.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
I have been assuming that the path to my XML file is incorrect. Here is the snippet of code that loads the XML file with the path I use on my localhost:
Dim xmlDoc As XmlDocument = New XmlDocument()
Dim xnlList As XmlNodeList
xmlDoc.PreserveWhitespace = True
xmlDoc.Load("D://IIS/2lalaland/games/Hangman/Wordlist.xml")
xnlList = xmlDoc.SelectNodes("//NewWord")
I have tried the following path references in the xmlDoc.Load() statement and nothing has worked:
"\\xxxx\htdocs\games\Hangman\WordList.xml"
"\web\xxxx\htdocs\games\Hangman\WordList.xml"
"\\web\xxxx\htdocs\games\Hangman\WordList.xml"
"htdocs\games\Hangman\WordList.xml"
(Server.MapPath("web\xxxx\htdocs\games\Hangman\WordList.xml"))
(Server.MapPath("\games\Hangman\WordList.xml"))
(Server.MapPath("WordList.xml"))
I am now beginning to think it is not my path references at all but an access to the server issue.
Any advice will be appreciated.
Lorraine
Server Error in '/' Application.
--------------------------------------------------------------------------------
The underlying connection was closed: The remote name could not be resolved.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The underlying connection was closed: The remote name could not be resolved.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The underlying connection was closed: The remote name could not be resolved.]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult) +140
System.Net.HttpWebRequest.GetResponse() +147
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) +65
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlValidatingReader.ReadWithCollectText Token() +146
System.Xml.XmlValidatingReader.Read() +26
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename) +78
_2lalaland.hangman.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
I have been assuming that the path to my XML file is incorrect. Here is the snippet of code that loads the XML file with the path I use on my localhost:
Dim xmlDoc As XmlDocument = New XmlDocument()
Dim xnlList As XmlNodeList
xmlDoc.PreserveWhitespace = True
xmlDoc.Load("D://IIS/2lalaland/games/Hangman/Wordlist.xml")
xnlList = xmlDoc.SelectNodes("//NewWord")
I have tried the following path references in the xmlDoc.Load() statement and nothing has worked:
"\\xxxx\htdocs\games\Hangman\WordList.xml"
"\web\xxxx\htdocs\games\Hangman\WordList.xml"
"\\web\xxxx\htdocs\games\Hangman\WordList.xml"
"htdocs\games\Hangman\WordList.xml"
(Server.MapPath("web\xxxx\htdocs\games\Hangman\WordList.xml"))
(Server.MapPath("\games\Hangman\WordList.xml"))
(Server.MapPath("WordList.xml"))
I am now beginning to think it is not my path references at all but an access to the server issue.
Any advice will be appreciated.
Lorraine