XML 解析错误:在 localhost 中工作时未找到元素
我在我的项目中面临一个奇怪的问题。以前有时它在本地和服务器上运行良好,但在我在项目中添加一个新页面后,它就停止工作了。同一项目内但不同文件夹中的管理面板仍然工作正常。但不确定,这个前端页面已经停止工作。
这里我附加了添加新页面后出现的错误的快照。如果有人知道这个问题,请帮助我。
谢谢,
这是我收到的错误 -
XML 解析错误:找不到元素 位置: http://localhost:3989/Colex/home.aspx 第 1 行,第 1 列:
嘿,每当我在 web.config 中评论我的连接字符串时,它都会完美运行,任何人都可以告诉我这个连接字符串有什么问题吗?
<connectionStrings>
<add name="sqlconstr" connectionString="data source=ashton;database=colex;user id=sa;pwd=sa123;" providerName="System.Data.SqlClient"/>
</connectionStrings>
I am facing one weird problem in my project. Before sometimes it was running fine on the local and on the server, but after I have added one new page in my project and then it had stopped working. still the admin panel inside the same project but in different folder is working fine. but not sure, y this front end pages have stopped working.
Here I have attached the snapshot for the error I am getting after adding the new page. Please help me if anybody knows about this problem.
Thanks
this is the error I am getting -
XML Parsing Error: no element found
Location: http://localhost:3989/Colex/home.aspx
Line Number 1, Column 1:
Hey whenever I comment my connection string in web.config its runs perfectly, can anybody tell me whats wrong in this connectionstring.
<connectionStrings>
<add name="sqlconstr" connectionString="data source=ashton;database=colex;user id=sa;pwd=sa123;" providerName="System.Data.SqlClient"/>
</connectionStrings>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论