Can't View RequiredFields in VS2010


Author
Message
Derek Price
Derek Price
StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)
Group: Forum Members
Posts: 51, Visits: 376
Has anyone had issues displaying RequiredFields from the Design view of a BO? Whenever we try clicking on the UI Editor for the collection, we get this message (also attached as image):



---------------------------

MicroFour StrataFrame Extensibility

---------------------------

An error occurred while attempting to load this type editor:



Exception has been thrown by the target of an invocation.

---------------------------

OK

---------------------------



Any ideas?



Thanks,

Derek
Attachments
SF_RequiredFields_Error.png (147 views, 11.00 KB)
Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Derek,

I have not seen that error before, but here is one rule for SF Type Editors, whenever you will use any of them, make sure the source of the type editors is build, so if you add new fields to a table and then build the partial for the BO you must rebuild the BO project so the Type Editors can see the new fields.



Also sometimes, you may need to close the solution, exit VS, then go back to VS, rebuild and everything works again.



Good luck!

Edhy Rijo

Derek Price
Derek Price
StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)
Group: Forum Members
Posts: 51, Visits: 376
Hi Edhy,



When you say:



Edhy Rijo (08/06/2010)
make sure the source of the type editors is build




What do you mean that the source is build? We are simply trying to use the default behaviour of SF to edit our required fields using their UI type editor (whatever that is). We have no custom code or anything here. I've rebuilt the partial, exited, re-started, etc. with no luck.



Thanks,

Derek
Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Derek,

Type Editors are the tools created by SF to allow you to select Required Fields, Security Keys, etc.



I am not so sure, but also you may try reinstalling the .Net 2.0 Runtimes, I have seen before SF functionality being trashed by other 3rd party tool like InstallAware and reinstalling the .Net 2.0 runtimes fixed the issue. Look in the forums about .Net 2.0 runtimes or InstallAware for related posts.

Edhy Rijo

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hey Derek.

Also, have a look at this post:

http://forum.strataframe.net/FindPost1523.aspx

Derek Price
Derek Price
StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)
Group: Forum Members
Posts: 51, Visits: 376
Hi Ivan,



I checked the link and the BO constructors have absolutely no extra code besides the InitializeComponent(). I cleaned the solution, then manually cleaned, exited, restarted, and rebuilt with no luck...



I really hope that it's not a NET2.0 runtime re-install. It's funny that others on our team also see this.



Thanks,

Derek
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Have you lately made changes to the table structure that is mapped to this BO? Trying to figure out a possible cause here... maybe you deleted a field that were part of the Required Fields collection. If something goes along this theory, you could edit the BO.Designer file and tweak the required fields not to add this particular one into the collection.
Derek Price
Derek Price
StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)
Group: Forum Members
Posts: 51, Visits: 376
The BO that I first noticed this issue has definitely had fields removed, etc., so I had to manually edit the designer file to fix those issues. I just pick a handful of random BOs out of the 100+ we have and all display the same error and those were definitely not edited. Is there a way to debug this? Would I need to launch another VS2010 and attach? ALthough, I'm not exactly sure where I'd set a breakpoint...
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Have you tried re-building all the partials?
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Also, if you open 1 specific BO that throws you the error and you know which fields should be required, if you right-click the RequiredFields on the Properties sheet and choose Reset, does it then work to mark them back?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search