Two web forms in one project?

  • Thread starter Thread starter Alice Z.
  • Start date Start date
A

Alice Z.

Hi, friends

I have created two web forms in a vb.net project. The strange thing is
the WebForm1.aspx works perfect while the WebForm2.aspx totally does not
work. I got following error message:

Parser Error
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.

Parser Error Message: Could not load type 'WebApp1.WebForm2'.

Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm2.aspx.vb" Inherits="WebApp1.WebForm2"%>Line 2:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: c:\inetPub\wwwroot\WebApp1\WebForm2.aspx Line: 1

Could anyone tell me where is the problem?

Alice
 
Well, you don't give us much to go on. Can you add a third page and copy
your code/controls into it and try it out?
 
Hi,

Do you have these forms in separte sub directories and do
these sub directories have web.config file in them?
Thanx
Deep
 
Back
Top