Errors with New Base Class (Devexpress)


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've changed the BaseForm.vb

as

Public Class BaseForm
        Inherits MyBaseForm
        Implements MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl

MyBaseForm is inhereted from Devexpress XtraForm.

I 've got error message below in design time when SimpleButton (Devexpress wrapped) object were dropped on my form. My form is based on StandartForm which is based on my changed BaseForm. With Textedit Object there is no similar error.

"The object that the business object has been dropped on must be implement
MicroFour.strataFrame.UI.Windows.Forms.IcontainerControl"

IContainerControl Interface is implemented on baseform class but is not root (base class) now, Do I implement this interface on my base class ?

I've tried to set Business Object property of text control, I couldn't see BusinessObject in the list.

 


Replies
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 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'.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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 (166 views, 491.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Chan - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Chan - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search