Bug Report B32244
Visible to All Users
Duplicate

It's impossible to invoke the Model Editor after rebuilding a Visual Basic solution in Visual Studio 2008.

created 17 years ago

Please refer to the B96355 issue for more information.
This problem occurs only after rebuilding and can be easily resolved by restarting the IDE or reopening a solution.
Steps to Reproduce:

  1. Rebuild solution
  2. Open ModuleEditor for a XAF Windows Forms project
  3. Rebuild the XAF Windows Forms project - a "Reload ModelEditor" dialog appears, confirm reload.
    The Model Editor is not reloaded with the "Dictionary already contains class info" error.
    Thanks,
    Dan.
Show previous comments (8)
Dennis Garavsky (DevExpress) 16 years ago

    Hello Marco,
    Thanks for contacting us. It's strange that this problem happens when using the Build command…
    A small demo or instructions (if you do not have enough time to create a demo) on how to reproduce this problem with our demos or a newly created app will be very helpful, because I feel that this may be another problem than the one reported to MS. We cannot leave this as is, and so would appreciate your help in clarifying certain things.
    You wrote that the workaround doesn't work for you (I assume you are talking about the Build command). If so, the duplicated suggestion contains two more possible workarounds that may solve the problem. The second one seems to be the most convenient.
    Have you already tried them? Would they work for you?
    Thanks,
    Dennis

    H H
    Henk van Jaarsveld 16 years ago

      Hi Dennis,
      As for the other two workarounds:
      Closing and opening Visual Studio works in most cases. To be sure, I perform a build just before closing (so no additional build is needed after opening) and it works. However, this costs a lot of time having a solution of 33 projects.
      Directly referencing output assemblies is not an option as I use different configurations (Release / Debug) a lot. When referencing an output assembly directly, AFAIK I have to choose for a Debug-build of that Assembly, or a Release build of that assembly. When referencing a project, Visual Studio (or MSBuild?) takes care of referencing the right assemblies.
      As mentioned, I don't have an example and as I cannot predict when the problem may occur, it will be difficult to create one. But as I'm also on a tight timeframe currently, I may delve deeper into this when I've more time…
      Regards,
      Marco

      Dennis Garavsky (DevExpress) 16 years ago

        Hello Marco,
        Thanks for getting back to us. I understand you and also think that closing/reopening Visual Studio is not convenient, especially, if you have a large solution.
        >>AFAIK I have to choose for a Debug-build of that Assembly, or a Release build of that assembly. When referencing a project, Visual Studio (or MSBuild?) takes care of referencing the right assemblies.
        No, you can reference this assembly only once. This variant is good when you have a ready business class library that doesn't imply additional changes at all or imply rare changes.
        We're waiting for your sample and appreciate your time. Thanks for your help in advance!
        Thanks,
        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.