Bug Report B96355
Visible to All Users
Duplicate

Dictionary already contains class info

created 17 years ago

Hi,
Every now and then, I have the following error while openeing Model.DesignedDiffs.xafml.
Dictionary already contains class info …
Possible reason: the assembly '…' has been loaded twice.
My problem is the same as with B93055, but the problem is I do not have the steps to reproduce this bug.
Nevertheless, I wanted to let you know. When I have the problem, cleaning my solution doesn't help me, I have to quit Visual Studio and restart it to be able to open the model editor.
By the way, the Module Editor functions normally. I have the feeling that at some point, a list of types loaded in an XPO Dictionary isn't cleared with as a result that this exception occurs…
Last time, I had the problem with the Platorm independent Module. This module loads 3 other modules:
SystemModule and a LocalizationModule (home-made) from within InitializeComponent and one extra from witin the Module's constructor via this.RequiredModuleTypes.Add(typeof(customModule));
Also, it loads one additional businessclass (User) from BaseImpl because some of my domain-classes depend on it.
(this one is loaded from within InitializeComponent)
So, a bugreport without steps to reproduce… doesn't feel very good, but then you know about it anyway…
Maybe you already have a solution?
Regards
Marco

Show previous comments (4)
Dennis Garavsky (DevExpress) 17 years ago

    Hi Marco,
    Thank you for the stack trace and for the additional info you provided. It was helpful. For that purpose I have registered another bug on your behalf: ID B32244 (It's impossible to invoke the Model Editor after rebuilding a Visual Basic solution in Visual Studio 2008.). It causes the strange behavior you experience.
    This bug is caused by the fact that multiple assemblies with the same name are loaded within the AppDomain. Such a problem will disappear once the bug is fixed.
    To make certain that we are right in our assumption we need to know whether you have enabled auto incrementing of assembly versions or do you set the version statically? Please let us know.
    Thanks,
    Dennis

    H H
    Henk van Jaarsveld 17 years ago

      Hi Dennis,
      You're quick in replying…
      I've performed a search to find out what I'm using. I haven't touched the assembly-version attributes manually yet, but it appears that in my solution all the project created from XAF-templates (except for the XAF WebApplication) are using auto-incrementing (currently all decorated with [assembly: AssemblyVersion("1.0.*")]. Other (non-XAF-) projects used in my solution are set to :
      [assembly: AssemblyVersion("1.0.0.0")]
      So, I think the complete answer is that I'm using auto-incrementing as there is no persistent object declared in any of the other projects.
      Regards,
      Marco

      Dennis Garavsky (DevExpress) 17 years ago

        Hi Marco,
        Thank you for the info, this was helpful. We are working on the related bug I created, and I suggest you track its state.
        Thank you for your patience,
        Dennis

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.