Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2011-03-23
3
807 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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