Reputation: 3194
I've been spending the past few hours trying to get a 2.0 .Net ASP.Net app working with 4.0. I've struggled through different web.config hurdles, but now I'm stuck at something weird.
When trying to access the site, it only renders up to the form tag. The source looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="App_Themes/Default/Menu.css" type="text/css" rel="stylesheet" />
<title>
Webpage
</title>
</head>
<body>
<form
Then it just ends. I can't find anything related in any logs.
The code in the master page where this html is from should continue like this:
id="form1" runat="server">
To complete the form tag.
Any ideas?
Edit: Found a global try catch that would eat up any errors from the web application.
Upvotes: 1
Views: 321
Reputation: 78880
When your content is truncated like that, it means that you have gotten an unhandled runtime exception. Check your application event logs for errors or warnings (found under Windows Logs -> Application in Event Viewer, for Windows 7 at least).
If there is no error/warning logged there, perhaps something in your code is getting the exception and swallowing it. Check your exception handlers to see if the code there is getting reached.
Upvotes: 2
Reputation: 46641
Try changing your DOCTYPE to:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
Upvotes: -1