locked
Type "_xxx" exists in both "...Temporary ASP.NET Files\...dll". Help! RRS feed

  • Question

  • User806430768 posted

    Hello. I am new about WDP in VS 2005. Please help.

    We are creating WDP for one our exsition WAP projects. Compilation worked find for my Web Applications, however it throws following error when we tried to compile its Deployment project. It seemed duplicate assemblies have been created for the same User Control. And we have spent much time on this, we could not get anything helpful.[:(]

    Error 37 The type 'OPSUC.includes_user_controls_markupMenu' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ops\d43d728c\9ce9baf2\App_Web_8llt2hi-.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ops\d43d728c\9ce9baf2\App_Web_winusoz8.dll' c:\Clients\Comcast\OPS\includes\user_controls\BusinessRuleStepEdit.ascx 18 1 OPSDeploy

    Thursday, March 29, 2007 4:21 PM

All replies

  • User-956878918 posted
    This is usually caused by having two different user controls that have the same class name.  This typically happens if you copy a control.  It works fine at runtime, but if you try to precompile, you get bonedogged and it won't work.
    Tuesday, May 8, 2007 9:10 PM
  • User1656021174 posted

    This is correct i have fixed Error .Replace the same control class name with new ....... Thank you......Mr Adam Boyd...

     

    Tuesday, January 15, 2008 3:49 AM
  • User-91825691 posted

    This is correct i have fixed Error .Replace the same control class name with new .......

    Ok... how do you do that? 

    Thursday, March 13, 2008 12:03 PM
  • User-91825691 posted

     Okay. Sorry. My problem didn't have to do with a user control but two similar server controls in /bin. Remove those and cleared temp and everything works.

    Thursday, March 20, 2008 11:51 AM
  • User-1193779277 posted

    Alter the WebConfigo to 

    compilation debug="true" defaultLanguage="c#" batch="false"

    The secret is batch="false"

    Tuesday, June 22, 2010 3:58 PM
  • User-1193779277 posted

    Alter the WebConfig to 

    compilation debug="true" defaultLanguage="c#" batch="false"

    The secret is batch="false"

    Tuesday, June 22, 2010 3:59 PM
  • User1861107345 posted

    I had the same problem but in two different ways. 

    First one was an issue related to the Visual Studio built in IIS Server.  I switched to "use local IIS Web Server" and unchecked "use IIS Express" and it was good. 

    Second time I found this it was due to Page_Load being called in the markup as <script runat="server"> and again in the code behind on a user control.  The code behind should have been removed in this case since all the C# was in the page.  I removed the duplicate Page_Load and all was good. 

    I've been using VS 2012 and .NET 4.5 in case that matters to someone. 

    Monday, March 10, 2014 6:47 PM