Print Page | Close Window

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

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1297
Printed Date: 29-Apr-2025 at 4:53pm


Topic: Unable to locate an implementation of: IdeaBlade.EntityModel.IEntityServerSaving
Posted By: jwendl
Subject: Unable to locate an implementation of: IdeaBlade.EntityModel.IEntityServerSaving
Date 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 :-))



Replies:
Posted By: kimj
Date 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. 


Posted By: jwendl
Date 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



Print Page | Close Window