?
Solved

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

Posted on 2011-03-23
3
Medium Priority
?
812 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
[X]
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
  • 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

752 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