1

Closed

WSDLGenerator doesn't address targetFrameworkVersion 4.0 web services assemblies

description

Hi,

When I use WSDLGenerator on a web service assembly built with VS2010 and targetFrameworkVersion 4.0, WSDLGenerator generates the following exception :

Unhandled Exception: System.Exception: There was an error while opening assembly 'D:\...\IFS.Services.Sec.dll' ---> System.BadImageFormatException: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. (Exception from HRESULT: 0x8013101B)
at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at WSDLGenerator.WSDLGenerator..ctor(String path, String servicename, Boolean verbose)
--- End of inner exception stack trace ---
at WSDLGenerator.WSDLGenerator..ctor(String path, String servicename, Boolean verbose)
at WSDLGeneratorCmd.Program.Main(String[] commandArgs)

How can I fix this issue ?

I guess I need to rebuild WSDLGenerator with targetFrameworkVersion = 4.0 but I'm not successful building the solution :/

Any help would be great ;)

Regards,


Stéphane RZETELNY.

No files are attached

Closed Dec 13 2011 at 6:33 AM by stefh

comments

icnocop wrote Feb 17 at 12:56 AM

I think the home page will need to be updated to reflect this change as it currently says .net 3.5. Thank you.

wrote Dec 13 2011 at 6:33 AM

Resolved with changeset 71807.