>I tried the suggestion to put in a ClassName= in the <%@ Control section
>of
[quoted text clipped - 84 lines]
>> >
>> >Thank you
I have exactly the same problem. There are no identical names, nothing even
close. It only happens when I change an ascx file. It will happen if I use
F5. If I then use the Start Debugging arrow on the toolbar it will start
and the next time not do this. I think it must have something to do with
the temp files.
LS
Jerry C - 21 Apr 2008 18:53 GMT
Lloyd,
See my last post. Put in the ClassName="classname" in the <%@ Control
section of the ascx file and see if that works. This has been a problem for a
while and now it seems to be getting worse must be some sort of update from
microsoft.

Signature
Jerry
> >I tried the suggestion to put in a ClassName= in the <%@ Control section
> >of
[quoted text clipped - 92 lines]
>
> LS
Lloyd Sheen - 21 Apr 2008 19:16 GMT
> Lloyd,
>
[quoted text clipped - 119 lines]
>>
>> LS
thanks I will check that out.
LS
Hi Jerry,
As Teemu has mentioned, the duplicated name here may also be caused by two
page/user control in differetn folder hierarchy that have the same file
name. ASP.NET use dynamic compilation and will batch compile multiple
page/ascx controls by default. When you haven't explicitly specify a
ClassName( in the directive), if will generate dynamic class depend on file
name. And if runtime try batch compiling two of such controls or pages,
potential naming confliction occurs. The reason why the problem ocassionaly
occurs is that batch compile is not always using the same strategy to
group page or usercontrol together, for most time, the two problem items
may not be compiled into the same assmebly, then no error will occur.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?SmVycnkgQw==?= <jerryed@nospam.nospam>
>References: <C696C760-1DE5-4948-92B5-C662831BA1ED@microsoft.com>
<tBGN8T2oIHA.9932@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: ascx is ambiguous in the namespace ASP
>Date: Mon, 21 Apr 2008 10:33:00 -0700
>I tried the suggestion to put in a ClassName= in the <%@ Control section of
>the ascx file. This seemed to work. But when I deployed it then the next ascx
[quoted text clipped - 37 lines]
>> ==================================================
>> Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
>> ications.
>>
[quoted text clipped - 31 lines]
>> >
>> >Thank you