InvalidateCache on NetSqlAzMan MMC

Jul 15, 2009 at 8:20 AM
Edited Jul 15, 2009 at 8:25 AM

Hi,

I am using WCF Cache service to authorize access against operations in my application. The config file of my application has the following client endpoint section --

client>endpoint address="net.tcp://localhost:8000/NetSqlAzMan.Cache.Service/CacheService/" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ICacheService"  contract="wcf.ICacheService" 

 

name="NetTcpBinding_ICacheService">identity>userPrincipalName value="" />identity>endpoint>client>

Similarly, the cache service configuration file has the following section -

 <client> <endpoint address="net.tcp://localhost:8000/NetSqlAzMan.Cache.Service/CacheService/"
          binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ICacheService1"  contract="wcf.ICacheService"
          name="NetTcpBinding_ICacheService"> <identity>  <userPrincipalName value="" /> </identity>    </endpoint>    </client>

I am able to consume this cache service in my application and I am also able to call InvalidateCache from my application.

 But when I try to call InvalidateCache from the NetSqlAzMan MMC , it gives me an exception. The details of exception are copied below -

Untrapper Console Error.

Could not find default endpoint element that references contract 'wcf.ICacheService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

at:

at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)

at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)

at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)

at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)

at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()

at System.ServiceModel.EndpointTrait`1.CreateChannelFactory()

at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)

at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()

at System.ServiceModel.ClientBase`1..ctor()

at NetSqlAzMan.SnapIn.Forms.frmInvalidateWCFCacheService.frmImportFromAzMan_Load(Object sender, EventArgs e)

at System.EventHandler.Invoke(Object sender, EventArgs e)

at System.Windows.Forms.Form.OnLoad(EventArgs e)

at System.Windows.Forms.Form.OnCreateControl()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

at System.Windows.Forms.Control.CreateControl()

at System.Windows.Forms.Control.WmShowWindow(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ContainerControl.WndProc(Message& m)

at System.Windows.Forms.Form.WmShowWindow(Message& m)

at System.Windows.Forms.Form.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Instance Guid: 2e2a9f04-f3ed-4e73-b5e0-9c38a1c66518

Transaction Guid: 00000000-0000-0000-0000-000000000000

Operation Counter: 10

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 Kindly help me in resolving this.

 

Jul 15, 2009 at 8:55 AM
On wich OS are you using the MMC ?
W2k3, Vista, Xp, ... ?
Service Pack ?
Regards,
Andrea.

Jul 15, 2009 at 8:57 AM

I copied the configuration files (available in NetSqlAzMan source code) in the Sql AzMan's directory under Program Files and this resolved the issue.

The actual directory did not contained the required config file.

Jul 15, 2009 at 9:01 AM

I am using MMC on Win XP Service Pack 3.