Book a Demo

Author Topic: System.ServiceModel 4.0.0.0 will not import  (Read 4659 times)

Robert Slaney

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
System.ServiceModel 4.0.0.0 will not import
« on: November 23, 2010, 08:43:20 am »
Executing command: "C:\PROGRA~2\SPARXS~1\EATRIA~1\AsmImporter2.exe" -V "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.ServiceModel.dll"      
Command completed with exit code 0      
Executing command: "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\PEVerify.exe" /QUIET /MD "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.ServiceModel.dll"      
Command completed with exit code 0      
Executing command: "C:\PROGRA~2\SPARXS~1\EATRIA~1\AsmImporter2.exe" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.ServiceModel.dll"      
Command completed with exit code 0      
There was an error parsing C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.ServiceModel.dll on line 1.  Unexpected symbol: :      



Running AsmImport2 manually gives

>AsmImporter2.exe "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.ServiceModel.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 AsmImporter.AsmToCS.DumpToCS(String asmFile, TextWriter outputStream)


Does EA 8 support .NET 4.0 ? ( Running 8.0.864 )
« Last Edit: November 23, 2010, 08:46:51 am by slaneyrw »

Robert Slaney

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: System.ServiceModel 4.0.0.0 will not import
« Reply #1 on: November 23, 2010, 08:58:04 am »
Using the Disassembly option ( ILDASM )

Executing command: "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\ildasm.exe" /text /unicode "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.ServiceModel.dll"      

There was an error parsing C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.ServiceModel.dll on line 611.  Unexpected symbol: System      

it fails to process the following line ( in bold ) of the construct

.class extern forwarder System.ServiceModel.ServiceHostingEnvironment
{
  .assembly extern System.ServiceModel.Activation
}

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: System.ServiceModel 4.0.0.0 will not import
« Reply #2 on: November 29, 2010, 04:42:07 pm »
Quote
Does EA 8 support .NET 4.0 ? ( Running 8.0.864 )
No.

Robert Slaney

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: System.ServiceModel 4.0.0.0 will not import
« Reply #3 on: November 29, 2010, 04:45:30 pm »
Short and to the point  :)

What are the plans to support 4.0 in the product, our .NET solution are all now targeting .NET 4.0


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: System.ServiceModel 4.0.0.0 will not import
« Reply #4 on: November 29, 2010, 05:11:46 pm »
Robert,

IIRC the 8.1 will support .Net 4.0, but the Sparxians might be able to confirm/deny.

Geert