I'm facing below error. But my application was working fine yesterday. Application build sccessfully. This error come on web page.
error detail:
Expected DTD markup was not found. Line 1, position 3.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: Expected DTD markup was not found. Line 1, position 3.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Please mark the replies as answers if they help or unmark if not.
mshoaiblibra
Participant
1637 Points
265 Posts
Expected DTD markup was not found.
Nov 22, 2012 05:25 AM|LINK
I'm facing below error. But my application was working fine yesterday. Application build sccessfully. This error come on web page.
error detail:
Expected DTD markup was not found. Line 1, position 3.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: Expected DTD markup was not found. Line 1, position 3.
Source Error:
M Shoaib Waheed
MCPD [ASP 4.0]
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Expected DTD markup was not found.
Nov 23, 2012 02:54 AM|LINK
Can you show us your xml file contents?
And what did you do?
mshoaiblibra
Participant
1637 Points
265 Posts
Re: Expected DTD markup was not found.
Nov 24, 2012 07:16 AM|LINK
I'm using Gulf News RSS.
<h1><img src="../images/icoNews.jpg" alt="" />
Gulf News</h1>
<div id="gulfNews">
<asp:XmlDataSource ID="XmlDataSource1" runat="server" XPath="rss/channel/item" DataFile = "http://gulfnews.com/cmlink/1.734148">
</asp:XmlDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSource1" >
<ItemTemplate>
<a href="<%# XPath("link") %>" target="_blank">
<span style="color:#356299; font-weight:bold"><%# XPath("title") %></span> </a>
<br />
<%# XPath("description") %>
<br />
<%#DateTime.Parse(XPath("pubDate").ToString()).ToString("f")%>
<br /><br />
</ItemTemplate>
</asp:DataList>
</div>
I'm Getting Error here. That
Expected DTD markup was not found.
M Shoaib Waheed
MCPD [ASP 4.0]
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Expected DTD markup was not found.
Nov 25, 2012 01:02 AM|LINK
Hi again,
What's acturally about the content of that xml?Withtout detail codes I don't know how to solve……