By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,773 Members | 1,793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,773 IT Pros & Developers. It's quick & easy.

Merging of Web Applicatoin creates a problem

P: n/a
Problem Summary:
Merging two different web applications into one create a problem for User
Controls.

Reason for merging two different Web Application:
To share non serializable object information between the Web applications.

Problem Statement:
Suppose I have two different web applications WebApp1 and WebApp2, both of
them have the
same directory structure like
WebApp1
bin
WebApp1.dll
Forms
Form1.aspx
Form2.aspx
UserControls
UserControl1.ascx

WebApp2
bin
WebApp2.dll
Forms
Form3.aspx
Form4.aspx
UserControls
UserControl1.ascx

Form1.aspx and Form2.aspx uses the user Control UserControl1.ascx and
Form3.aspx and Form4.aspx also uses the user Control UserControl1.ascx

now if I compile and run both the application seperately both applications
works fine.

But If I create one web application as WebApp and copy the folders and dll
in the respective folders as

WebApp
bin
WebApp1.dll
WebApp2.dll
Forms
Form1.aspx
Form2.aspx
Form3.aspx
Form4.aspx
UserControls
UserControl1.ascx

and if I request any of the .aspx web form (ex.
http://localhost/WebApp/Form1.aspx) then following is the error
"Parser Error Message: The base class includes the field 'UserControl1', but
its type (WebApp.UserControl1) is not compatible with the type of control
(ASP.UserControl1_ascx)."
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.