Solved

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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
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 we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 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