1

![enter image description here][1]I've build a WCF Class library project in which I've used ServiceStack.Text assembly version 4.0.18 .

My whole soultions is build against .NET 4.0.

The project works fine when debugging, using ASP.NET self-hosting. But I've made another WCF Service Application which includes this class library and I want to deploy the WCF application on IIS, I've deployed on IIS but I get the following error :

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'AdCarWebService' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Source Error:

Line 57:                 <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 58:                 <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 59:                 <add assembly="*"/>
Line 60:                 <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
Line 61:                 <add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
Farhad
  • 12,178
  • 5
  • 32
  • 60
  • seems like the WCF class library is a different .NET version than ServiceStack? – Ahmed ilyas Apr 28 '14 at 11:36
  • that makes sense. but I searched to find out the .NET version of the ServiceStack.Text 4.0.18, but nothing so far :( – Farhad Apr 28 '14 at 11:38
  • There is no such version of .NET as 4.0.18. I think this is the assembly version itself. – Ahmed ilyas Apr 28 '14 at 12:07
  • Yes, this is the assembly version and it's been released about 10-12 days ago. anyway I'm moving either to an older assembly or to Json.NET – Farhad Apr 28 '14 at 12:12

0 Answers0