| bengoeltz@gmail.com 2006-01-27, 9:28 pm |
| Hi - I have created an orchestration in BizTalk Server, and published
it as
a web service via the Web Service Publishing wizard. I
have also created a simple application to test the web
service (by adding a web reference to the BTS web
service), but am having issues creating a new instance of
the .NET class representing the orchestration port (which
was auto-created via the wizard).
Specifically, when I run the following code:
localhost.BizTalkWebPort ws = new localhost.BizTalkWebPort
();
The following error occurs:
System.InvalidOperationException: Unable to generate a
temporary class (result=1)
Unable to generate a temporary class (result=1)
error CS0030: Cannot convert
type 'BTSProject.localhost.AttributeDescription[]'
to 'BTSProject.localhost.AttributeDescription'
CS0029: Cannot implicitly convert
type 'BTSProject.localhost.AttributeDescription'
to 'BTSProject.localhost.AttributeDescription[]'
.....
C:\BTSProject\Web References\localhost\References.cs:line
41
I have debugged the References.cs file, and the exception
is thrown on the first line of the constructor for
the .NET class representing the orchestration port.
The AttributeDescription mentioned in the error does
exist in the input schema for the orchestration / web
service, and it seems the error is due to an invalid cast
between a single instance of AttributeDescription and an
array of AttributeDescription's.
Any ideas for how to deal with this are much appreciated.
Ben
|