Error "The network path was not found"

  • Thread starter Thread starter Flomo Togba Kwele
  • Start date Start date
F

Flomo Togba Kwele

I've defined the following snippet:
--

Private _docNav As XPathDocument = Nothing
Private _nav As XPathNavigator = Nothing

Public Function Process() As List(Of ICassIn)

_docNav = New XPathDocument(FileName)
_nav = _docNav.CreateNavigator

Me.RecursiveWalk(_nav, String.Empty)

Return _stdAddress

the XPathDocument statement errors with "The network path was not found". I copied the value of
FileName from the Immediate Window, opened a command window, and typed:

type value_of_FileName

The display responded with the contents of the XML file. What am I missing here? Why am I getting
this error?

TIA, Flomo
 
Hi Flomo,

Is the file located on a UNC (network share) path? What' the user account
that the application is running under? For example: when debugging a web
site running in IIS, by default the account doesn't have privilege to
access a UNC path.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks for the reply, Walter.

I'm sorry I didn't mention the environment. It's a Windows app with all resources running locally.

Flomo
 
Sorry Walter, I just figured it out. The XML document which I was trying to read in the snippet
contains a reference to a DTD which is pointing to a UNC which does not exist on this machine, but
did on the development machine.
--
 
Back
Top