Errors with New Base Class (Devexpress)


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Did you change this in latest release as well?

Yes.  This is in the latest build.  You can get it from here: http://forum.strataframe.net/FindPost14233.aspx .

Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I am not sure if it is practical. However, I would think if SF team could provides code snippet, template or anything similar for all interface such as IContrainerControl, IBusinessBinding and etc since 90% of code as same everytime we want to implement these interfaces to our custom controls.



From every release, we (SF user) don't know what is changed or broken. Instead, we know what we need to change. Therefore, I would think it is very helpful if we just use code snippet/template shipped with new release, and change any custom code required.



Thank you
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Thank for great sample.



I also changed the Business assembly to expose two Friend methods to make this easier for you.


Did you change this in latest release as well?



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K

Can I get the changes you make in the Business Dll ? Do these changes will be included in the new releases ? (Final build 1.6.5)

These changes are in the Business assembly posted in the previous post.  Be sure to copy down the Base assembly from your other post as well to get around the BaseBusinessObjectAttribute error.  Yes, these will all be included in the final build of 1.6.5.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Yeah, that could be.  Add this (MicroFour StrataFrame Base) assembly to your GAC and c:\program files\common files\microfour\strataframe as well...I will be doing a full rebuild of the 1.6.5 beta late this week or this weekend which will include these updated assemblies, but go ahead and add this one manually for the time being.
Attachments
MicroFour StrataFrame Base.zip (107 views, 491.00 KB)
Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've gone some steps further  to make ready for our project ;

- Move the forms into a class library project (*.dll)

- Run sample form by using dll (above)

It works as your sample (Shows the form). I've added a BusinessObject to test project and got the error while loading the designer ;

"Could not load type 'MicroFour.StrataFrame.Business.BaseBusinessObjectAttribute' from assembly 'MicroFour StrataFrame Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7'"

Business Object Mapper also fails when configuring the project (Choose project);

BusinessLayerException
  An error occurred while saving an the data to the server.
TypeLoadException
  Could not load type 'MicroFour.StrataFrame.Security.DataAuditAction' from assembly 'MicroFour StrataFrame Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7'.

Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've installed 1.6.5 Beta version and followed the instructions to run the sample.

At First, I've got an error. But Next time, I couldn't get the same error. Now, Sample is running correctly.

Our Devexpress version is 7.1. To go ahead with testing Inhereted UI, I need sources codes of the beta version to update Dll references.

Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've understand that my case was not SF related. (Inheretance Issues)

Can I get the changes you make in the Business Dll ? Do these changes will be included in the new releases ? (Final build 1.6.5)

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Again, you are fighting standard inheritance issues.  If you just take the sample I gave you and inherit the MyBaseForm class off of YOUR base form instead of the DevExpress XtraForm then it should work...that is ALL that you should have to do! Wink
Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
Information Purposes only ;

Your standart BaseForm or new baseform must be inhereted from our base form. Otherwise, The forms does not work in our application.This means minimal change on the framework code. There is no need to implement anything.

I 've copied BaseForm to a NewBaseForm. Try to use NewBaseForm, I 've got cast error 'Framework is trying to cast with its baseform in ChildDialog.vb.'

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