New Posts New Posts RSS Feed: Unable to locate an implementation of: IdeaBlade.EntityModel.IEntityServerSaving
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Unable to locate an implementation of: IdeaBlade.EntityModel.IEntityServerSaving

 Post Reply Post Reply
Author
jwendl View Drop Down
Newbie
Newbie
Avatar

Joined: 02-Jun-2009
Location: Minnesota
Posts: 2
Post Options Post Options   Quote jwendl Quote  Post ReplyReply Direct Link To This Post Topic: Unable to locate an implementation of: IdeaBlade.EntityModel.IEntityServerSaving
    Posted: 02-Jun-2009 at 3:38pm

I am attempting to implement the interface IEntityServerSaving in a custom class. When I run in n-tier mode, I get a log event in our log file that states Unable to locate an implementation of: IdeaBlade.EntityModel.IEntityServerSaving. The code that is inside the custom class looks like :

namespace DomainModel

{

public class EntityServerSaving : IEntityServerSaving

{

#region IEntityServerSaving Members

public void OnSaving(EntityServerSavingEventArgs args)

{

// Custom Code Here

 
We are setting our manager variable using the code :

_manager = args.GetEntityManager();

In the web.config on the BOS Server we have :

<ideablade.configuration version="5.00" updateFromDomainModelConfig="Ask">

...

<edmKeys>

<edmKey ...>

<probeAssemblyNames>

<probeAssemblyName name="DomainModel"/>

<probeAssemblyName name="..."/>

</probeAssemblyNames>

</edmKey>

</edmKeys>

</ideablade.configuration>

 
The class file is in the DomainModel project additionally. On the client we are overriding the OnSaving event handler, but that is just for the client side EntityManager. The only thing we are doing on the client side OnSaving override is the functionality for custom validation and trace logging. 
 
The question(s) are, does overriding the client EntityManager affect whether or not the EntityServer class can find the IEntityServerSaving? Is there an example on how to setup the IEntityServerSaving interface that can be executed? (I couldn't find one in the tutorials) Am I missing something simple? (I am hoping it is this question :-))
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 02-Jun-2009 at 11:37pm
Probing for an IEntityServerSaving implementation uses only the top level <probeAssemblyNames> in the ideablade.configuration section, not the probes defined for an EdmKey.   Once you add this element to your config file (you can use the ConfigEditor for help with the syntax) your custom class will be found.

Sorry, we don't yet have a sample showing how to implement this interface. 
Back to Top
jwendl View Drop Down
Newbie
Newbie
Avatar

Joined: 02-Jun-2009
Location: Minnesota
Posts: 2
Post Options Post Options   Quote jwendl Quote  Post ReplyReply Direct Link To This Post Posted: 03-Jun-2009 at 7:42am
Thank you, that explains everything. We have examples on how to setup assembly names outside the EdmKey assemblies. I will just follow that pattern. I appreciate the assistance!
 
-Justin
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down