Geeks With Blogs
Jeffrey's Blog .Net Developer

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 on Friday, August 24, 2007 3:50 PM WCF , BAM , BizTalk , Error | Back to top

Comments on this post: WCF BAM Interceptors and primaryImportConnectionString

# re: WCF BAM Interceptors and primaryImportConnectionString
Requesting Gravatar...
This was a life-saver -- thank you!
Left by First time BAM Interceptors user on Sep 12, 2008 2:26 AM

Your comment:
 (will show your gravatar)

Copyright © Chilberto | Powered by: