A bug or my error? Can you tell?

xxvickyxx

New Member
I have loaded VS.NET Beta 2 and framework on a new/clean machine. After creating a VB ASP.NET application I add a new webform which defaults to the name "webform1.aspx". If I then veiw this in the browser it is fine (nice blank page). However if I add another webform ("webform2.aspx", or any other name that I choose) and view it in the browser I get the following error.<BR>Parser Error <BR>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. <BR><BR>Parser Error Message: 'Data.WebForm2' is not a valid type.<BR>Source Error: <BR>Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm2.aspx.vb" Inherits="Data.WebForm2"%><BR>Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><BR>Line 3: <html><BR> <BR>Source File: c:inetpubwwwrootDataWebForm2.aspx Line: 1 <BR><BR>Do other people have this same problem? How do I fix it? Apart from WebForm1.aspx I can't get any other page to work unless I remove the line Inherits="Data.WebForm2", and then each time I save the project VS.NET sticks the line back in.<BR><BR>Any ideas are greatly appreciated.That is odd. My only suggestion is not to use VS.NET - you can use Notepad or any other text editor, you know. Sorry, this isn't what you wanted to hear, eh?Whilst I appreciate the prompt answer "don't use VS.NET" is not really addressing my problem - If I find a bug in Windows 2000 do I then decide to "Not use W2K" and fire up Linux - which will have it's own bugs.I had similar problems. I would make a webform, add some controls and code to the page (or the codebehind page rather). Then run it and BOOM error. The only way I got it to work was to change the "codebehind=" reference to "src=http://aspmessageboard.com/archive/index.php/" like this:<BR><BR>change<BR><%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%><BR><BR>to<BR><%@ Page Language="vb" AutoEventWireup="false" src="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
 
Back
Top