This project is read-only.
2
Vote

Service Contract Generate Code non-functional in Open Source edition

description

Error 2 error : The host threw an exception while trying to resolve the assembly reference 'Microsoft.Practices.ServiceFactory.Extenders.DataContract.Wcf'. The transformation will not be run. The following Exception was thrown:
System.InvalidOperationException: The assembly reference 'Microsoft.Practices.ServiceFactory.Extenders.DataContract.Wcf' could not be resolved.
at Microsoft.Practices.Modeling.CodeGeneration.Strategies.TextTemplating.TextTemplateHost.ResolveAssemblyReference(String assemblyReference)
at Microsoft.VisualStudio.TextTemplating.Engine.ResolveAssemblyReferences(ITextTemplatingEngineHost host, TemplateProcessingSession session) 0 0

comments

oisin wrote Sep 18, 2011 at 5:28 AM

This error occurs despite my verifying that 'Microsoft.Practices.ServiceFactory.Extenders.DataContract.Wcf' is in ..\wssf\lib\ under the extensions folder. It's also loaded into VS 2010.

oisin wrote Sep 18, 2011 at 5:30 AM

Hmm, most other code is generated - it's just the service contract and message contract that contain the text "ErrorGeneratingOutput" presumable from failed T4.

wrote Oct 7, 2011 at 5:09 PM

timhenn2 wrote Oct 7, 2011 at 5:12 PM

I have the same issue across multiple solutions including the HOL solution. Validation works, code generation works for data contracts but fails on the message contract. DOesn't matter if the type is primative or not.

rmatsu wrote Apr 9, 2012 at 9:38 PM

Were any of you able to resolve/work around this issue? I had everything working and then this started happening and I can't figure out why.

This open source version feels a little half-baked even compared to the last official release by the P&P folks. Is anyone using it successfully?

timhenn wrote Apr 10, 2012 at 3:19 AM

I believe the workaround i used for this was to uninstall the extensions and reinstall. I know it's not pretty, but, it got me through these errors.

wrote Feb 22, 2013 at 12:45 AM