|
Home > Archive > BizTalk Server General > February 2006 > build error "duplicate reference", biztalk2006, VS2005
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
build error "duplicate reference", biztalk2006, VS2005
|
|
|
| Hi,
I'm having problems with a test biztalk 2006 project in VS 2005.
I'm trying to use the call rules shape from a simple orchestration, to
call a BRE policy which accepts a schema and dataconnection as
arguments.
The problem occurs when I add a project reference to
"Microsoft.RulesEngine" which I need for the variable I'm using
[dcNorthwind] of type "Microsoft.RuleEngine.DataConnection" used with
the expression
"dcNorthwind = new Microsoft.RuleEngine.DataConnection( "Northwind" ,
"BusinessClassList", cnn);"
cnn and other variables exist and work OK.
The error is:
"Error 2 An assembly with the same identity 'Microsoft.RuleEngine,
Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has
already been imported. Try removing one of the duplicate references. "
If I remove reference to "Microsoft.RulesEngine" from the project,
followed by the variable [dcNorthwind] and comment out the line
referring to the variable in the expression, then the project builds
OK.
I notice that in the orchestration (opened as as plain text file) there
are repeated refs to the "Microsoft.RuleEngine" namespace.. Not sure
where the ref exists, or how to leverage it with my variable??
Can anyone help?
Thanks in advance
Note:
I'm following the jist of a useful biztalk 2004 sample in
http://datacogs.com/datablogs/archi.../01/01/183.aspx
| |
|
| I have partly answered my own question but I dont know why...
If I remove the ref added via path:
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.RuleEngine\3.0.1.0__31bf3856ad364e35
And instead add the ref from:
C:\Program Files\Microsoft BizTalk Server 2006
The project builds OK... I dont understand why this is??
|
|
|
|
|