asp.net adrotater给出错误,即找不到XML或找不到文件 [英] asp.net adrotater giving error that the XML is not found or file not found

查看:66
本文介绍了asp.net adrotater给出错误,即找不到XML或找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我执行的是adrotater示例,但出现了类似
的错误
更高的文件找不到XML文件或文件无效

您知道问题出在哪吗?

[蒂姆·科里(Tim Corey)编辑]-我删除了全部大写的文字.这被认为是大喊大叫,而不是问题的适当形式.请尝试在书写时遵守标准大小写.谢谢.

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?

- 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.

推荐答案

我认为错误是不言自明的.有两个可能的问题.首先,该文件可能不在您的应用程序所在的位置,或者该文件可能无法被应用程序访问.检查以确保文件路径正确(尝试打印出实际路径,然后使用复制/粘贴浏览到该路径,以确保其有效并且没有拼写错误或其他简单错误).还要检查以确保应用程序有权访问此文件.

其次,查看您的XML文件以确保它是有效的XML.如果应用程序期望读取XML文件,则它将期望文件的某种格式.只是<>内部有数据符号还不足以拥有有效的XML文件.我建议您查看一个正常工作的XML文件的副本,然后将其与该文件进行比较.精确复制格式并包括标题行.另外,请确保关闭所有打开的标签.
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.


这篇关于asp.net adrotater给出错误,即找不到XML或找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆