Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While I executing adrotater example it was giving an error like

the adroter file could not find the XML file or file is invalid

Do you know what the issue is?

[Edit by Tim Corey] - I took out the all caps text. This is considered yelling and is not proper form for a question. Please try to observe standard casing in your writing. Thank you.
Posted
Updated 15-Jun-12 4:24am
v2

1 solution

I think that error is fairly self-explanatory. There are two possible issues. First, the file might not be in the place where your application is looking or it might not be accessible by the application. Check to be sure that the file path is correct (try printing out the actual path and then browsing to that path using copy/paste to be sure it works and there isn't a misspelling or other simple mistake). Also check to be sure the application has the rights to access this file.

Second, look at your XML file to be sure that it is valid XML. If the application is expecting to read an XML file, it will be expecting a certain format for the file. Just having data inside the <> symbols isn't enough to have a valid XML file. I would recommend that you look at a copy of a working XML file and compare your file to it. Copy the formatting exactly and include the header row. Also, be sure you close any tags you open.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900