BloggingAbout.NET
Thoughts of developers
WCF BAM Interceptors and primaryImportConnectionString

When trying to get the example in Instrumenting the WCF Getting Started Sample (BizTalk Server Sample) to run, I encountered the following error: 

Server Error in '/servicemodelsamples' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'primaryImportConnectionString'. Note that attribute names are case-sensitive.

Source Error:

Line 50:       <endpointBehaviors>
Line 51:         <behavior name="bamBehavior">
Line 52: 			<BamBehaviorExtension primaryImportConnectionString="Integrated Security=SSPI;Data Source=.;Initial Catalog=BAMPrimaryImport;" PollingIntervalSec="1500"  >
Line 53: 			 </BamBehaviorExtension>
Line 54: 			

Source File: f:\inetpub\wwwroot\servicemodelsamples\web.config    Line: 52


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

After using Lutz Roeder's Reflector, I was able to determine that the configuration should be changed to:

   1: <behavior name="bamBehavior">
   2:     <BamEndpointBehaviorExtension 
   3:         ConnectionString="Integrated Security=SSPI;Data Source=.;Initial Catalog=BAMPrimaryImport;"
   4:         PollingIntervalSec="1500" />
   5:   </behavior>

I could not find a mention of this in Google, so hopefully this will save someone some time out there.


Posted Fri, Aug 24 2007 4:45 PM by chilberto
Filed under: , , ,

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Please add 2 and 2 and type the answer here:
Copyright © 2003-2010 BloggingAbout.NET