PDA

View Full Version : Runtime error


splanck
04-19-2005, 04:49 AM
I created a simple aspx file that only contains a web form created using Visual Web Developer Express Beta 2 and simply entered some text into the form, but I keep getting a runtime error. The URL for this page is http://beta-144928.server1.dotnetsandbox.net/Default.aspx

Here's the source:

<%@ Page Language='VB' AutoEventWireup='false' CodeFile='Default.aspx.vb' Inherits='_Default' %>

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>

<html xmlns='http://www.w3.org/1999/xhtml' >
<head runat='server'>
<title>Untitled Page</title>
</head>
[b]
<form id='form1' runat='server'>
<div>
This is a test</div>
</form>
</body>
</html>

As you can see, it's not much more than an empty new web form, so there should be nothing here that would cause a runtime error to be generated. Anyone know what the problem might be?

Thanks in advance for your help!

Danny
04-19-2005, 07:46 AM
Create a web.config file with the following:



<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
That way you can see the real error message

bruce
04-19-2005, 07:59 AM
I see this error now,


Parser Error Message: The file '/Default.aspx.vb' does not exist.

unlike asp.net 1.1, i believe you need to upload the code pages.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)