Failed to load Microsoft.ServiceModel.DomainServices.Hosting file or assembly.

I have an application loaded into my local environment. This is the code that I inherited and did not receive it at all. At this time, when I go to "http://test.myapp.com:75/" in my browser, I get the following error:

Description. An error occurred while processing the configuration file needed to service this request. Review the specific error information below and modify your configuration file accordingly. Parser error message: Could not load file or assembly "Microsoft.ServiceModel.DomainServices.Hosting, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" or one of its dependencies. The system cannot find the specified file.

I checked and verified that I have RIA data services loaded. I can see the files in C: \ Program Files (x86) \ Microsoft SDK \ RIA Services \ v1.0 \ Libraries \ Server. Interestingly, the assemblies in this directory do not load into my GAC. I tried to load them into my GAC, however I can not drag assemblies into the assembly C: \ Windows \, ​​and when I try to show an error there will be no.

What am I doing wrong?

+6
source share
3 answers

The Microsoft.ServiceModel.DomainServices.Hosting library is not part of the standard WCF RIA services. You need to download and install WCF RIA Services Toolkit separately.

I also recommend reading WCF Extensibility - Endpoint Configuration for RIA WCF Services .

+6
source

I had the same problem and I solved it.

The Microsoft.ServiceModel.DomainServices.Hosting.dll files in C: \ Program Files (x86) \ Microsoft SDK \ RIA Services \ v1.0 \ Libraries \ Server is incorrect .

right is here
C: \ Program Files (x86) \ Microsoft SDK \ RIA Services \ v1.0 \ Libraries \ Server \ SP2

I think this problem may be caused by the version of the dll file. the first is old, the second is new.

+2
source

Incorrect installation of your version of .NET in the application list can also create this problem.

0
source

Source: https://habr.com/ru/post/900887/


All Articles