one big issue in MSXML6.0, need Microsoft expert help very urgently error code 8007007b

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello, all
this issue is very strange. I create one Doc with MSXML6.0, when I save it with a path that I give, it will give me the error code below:
0x8007007b The filename, directory name, or volume label syntax is incorrect.
but the path I give is that file:///?UNCabcmachinestangepath1a#1.xml <span style="color:#0066dd ?UNCabcmachinestangepath1a#1.xml ", you can see in this path, we both has
file:///?UNC <span style="color:#0066dd \?UNC and symbol #, please note that # is valid symbol for file name. this is so strange to me. it looks like a bug from MS.
I also verify below scenario, they are fine, that means only both above these two things occur, we suffer this.
file://abcmachine/strangepath/1a#/1.xml <span style="color:#0066dd \abcmachinestrangepath1a#1.xml
file:///?UNCabcmachinestangepath1ab1.xml <span style="color:#0066dd ?UNCabcmachinestangepath1ab1.xml ",
also notice that, if we input file:///?UNCabcmachinestangepath1a?1.xml <span style="color:#0066dd ?UNCabcmachinestangepath1a?1.xml ", pleaes notice symbol "?" is a invalid char for file name, in this situation, we suffer
8007007b.
it looks like MS developer give wrong invalid char list for # under file:///?UNC
<span style="color:#0066dd \?UNC .
anyone has any idea about this, please feels free share with me. this is urgent for me.


CLSID clsid = MSXML::CLSID_DOMDocument;
//<br/>
//test<br/>
//<br/>
CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, <br/>
MSXML::IID_IXMLDOMDocument, (void**)&pXsl);
HRESULT hr = S_OK;<br/>
pXsl->put_async(VARIANT_FALSE);<br/>
_bstr_t url("UpgradeLog2.XML");<br/>
VARIANT_BOOL bs;<br/>
hr = pXsl->load(_variant_t(url),&bs);<br/>
hr = pXsl->save(_variant_t(_bstr_t("<a><span style="color:#0033cc \\?\UNC\Source66ga\filerestore\stangepath\1a#\1.xml ")));


View the full article
 
Back
Top