|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Weird "defined in multiple places" errorCS1595: '_ASP.A_ascx' is defined in multiple places; using definition from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2b5cf18c\86b61b77\isblapsv.dll' Ok...but what renders this error? <%@ Register TagPrefix=Hello TagName=A Src=A.ascx %> <%@ Register TagPrefix=Hello TagName=B Src=../BDir/B.ascx %> <Hello:B runat=server /> <Hello:A runat=server /> Remove line 1 and 4 - works fine! Remove line 2 and 3 - works fine! Run on another computer - works fine. Any rights issues? ...you know the /nostdlib compiler option - nope! How about a iis reset, remove all temporary ASP.NET files, rebooting the whole goddamn (sense no agression whatsoever) computer? Nope! "Final" workaround for me: Create a copy of A.ascx: A2.ascx, and change the source attribute for the registering of Hello:A to A2.ascx. Why??????? On Sat, 23 Apr 2005 13:24:04 -0700 in
microsoft.public.dotnet.framework.aspnet.webcontrols, Staffan Eketorp <StaffanEket***@discussions.microsoft.com> wrote: >Remove line 1 and 4 - works fine! Remove line 2 and 3 - works fine! Run on I've had the same problem -- very frustrating. One thing I do that>another computer - works fine. Any rights issues? ...you know the /nostdlib >compiler option - nope! How about a iis reset, remove all temporary ASP.NET >files, rebooting the whole goddamn (sense no agression whatsoever) computer? >Nope! "Final" workaround for me: Create a copy of A.ascx: A2.ascx, and >change the source attribute for the registering of Hello:A to A2.ascx. > >Why??????? seems to work is to open each .ascx file, make a minor change (such as adding a space then deleting it), then re-save each file and do a "Build Page". This seems to flush all temporary files and 9 times out of 10, the error disappears. Hope this works for you Roger P.S. I've been using beta 2 for a few days now, and so far the "defined in multiple places" error hasn't occurred. Thanks for the reply. I suspect I'll have to go for Beta 2 then =). Seriously
this crap is just happening on our production server, i.e. not on any test machine of mine, which somewhat limits my ability to play around. I've tried to change the file slightly to force a recompile (and a file flush) without luck, but I can't really do some "Build Page" thing. I HAVE made minor changes to the codebehind files and put a replacement dll in the /bin folder - also without any luck. Show quoteHide quote "Roger Helliwell" wrote: > On Sat, 23 Apr 2005 13:24:04 -0700 in > microsoft.public.dotnet.framework.aspnet.webcontrols, Staffan Eketorp > <StaffanEket***@discussions.microsoft.com> wrote: > > >Remove line 1 and 4 - works fine! Remove line 2 and 3 - works fine! Run on > >another computer - works fine. Any rights issues? ...you know the /nostdlib > >compiler option - nope! How about a iis reset, remove all temporary ASP.NET > >files, rebooting the whole goddamn (sense no agression whatsoever) computer? > >Nope! "Final" workaround for me: Create a copy of A.ascx: A2.ascx, and > >change the source attribute for the registering of Hello:A to A2.ascx. > > > >Why??????? > > I've had the same problem -- very frustrating. One thing I do that > seems to work is to open each .ascx file, make a minor change (such as > adding a space then deleting it), then re-save each file and do a > "Build Page". This seems to flush all temporary files and 9 times out > of 10, the error disappears. > > Hope this works for you > Roger > > P.S. I've been using beta 2 for a few days now, and so far the > "defined in multiple places" error hasn't occurred. >
Protected Shadows With Events.
dynamic textbox empty string DropDownList with default values Gridview OnPageIndexChanging not firing in beta 2 How do I set the value of a checkbox on my repeater control? e.Item.Cells.Count in UpdateCommand event of Datagrid Losing selectedIndex on Control inherted from ListBox during postback Enabled / Disabled my control textbox onfocus event Style tag access webcontrol |
|||||||||||||||||||||||