Error Creating New Business Object
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Error Creating New Business ObjectExpand / Collapse
Author
Message
Posted 12/27/2007 9:51:50 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 6:32:47 PM
Posts: 349, Visits: 1,205
All I did was click OK after naming the new business object and I received this error (white screen of death):

The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: SalesOrderStatusesBO --- The base class 'System.Object' cannot be designed.

Weird, huh?

Bill

Post #13178
Posted 01/22/2008 1:21:45 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 6:32:47 PM
Posts: 349, Visits: 1,205
Another instance of the WSOD:

The designer loader did not provide a root component but has not indicated why.

What is up with that?  This has been happening with a good bit of frequency lately. 

Should I be alarmed?

Closing the designer and reopening it brings everything back, but there must be a root cause somewhere for this behavior.

Thanks,
Bill

Post #13634
Posted 01/22/2008 4:09:32 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: 06/29/2008 10:06:12 AM
Posts: 595, Visits: 10,664
Hey Bill.

I bet Trent will know a deeper reason for this problem, but I don't. Just to let you know that I get those all the time, and it is always a "get out and back again" kind of solution. I just live with it.

Post #13648
Posted 01/22/2008 5:20:27 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 8:47:41 AM
Posts: 4,104, Visits: 4,175
Weird, huh?

Actually, no.  I know that at first some of these errors and messages do not make a lot of sense, but it all comes down to the assemblies being loaded into the AppDomain of the development environment.

As you have already noticed, you cannot see the strong-typed field names of a BO until the project has been built.  This is because the type editors (builders) must be able to create an instance of that object in order to reflect it (reflection).  So when this object is created, it must first load it's assembly which is loaded into the current AppDomain.  WHen you make a change, and this type of object is in use or there is another assembly on disk with the old name, then you can start seeing this type of behavior.  This is why when you get out of Visual Studio and come back in some of these problems go away...the AppDomain is cleared and reloaded from the new assembly.

The designer loader did not provide a root component but has not indicated why.

This message can from from a number of different places, but this is an example of when you could see this.  When a type editor is invoked, many times the root component is referenced which gives a reference of the BO (or root component being modified) which is called through the IDesignerHost interface.  Bottom line is that when you start renaming or making some changes like this, you are going to run into some of this type of behavior....so this is actually normal

This message can also appear when the form is being loaded through the InitializeComponent method when designing the form.  There is no direct answer, but it generally comes from making a change to a class that either removes functionality or it can no longer reference the type.  Hope this helps...I know that it wasn't a very straight answer

Post #13655
Posted 01/22/2008 5:28:19 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 6:32:47 PM
Posts: 349, Visits: 1,205
An excellent, straight answer...thanks!! 
Post #13657
Posted 01/23/2008 9:24:51 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 8:47:41 AM
Posts: 4,104, Visits: 4,175
Good...I am glad it made sense
Post #13676
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 9:59am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.