CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Location
    BeiJing China
    Posts
    290

    An Strange Error: about User Control

    hi;

    I am working with the usercontrol in the past days, I found a very strange problem. (Maybe a bug of VS2005).

    First time I create the user controls in an Assembly named XControls, the main application will use this assembly named TestApplication. When I am drag my created user controls into the Main Form. But it seems that sometimes I success in doing this. But sometimes I failed with the following error Message:
    Code:
    Failed to create component 'UserControl1'. The error Message follows:
    'System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
     at System.Reflection.Module.GetTypes()
     at System.Reflection.Assembly.GetTypes()
     at Microsoft.VisualStudio.Shell.Design.AssemblyObsoleteEventArgs..ctor(Assembly assembly)
    ...
    While the same phenomenon does not appear regularly, but rather randomly.

    Hope someone can help me.

    wxuf
    Waiting OFFERS from CMU, UMass, UC Davis, OSU
    Mail to me

  2. #2
    Join Date
    Jun 2003
    Location
    Malaysia (P.J)
    Posts
    410

    Re: An Strange Error: about User Control

    Yes I think it's a bug too. I also create alot of users control. Wht i do is clean n rebuild the project and open the designer once... and close it and open again. It works... Do not know why this happens.
    Back after a long hibernation.

  3. #3
    Join Date
    Feb 2003
    Location
    BeiJing China
    Posts
    290

    Re: An Strange Error: about User Control

    Are there any service package for VS2005 ?
    By past experience, microsoft always provides such packages.
    Waiting OFFERS from CMU, UMass, UC Davis, OSU
    Mail to me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured