-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeploymentFramework.BuildTasks.PublishWcfServiceArtifacts #418
Comments
[tfabraham@10/14/2016] Thanks, |
[HakTho@10/17/2016] The specific assembly is present in the GAC on the build machine. Is there any way to get more logging? I have set the build logging verbosity to "Diagnostic" already. // HakTho |
[tfabraham@10/17/2016] You can add the whole class if you add the MSBuild references, or you can just take the Execute() method code and give it the parameters it normally gets from the properties. The exception you're seeing is coming from a reflection-based method invocation from the line pwmtMethod.Invoke(null, new object[] { wsi, type }); Let me know if you can pull out any more exception detail that way. |
[HakTho@11/16/2016]
This is the assembly containing the WcfMessageType specified in the WcfServiceDescription.xml created when manually publishing the service using the BizTalk WCF Service Publishing Wizard.
This assembly is of course not in the GAC of the build server. When using the wizard, I did not specify the assembly in the GAC, but rather the actual dll in the schema project output folder, but it seems that the wizard chose the GAC location as the assembly actually is present in the GAC on my development machine. // HakTho |
I have set up deployment of an IIS virtual directory and also included the artifacts in a web project in my solution.
I have modified the csproj according to the documentation to generate the WCF artifacts.
All works great on my development machine.
When I try to build the solution at the TFS Build server I get the following unhelpful error(long paths and names removed for readability):
11:50:09.077 28>Target "AfterBuild: (TargetId:1183)" in project "C:\Builds\68**.InvoiceHub.IIS.csproj" (target "Build" depends on it):
Using "DeploymentFramework.BuildTasks.PublishWcfServiceArtifacts" task from assembly "C:\Builds\68*\ExternalReferences\BizTalkDeploymentFramework.Tasks.dll".
Task "DeploymentFramework.BuildTasks.PublishWcfServiceArtifacts" (TaskId:816)
Exporting WCF service artifacts from WcfServiceDescription.xml... (TaskId:816)
11:50:09.339 28>C:\Builds\68**.InvoiceHub.IIS.csproj(104,5): error : Exception has been thrown by the target of an invocation.
Done executing task "DeploymentFramework.BuildTasks.PublishWcfServiceArtifacts" -- FAILED. (TaskId:816)
11:50:09.340 28>Done building target "AfterBuild" in project "*.InvoiceHub.IIS.csproj" -- FAILED.: (TargetId:1183)
11:50:09.340 28>Done Building Project "C:\Builds\68**.InvoiceHub.IIS.csproj" (default targets) -- FAILED.
This is the log with verbosity: Diagnostic
Compared to the log on my local development machine:
1>Target "AfterBuild: (TargetId:67)" in project "C:\Dev**.InvoiceHub.IIS.csproj" (target "Build" depends on it):
1>Using "DeploymentFramework.BuildTasks.PublishWcfServiceArtifacts" task from assembly "C:\Dev*\ExternalReferences\BizTalkDeploymentFramework.Tasks.dll".
1>Task "DeploymentFramework.BuildTasks.PublishWcfServiceArtifacts" (TaskId:33)
1> Task Parameter:ServiceDescriptionPath=WcfServiceDescription.xml (TaskId:33)
1> Task Parameter:OutputPath=.\ (TaskId:33)
1> Exporting WCF service artifacts from WcfServiceDescription.xml... (TaskId:33)
1>Done executing task "DeploymentFramework.BuildTasks.PublishWcfServiceArtifacts". (TaskId:33)
1>Done building target "AfterBuild" in project "*.InvoiceHub.IIS.csproj".: (TargetId:67)
Notice that on my local machine the Task Parameter is written to the log prior to the line "Exporting WCF service artifacts from WcfServiceDescription.xml...", but not on the build server.
I'm using V6.0
Any help on where to start troubleshooting would be great!
This work item was migrated from CodePlex
CodePlex work item ID: '11124'
Vote count: '1'
The text was updated successfully, but these errors were encountered: