hash impression route throws directorynotfoundexception
consider following formula snippet
private vacant processfile(string fullpath) {
xmltextreader rdr = new xmltextreader("file:\\\\" + fullpath);
while (rdr.read()) {
//do something
}
return;
}
now, functions glorious upheld route like:
"c:\work files\technical information\dummy.xml"
but throws an blunder passed
"c:\work files\#technical information\dummy.xml"
note folders files specified exist crush impression current impression paths. blunder sum are:
system.io.directorynotfoundexception: biased route 'c:\work files\'.
during system.io.__error.winioerror(int32 errorcode, twine maybefullpath)
during system.io.filestream.init(string path, filemode mode, fileaccess access, int32 rights, boolean userights, fileshare share, int32 buffersize, fileoptions options, security_attributes secattrs, twine msgpath, boolean bfromproxy)
during system.io.filestream..ctor(string path, filemode mode, fileaccess access, fileshare share, int32 buffersize)
during system.xml.xmldownloadmanager.getstream(uri uri, icredentials credentials)
during system.xml.xmlurlresolver.getentity(uri absoluteuri, twine role, form ofobjecttoreturn)
during system.xml.xmltextreaderimpl.openurldelegate(object xmlresolver)
during system.threading.compressedstack.runtrycode(object userdata)
during system.runtime.compilerservices.runtimehelpers.executecodewithguaranteedcleanup(trycode code, cleanupcode backoutcode, vigilant userdata)
during system.threading.compressedstack.run(compressedstack compressedstack, contextcallback callback, vigilant state)
during system.xml.xmltextreaderimpl.openurl()
during system.xml.xmltextreaderimpl.read()
during system.xml.xmltextreader.read()
anybody know what's going on?
Comments
Post a Comment