|
|
#1 | |
|
Registered User
|
I am trying to load an xml document but it blows up every time. I've done this before without a problem.
Dim xmlDoc As New Xml.XmlDocument If IO.File.Exists(XMLFile) = False Then ThrowError("Unable to locate the setup xml.", True) ElseIf IO.File.Exists(XMLFile) Then xmlDoc.Load(XMLFile) Then it errors on the load with: Additional information: System error. In the debug it says: XMLFile "E:\Dev\UllsaSetup\UllsaSetup\bin\setup.xml" String Any ideas?
__________________
![]() ![]() Comp Specs: Intel Q9650 @ 3.95Ghz Asus Rampage Extreme 2x2GB Mushkin DDR3-1600 @ 6-6-6-17 eVGA GTX 280 SSC BFG ES-800 PSU |
|
|
|
|
|
|
#2 | |
|
DEP Hater :)
|
can you post more of the code please.
__________________
AMD Athlon 64 3500+ 1gb Corsair XMS3200C2PT Leadtek 6800GT Audigy 2 ASUS A8V Windows XP Prof./SuSe 8.2 |
|
|
|
|
|
|
#3 | |
|
2JZ powered
|
Quote:
"E:\Dev\UllsaSetup\bin\setup.xml" not "E:\Dev\UllsaSetup\UllsaSetup\bin\setup.xml"
__________________
|
|
|
|
|
|
|
#4 | |
|
Registered User
|
That was the correct path. It's usually something simple with an error that makes no sense. In this case the xml had <Replace> and </replace>. Just one capital letter made it give a system error. You'd think that the errors might be a little more helpful sometimes.....
__________________
![]() ![]() Comp Specs: Intel Q9650 @ 3.95Ghz Asus Rampage Extreme 2x2GB Mushkin DDR3-1600 @ 6-6-6-17 eVGA GTX 280 SSC BFG ES-800 PSU |
|
|
|
|
|
|
#5 |
|
2JZ powered
|
hehe yeah but u should already know xml is case sensitive.
i would use a try/catch if u want more details on the error instead of throwerror Dim xmlDoc As New Xml.XmlDocument Try xmlDoc.Load(XMLFile) Catch ex as Exception msgbox(ex.tostring) End Try
__________________
|
|
|
|
|
|
#6 | |
|
Registered User
|
Yeah, I know it's case sensitive. I didn't make the layout of the XML. Noticing 1 capital letter out of place isn't easy for me, I can't even find a loaf of bread on the counter when it's right in front of me. The only reason I found it was because I opened it with IE7 and it told me the tags didn't match.
__________________
![]() ![]() Comp Specs: Intel Q9650 @ 3.95Ghz Asus Rampage Extreme 2x2GB Mushkin DDR3-1600 @ 6-6-6-17 eVGA GTX 280 SSC BFG ES-800 PSU |
|
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| X Failed to load NVdriver | c00lr4c3r | NVIDIA Linux | 13 | 10-22-02 01:44 PM |
| Error messages... HELP!!!! | Imperito | NVIDIA Linux | 3 | 09-24-02 10:46 PM |
| GForce drivers installed...but dont work | tomfullery | NVIDIA Linux | 6 | 09-22-02 08:23 AM |
| Need help to get the X to work on my Acer TravelMate 630 | knchee | NVIDIA Linux | 16 | 09-19-02 10:16 PM |
| RH7.3 and nForce - can't find the module | dmw400 | NVIDIA Linux | 4 | 08-05-02 12:14 PM |