Control exists in both dll

Last post 05-29-2008 3:04 AM by stephenraja@ajsquare.com. 4 replies.

Sort Posts:

  • Control exists in both dll

    05-27-2008, 7:52 AM

    Hi,

    I create  web project using asp.net2.0 with c#.

    Right click my project add select  web deployment project  menu.

    web deployment  created and i build the deployment project error is occur.

    The error is given bellow

     The type 'GalleryUserControl' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\electron\012e0e6d\3a77c521\App_Web_gmowowuh.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\electron\012e0e6d\3a77c521\App_Web_bl0_waog.dll'    f:\StephenProject\27-5-08\Electron\CNNCol2Content$9.aspx

    Please give solution 

  • Re: Control exists in both dll

    05-27-2008, 2:04 PM
    Answer
    • Contributor
      3,389 point Contributor
    • hongping
    • Member since 11-02-2006, 9:42 PM
    • Posts 633
    • AspNetTeam

    It looks like you might have two separate controls with the same name 'GalleryUserControl', and that some other page references both the dlls compiled for each of them?

    ==============================================
    If you get the answer to your question, please mark it as the answer.
  • Re: Control exists in both dll

    05-28-2008, 12:28 AM
    Answer

    Hi, 

     Thanks for your reply.

    I follow your advice  then the error is prevented.

    but one error is occur.

    "aspnet_merge.exe" exited with code 1. 

    Please give solution. 

  • Re: Control exists in both dll

    05-28-2008, 2:34 PM
    Answer
    • Contributor
      3,389 point Contributor
    • hongping
    • Member since 11-02-2006, 9:42 PM
    • Posts 633
    • AspNetTeam

    What options did you select when you build the Web Deployment Project?

    You could also try running aspnet_compiler and aspnet_merge manually from the command line, adding the -errorstack flag to see addition error information.

    ==============================================
    If you get the answer to your question, please mark it as the answer.
  • Re: Control exists in both dll

    05-29-2008, 3:04 AM

    Hi,

    I problem is solved.

    I choose 'create seperate assembly for page and control' option.

    no error is occur.

    Thanks for your reply.

Page 1 of 1 (5 items)