Can't View RequiredFields in VS2010


Author
Message
Derek Price
Derek Price
StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 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 (159 views, 11.00 KB)
Replies
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K 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 User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 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 (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K 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 User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 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 (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K 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 (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K 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?
Derek Price
Derek Price
StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)
Group: Forum Members
Posts: 51, Visits: 376
I never even knew that Reset existed! I tried it and now get this error message when clicking on the required fields:



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

MicroFour StrataFrame Extensibility

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

An error occurred while attempting to load this type editor:



Error HRESULT E_FAIL has been returned from a call to a COM component.

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

OK

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



I checked the BO designer file and it definitely wiped out the required fields, though... I also rebuilt all BOs and was back to my original error message:



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

MicroFour StrataFrame Extensibility

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

An error occurred while attempting to load this type editor:



Index was outside the bounds of the array.

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

OK

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

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



Did you ever try reinstalling .Net 2.0 runtimes? it would not hurt anything in your configuration by re-installing the correct version for your OS and see if that fix this uncommon problem.Cool

Edhy Rijo

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



I was a little apprehensive to try this, but figured I'd give it a try since nothing else is working. I tried doing a repair, but clicking on the "Change" button in the Add/Remove dialog did nothing. I tried removing, but got the attached dialog. So it looks like it's not very easy to uninstall earlier frameworks. I checked the link the dialog pointed to, but it goes to the readme file of the NET3 framework. It looks like I need to uninstall NET3 first, then NET2? I also tried downloading the NET2 FX from MSDN, but when I run that it tells me it can't do anything and to remove it from the Add/Removed app. All this for RequiredFields...



Any suggestions?
Attachments
FX2_Uninstall_Message.png (137 views, 13.00 KB)
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Derek,



From your image, I noticed you are trying to uninstall the SP2 of .Net 2.0. I was referring to .Net 2.0 (no service pack), I know it can be confusing, so I look at some links that will help find the correct one for your OS:



Microsoft .NET Framework Version 2.0 Redistributable Package (x86)



Microsoft .NET Framework Version 2.0 Redistributable Package (x64)



.Net Framework 2.0 (All)



In my case since I have a 64bit OS, I use the x64 one. Download the one you need and try again.


Edhy Rijo

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



Thanks for the links. I tried the x86 (just WinXP 32-bit here), but got no further:



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

Microsoft .NET Framework 2.0 Setup

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

Setup cannot continue because this version of the .NET Framework is incompatible with a previously installed one. For more information, see http://support.microsoft.com/support/kb/articles/q312/5/00.asp

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

OK

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



According to the link, I need to uninstall NET2.0 SP1 first. I'm getting nervous again! I checked my Add/Remove app and there's no SP1. In fact, I only have the .NET 2.0 SP2 listed (attached).



Thanks,

Derek
Attachments
AddRemove_NETFramework.png (154 views, 59.00 KB)
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Derek,



From the same download page try this one .NET Framework 2.0 Software Development Kit (SDK) (x86)



Looking at your image and comparing it with mine (see attached image), I have above version but x64, so in your case x86 should do the job.



And do not worry about uninstalling/re-installing the runtime, it should not trash your OS as long as you are able to re-install them.Smile

Edhy Rijo

Attachments
NetRuntimes.png (145 views, 149.00 KB)
Derek Price
Derek Price
StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)
Group: Forum Members
Posts: 51, Visits: 376
Well, I tried the SDK link and that installed with no errors, but made no difference in showing required fields.



Thanks anyway!
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
That is really strange... Have you tried setting up a Virtual Machine from scratch and then installing the basics to test it over there? If it works, then you could go on adding other stuff till you got an idea of what could be the issue.
Derek Price
Derek Price
StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)
Group: Forum Members
Posts: 51, Visits: 376
We'll probably do that at some point. Right now it's just an annoyance for us and we do have a workaround. If we ever figure it out, I'll post my findings.



Thanks all for the help
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
You're welcome, Derek.

We will be around when you get some time to investigate this further. Wink

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Derek Price - 15 Years Ago
Edhy Rijo - 15 Years Ago
Derek Price - 15 Years Ago
Edhy Rijo - 15 Years Ago
                     Hey Derek. Also, have a look at this post:...
Ivan George Borges - 15 Years Ago
                         Hi Ivan,

I checked the link and the BO constructors have...
Derek Price - 15 Years Ago
                             Have you lately made changes to the table structurethat is mapped to...
Ivan George Borges - 15 Years Ago
                                 The BO that I first noticed this issue has definitely had fields...
Derek Price - 15 Years Ago
                                     Have you tried re-building all the partials?
Ivan George Borges - 15 Years Ago
                                         Also, if you open 1 specific BO that throws you the error and you know...
Ivan George Borges - 15 Years Ago
                                             I never even knew that Reset existed! I tried it and now get this...
Derek Price - 15 Years Ago
                                                 Hi Derek,

Did you ever try reinstalling .Net 2.0 runtimes?...
Edhy Rijo - 15 Years Ago
                                                     Hi Edhy,

I was a little apprehensive to try this, but...
Derek Price - 15 Years Ago
                                                         Hi Derek,

From your image, I noticed you are trying to...
Edhy Rijo - 15 Years Ago
                                                             Hi Edhy,

Thanks for the links. I tried the x86 (just WinXP...
Derek Price - 15 Years Ago
                                                                 Hi Derek,

From the same download page try this one...
Edhy Rijo - 15 Years Ago
                                                                     Well, I tried the SDK link and that installed with no errors, but made...
Derek Price - 15 Years Ago
                                                                         That is really strange... Have you tried setting up a Virtual Machine...
Ivan George Borges - 15 Years Ago
                                                                             We'll probably do that at some point. Right now it's just an...
Derek Price - 15 Years Ago
                                                                                 You're welcome, Derek. We will be around when you get some time to...
Ivan George Borges - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search