Solved

Updating Silverlight enabled WCF service cannot find System.Runtime.Serialization

Posted on 2011-03-23
3
804 Views
Last Modified: 2012-05-11
I have a Silverlight Class Library that contains my objects.  I have added a reference to System.Runtime.Serialization to this project.  It's version 2.0.5.0, Runtime Version v2.0.50727, File version 4.0.50826.0.

My portal project contains a service that exposes the object in the class library.  

When I try to update the service reference in my Silverlight Application it gives me the following error:
Could not load file or assembly "System.Runtime.Serialization, Version 2.0.5.0 .... or one of it's dependencies.  The system cannot file the file specified.

It worked fine before I added the reference for System.Runtime.Serialization.  

My Portal project does not reference System.Runtime.Serialization, but other assemblies that are exposed by the same service due.  Some of them are not Silverlight class libraries so they reference the .Net Version 4.0.0.0 version.

How can I fix this error?
0
Comment
Question by:weimha
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Imran Javed Zia
ID: 35198318
Hi,
Make sure you can view your service/wcf in browser.
It seems your service is not working properly.

Thanks
0
 

Author Comment

by:weimha
ID: 35198537
I get the same error when I view the service in a browser.
0
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
ID: 35198584
it is a general error particularly when you have converted from 3.5 to 4.0,
there is a workaround but it may not be proper way, just add System.Runtime.Serialization file in bin if it is not there.
hope it may work, if it also do not work then add System.Windows from silverlight in bin and then check
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now