A bug or my error? Can you tell?

Results 1 to 4 of 4

Thread: A bug or my error? Can you tell?

  1. #1
    Rodger Guest

    Default A bug or my error? Can you tell?

    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: &#039;Data.WebForm2&#039; is not a valid type.<BR>Source Error: <BR>Line 1: &#060;%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm2.aspx.vb" Inherits="Data.WebForm2"%&#062;<BR>Line 2: &#060;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&#062;<BR>Line 3: &#060;html&#062;<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&#039;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.

  2. #2
    Ed Guest

    Default Weird... don't use VS.NET?

    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&#039;t what you wanted to hear, eh?

  3. #3
    Rodger Guest

    Default Not really a solution

    Whilst I appreciate the prompt answer "don&#039;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&#039;s own bugs.

  4. #4
    Join Date
    Dec 1969

    Default RE: A bug or my error? Can you tell?

    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=" like this:<BR><BR>change<BR>&#060;%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%&#062;<BR><BR> to<BR>&#060;%@ Page Language="vb" AutoEventWireup="false" src="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts