1
Vote

Initialization failure with List<T>

description

When my response contract contains a List<T> I get the following exception which occurs in SchemaImportExtension.cs.
 
Any ideas?

 

StackTrace

 
***** TestHarness.Class1.ProxyFactoryCall
Initialization failure. Please review input options and documents for validity./n at System.Web.Services.Description.SoapProtocolImporter.BeginNamespace()
at System.Web.Services.Description.ProtocolImporter.GenerateCode(CodeNamespace codeNamespace, ImportContext importContext, Hashtable exportContext)
at System.Web.Services.Description.ServiceDescriptionImporter.Import(CodeNamespace codeNamespace, ImportContext importContext, Hashtable exportContext, StringCollection warnings)
at System.Web.Services.Description.ServiceDescriptionImporter.GenerateWebReferences(WebReferenceCollection webReferences, CodeDomProvider codeProvider, CodeCompileUnit codeCompileUnit, WebReferenceOptions options)
at thinktecture.ProxyModel.Web.Services.WebServiceProxyBuilder.Generate(WebServiceTechnologies webServiceTechnologies, String protocolName) in C:\download\ProxyFactory\ProxyFactory-25254Original\source\ProxyModel\Web.Services\WebServiceProxyBuilder.cs:line 231
at thinktecture.ProxyModel.Web.Services.WebServiceProxyBuilder.Build(WebServiceProxyBuilderOptions options) in C:\download\ProxyFactory\ProxyFactory-25254Original\source\ProxyModel\Web.Services\WebServiceProxyBuilder.cs:line 367
at thinktecture.ProxyModel.Web.Services.WebServicesCommunicationPlatform.GetProxy(Type contractType, Uri uri) in C:\download\ProxyFactory\ProxyFactory-25254Original\source\ProxyModel\Web.Services\WebServicesCommunicationPlatform.cs:line 206
at thinktecture.ProxyModel.ProxyFactory`1.CreateProxy() in C:\download\ProxyFactory\ProxyFactory-25254Original\source\ProxyModel\ProxyFactory.cs:line 147
at TestHarness.Class1.ProxyFactoryCallGetAccountContact() in C:\TEMP\ProxyTest\TestHarness\Class1.cs:line 114

comments

raskal wrote Oct 22, 2007 at 11:52 PM

We're going to investigate further, thanks for reporting !

ThorRioterDecker wrote Oct 23, 2007 at 1:53 PM

Hi,

I have not been able to repro the issue you mention above.
Any chances you can send a sample csproj so I can have a look?
Tx

wrote Feb 13, 2013 at 9:24 PM