Two web forms in one project?

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
 
S

Scott M.

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?
 
D

Deepankar

Hi,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top