Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly Microsoft.ServiceModel.DomainServices.Hosting

I have an application loaded in my local environment. This is a codebase that I have inherited and have not gotten it to work at all. At this time, when I navigate to "http://test.myapp.com:75/" in my browser, I receive 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 'Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I have checked and verified that I have RIA Data Services loaded. I can see the files in C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server. Interestingly, the assemblies in this directory are not loaded into my GAC. I've tried loading them into my GAC, however, I cannot drag the assemblies into C:\Windows\assembly and no error is shown when I try.

What am I doing wrong?

like image 401
Phone Developer Avatar asked Nov 06 '11 15:11

Phone Developer


2 Answers

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

I also recommend reading WCF Extensibility – Configuring the Endpoint for WCF RIA Services.

like image 154
base2 Avatar answered Sep 29 '22 11:09

base2


I had the same problem , and solved.

The files "Microsoft.ServiceModel.DomainServices.Hosting.dll" in C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server is the wrong one.

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

I think this problem maybe caursed by the dll file version. the first one is old and the second one is new .

like image 29
Chen Avatar answered Sep 29 '22 11:09

Chen