Hi!
I created some user control (ASCX) and it works fine.
The control is created one of subfolders of my project, so
its namespace looks like:
namespace myproject.subfo lder1
{
public class route : System.Web.UI.U serControl
....
In another subfolder I also created second control, but
I used the 1st control as origin. Just copied the 1st control files
to the 2nd subfolder. After changed the 2nd control's namespace as:
namespace myproject.subfo lder2
{
public class route : System.Web.UI.U serControl
....
Compilation works ok, but at run-time when I visit a page that contains
both of my controls, the server raises error:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS1595: 'ASP.route_ascx ' is defined in multiple
places; using definition from
'd:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
Files\myproject \4b10f33a\12f97 037\2bgwzy1u.dl l' 3 1466
T,
Great job! You probably need to rebuild the web site to get rid of the
error. You could have just added your first control control to the second
control without copying any files to the sub folder.
Good Luck
DWS
"Tumurbaata r S." wrote: Hi! I created some user control (ASCX) and it works fine. The control is created one of subfolders of my project, so its namespace looks like: namespace myproject.subfo lder1 { public class route : System.Web.UI.U serControl ....
In another subfolder I also created second control, but I used the 1st control as origin. Just copied the 1st control files to the 2nd subfolder. After changed the 2nd control's namespace as: namespace myproject.subfo lder2 { public class route : System.Web.UI.U serControl ....
Compilation works ok, but at run-time when I visit a page that contains both of my controls, the server raises error:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1595: 'ASP.route_ascx ' is defined in multiple places; using definition from 'd:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET Files\myproject \4b10f33a\12f97 037\2bgwzy1u.dl l'
The files copied really. No virtual references.
How to rebuild whole site? In the VS IDE I see only
Build my project' or rebuild it. Neither helps.
So I excluded the newly created control from the project.
After, instead of copying, I created a new empty control but
with the same name. Rebuilt it and at the runtime it raises
the same error:
Compiler Error Message: CS1595: 'ASP.route_ascx ' is defined in multiple
places
May be the problem is that controls must have different names
regardless of namespace?
I.e. 'route_ascx' should be unique across the project?
"DWS" <DW*@discussion s.microsoft.com > wrote in message
news:92******** *************** ***********@mic rosoft.com... T, Great job! You probably need to rebuild the web site to get rid of the error. You could have just added your first control control to the second control without copying any files to the sub folder.
Good Luck DWS
"Tumurbaata r S." wrote:
Hi! I created some user control (ASCX) and it works fine. The control is created one of subfolders of my project, so its namespace looks like: namespace myproject.subfo lder1 { public class route : System.Web.UI.U serControl ....
In another subfolder I also created second control, but I used the 1st control as origin. Just copied the 1st control files to the 2nd subfolder. After changed the 2nd control's namespace as: namespace myproject.subfo lder2 { public class route : System.Web.UI.U serControl ....
Compilation works ok, but at run-time when I visit a page that contains both of my controls, the server raises error:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1595: 'ASP.route_ascx ' is defined in multiple places; using definition from 'd:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET Files\myproject \4b10f33a\12f97 037\2bgwzy1u.dl l'
I have no idea how it helps, but I've added ClassName attribute
with different values to both ASCX's Control directive, e.g.
ClassName="ImpR oute"
in one ASCX and ClassName="ExpR oute" in other one.
Now problem disappeared.
"Tumurbaata r S." <sp********@mag icnet.mn> wrote in message
news:eS******** ******@tk2msftn gp13.phx.gbl... The files copied really. No virtual references. How to rebuild whole site? In the VS IDE I see only Build my project' or rebuild it. Neither helps. So I excluded the newly created control from the project. After, instead of copying, I created a new empty control but with the same name. Rebuilt it and at the runtime it raises the same error: Compiler Error Message: CS1595: 'ASP.route_ascx ' is defined in multiple places
May be the problem is that controls must have different names regardless of namespace? I.e. 'route_ascx' should be unique across the project?
"DWS" <DW*@discussion s.microsoft.com > wrote in message news:92******** *************** ***********@mic rosoft.com... T, Great job! You probably need to rebuild the web site to get rid of the error. You could have just added your first control control to the second control without copying any files to the sub folder.
Good Luck DWS
"Tumurbaata r S." wrote:
Hi! I created some user control (ASCX) and it works fine. The control is created one of subfolders of my project, so its namespace looks like: namespace myproject.subfo lder1 { public class route : System.Web.UI.U serControl ....
In another subfolder I also created second control, but I used the 1st control as origin. Just copied the 1st control files to the 2nd subfolder. After changed the 2nd control's namespace as: namespace myproject.subfo lder2 { public class route : System.Web.UI.U serControl ....
Compilation works ok, but at run-time when I visit a page that contains both of my controls, the server raises error:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1595: 'ASP.route_ascx ' is defined in multiple places; using definition from 'd:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET Files\myproject \4b10f33a\12f97 037\2bgwzy1u.dl l'
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Donna Price |
last post by:
I have a problem with a database which I've recently separated into several
related tables. I have a main data entry form, which has several subforms
on it on tabbed pages. The first subform is actually part of the main data
table, however, when I try to add new data to the form all is OK until I
reach the first tab page which has specific data (still on the main table),
when you try to add data to this part of the form an error message...
|
by: Mike Moore |
last post by:
We have 3 fields on our web form that makeup what could be a duplicate entry.
We would like to look at these three fields that the user enters and check
in the database to see the information in all three fields matches
information in the database. Can you do this in a custom validator?
|
by: Shimon Sim |
last post by:
I have a custom composite control
I have following property
|
by: Suzanne |
last post by:
Hi all,
I'm reposting this message as I'm experiencing this problem more and
more frequently :
I really hope someone out there can help me as I've been tearing my
hair out on this one for a good while and I'm getting really
frustrated now!
My problem is this - my custom controls periodically disappear from my
|
by: J R M |
last post by:
I've developed a custom control (it's basically a drop-down list and
then a couple of textboxes to include meta-data for the selection) that
I'm embedding into another custom control (the idea is to allow a
dynamic number of control1 to appear in control2). Everything renders
correctly, however I could never retrieve data on postback from my
embedded controls. Upon closer inspection, all of the embedded
controls output without any "name"...
| |
by: rizwanahmed24 |
last post by:
Hello
i have made a custom control. i have placed a panel on it. I want this
panel to behave just like the normal panel. The problem i was having is
that the panel on my custom control doesnt accept other controls. The
control i drag drop on it becomes the child of my custom control's
parent form and not the child of my custom control. Then i added this
line
""
before my custom control class (i dont know what this line does). Now
|
by: Ron |
last post by:
I would like some more information on custom controls, what they can
do and things like that, what you would use them for etc...
Can anyone here share some examples of what you have used a custom
control for and possibly email a zip file with that control so I could
run it in a program to see how it worked? to pts4560 <atyahoo.com ?
thanks.
|
by: =?Utf-8?B?U2hhcm9u?= |
last post by:
Hello gurus,
I want to have a Form with a TabControl, this TabControl will contain
TabPage that has controls in it, this TabPage is prepared at design time.
I want in runtime to duplicate the TabPage that wad made during the design
time together with all its controls, but without the controls data.
Is there an easy way to do that?
|
by: Arthur Dent |
last post by:
Anyone know, in VB.NET (2005) how to prevent duplicate occurrences of the
same event handler on an event?
e.g... I have some object which raises an event, and some other class which
consumes them. So in essence what I want to do is something like this in the
consumer class...
If Not objEventSource.SomeEvent.Handlers.Contains(AddressOf me.EventHandler)
Then _
AddHandler objEventSource.SomeEvent, AddressOf me.EventHandler
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |