1

I am working with webservice in C# and I am unable to run the webservice file.

Eventhough the target assemby is set to 4.5.1 I am unable to solve the error.

Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The module was expected to contain an assembly manifest.

Below is the configuration:

<?xml version="1.0" encoding="utf-8"?>

<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5.1" />
<httpRuntime targetFramework="4.5.1" />
</system.web>
</configuration>

Below are the images displaying error message and Stack trace:

Error message

Stack trace

David Hoelzer
  • 15,862
  • 4
  • 48
  • 67
siva s
  • 21
  • 4
  • Is this error happening in Visual Studio or on your Server? If it happens on your Server: What .NET Version is installed there? – Marcel B Jun 02 '16 at 10:05
  • Error is happening is Server. I am using version 4.5.1 – siva s Jun 02 '16 at 12:31
  • Possible duplicate of [The module was expected to contain an assembly manifest](http://stackoverflow.com/questions/12226676/the-module-was-expected-to-contain-an-assembly-manifest) – Marcel B Jun 02 '16 at 12:44
  • You might have a look at my answer on [Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies](http://stackoverflow.com/questions/42226429/could-not-load-file-or-assembly-system-identitymodel-version-4-0-0-0-culture). – Murat Yıldız Mar 02 '17 at 12:45

0 Answers0