Compiler Error Message: CS0010: Cannot declare a namespace and a type both named 'A'

Last post 05-30-2006, 11:09 AM by psmithgr. 6 replies.
Sort Posts: Previous Next
  •  01-24-2006, 8:08 AM 15041

    Compiler Error Message: CS0010: Cannot declare a namespace and a type both named 'A'

    In my actual web a get a compiler error! Not in a separate own test web.

    Here is the link to my actual web:
    http://www.hhw.de/test

    Each time you refresh the page, you will see a "green" page inside the editor. This is the error page of this web.
    Also on popup windows e.g. if you click on "Insert image" you will not get the file explorer for images, but the error page. Or click on "Insert Hyperlink", it's the same!

    This error appears not only on your example page "default.aspx" but also on my application inside this web, with or without using a css file.

    Here again the error message which is shown for half a second in the editor and in all popup windows:
    Compiler Error Message: CS0010: Cannot declare a namespace and a type both named 'A'
    Does CuteEditor uses a namespace or a type called "A"?
    Are there any problems with other components like devBiz Compression and ActiveUp HTMLTextbox.

    Who had the same problems and can give me a tip?
  •  01-24-2006, 2:00 PM 15062 in reply to 15041

    Re: Compiler Error Message: CS0010: Cannot declare a namespace and a type both named 'A'

    mwinkler,
     
    Can you set your site FTP access to us?

    I think we need to check your site and figure out the problems.


     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-25-2006, 5:07 AM 15083 in reply to 15062

    Other problems: Mac PCs, help file ...

    Now it's working. I deinstalled the other Textbox component from ActiveUp and since this time, I never had this problem again! Very strange...
     
    Now I've an other problem: you wrote "A cross-browser, cross-platform WYSIWYG online HTML editor..." and we bought your component, because a client of us only uses Mac PCs.
    And with Mac Safari 2.0 there is a problem, that the text is not shown after roundtrip. Please check my test page again http://www.hhw.de/test. And some Icons and Dropdownlists are missing - also in your examples?!
    Or we use Mac FireFox 1.5: here the css inside the box doesn't work i.e. when using "float:right" with images.
    Please help!

    By the way. When using the "CuteEditorDeveloperGuide.chm" the content in the right area doen't not appear. Do you have any tip for me?
    Thanks for help.
  •  01-26-2006, 5:08 PM 15177 in reply to 15083

    Re: Other problems: Mac PCs, help file ...

  •  05-26-2006, 9:47 PM 19565 in reply to 15177

    Exception: Cannot declare a namespace and a type both named 'A'

    Server Error
    Compilation Exception 
    Cannot declare a namespace and a type both named 'A'
     
    We used the CuteEditor for a few months with nothing like this happening. Now all of a sudden, with no changes to anything under the /CuteSoft_Client directory, this server side exception began appearing inside the editor's text region at runtime. This happens on every page where we use it. The the toolbars are getting formatted pretty randomly too (8 rows of 5 buttons across on a blank gray background & such). Even though it says "compilation error," it's not happening when we compile our solution... it's getting thrown when the editor dynamically compiles at runtime, (and it's visible to the end user).
     
    We saw posts here that said this had been fixed, we so completely removed all traces of version 5.2, then installed 5.3. No dice.
     
    How do we resolve this?
     
    Where can we get a DLL version that we can debug? ...or a differently obfuscated or non-obfuscated copy of the 5.3 DLL; we don't care, anything without members named "a"? This is really hurting us.
  •  05-27-2006, 12:56 AM 19566 in reply to 19565

    Re: Exception: Cannot declare a namespace and a type both named 'A'

    psmithgr,
     
    Try remove the reference to CuteEditor.dll from your project and add the reference to CuteEditor.dll version 5.3. Then recompile your project.
     
    If it doesn't help, please send a simple project to me. I will check it in the weekend.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-30-2006, 11:09 AM 19603 in reply to 19566

    Re: Exception: Cannot declare a namespace and a type both named 'A'

    Thanks Adam,

    I did try removing 5.2 and replacing with 5.3, but no luck.

    FYI, it seems that even though we're seeing the error in the CuteEditor, another commercial component in the app (VM.xPort.DS2XL) may be the source of the namespace collision. We're going to try rearranging our namespaces to accomodate this control & see if that will at least temporarily resolve the exceptions.

    For what it's worth, this seems to be an issue with Dotfuscator output on quite a few commercial components, and I would consider bringing it to their attention. Apparently, any combination of two or more controls that use Dotfuscator  and the System.ComponentModel.Licensing model will cause namespace collisions if any one of them fails to insulate its namespace properly. In every case I've seen, Dotfuscator assigns the name "a" to the class which inherits from LicenseProvider.

    I would consider that a significant shortcoming in the Dotfuscator product; it make for components that are prone to conflicts, and it's also not very strong obfuscation if the output is that deterministic.

    Thanks again; I'll post any further findings here as they might help other users avoid this issue.

View as RSS news feed in XML