Could not load file or assembly SystemServiceModelDomainServicesHosting Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies The system cannot find the file specified
Could not load file or assembly 'System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
or one of its dependencies. The system cannot find the file specified
Understand why are you getting "Could not load file or assembly " error on production server or development machine.
http://www.revenmerchantservices.com/post/2010/09/16/could-not-load-file-or-assembly.aspx
Quick Fix
This dll System.ServiceModel.DomainServices.Hosting is a part of RIA services SDK.
RIa Services from Microsoft download center. Choose your appropriate version.
You need to install it on server. Below is url to download.
http://www.silverlight.net/learn/advanced-techniques/wcf-ria-services/get-started-with-wcf-ria-services
http://www.microsoft.com/downloads/details.aspx?FamilyID=7b43bab5-a8ff-40ed-9c84-11abb9cda559&displaylang=en
Aanother way.
Before publising web, right click on assembly references and look at the properties of it.
set Copy Local to true. This will reference the assembly from bin instead of GAC.
As soon as you build your project, you will see those assemblies in bin folder copied from GAC.
If you would like to browse the GAC and copy dll manually, you can reffer below TIP.
http://www.revenmerchantservices.com/ajax/systemwebextensions.html
Currently rated 5.0 by 1 people
- Currently 5/5 Stars.
- 1
- 2
- 3
- 4
- 5
Tags: