Can not build in Visual.studio 2008 / conflicting calsses names

  •  12-21-2009, 11:26 AM

    Can not build in Visual.studio 2008 / conflicting calsses names

    Hello,
     
    Known problem in visual studio 2008, with web deployment projects,
    when pages or controls inherits classes with the same name in different folders...
     
    The problem is that 2 files inherits a class with the same name.. in the Client files
    in CuteSoft_Client/CuteEditor/Load.ashx and CuteSoft_Client/CuteEditor/Dialogs/Load.ashx
    Both files inherits EditorLoadHandler
     
    public class EditorLoadHandler : CuteEditor.LoadHandler
     
    Which cause conflicting names in the vs.net build :
    Error 5 An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'EditorLoadHandler' found in assembly 'App_Web_f-3j9tyl'. aspnet_merge 1 1 Website_deploy
     
    I can exclude one of the files, but i'll  have to manually put it on the prod. server.
    Are those 2 files needed ? Safe to rename one class ?
     
    thanks
View Complete Thread