Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3492132
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:43:17+00:00 2026-05-18T11:43:17+00:00

David Betz describes in his article how to create reference to WCF without using

  • 0

David Betz describes in his article how to create reference to WCF without using “Add Service Reference” option:
http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight-2

Once WCF service is created, these are the statements within the silverlight:

  BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
  EndpointAddress endpointAddress = new EndpointAddress("http://localhost:1003/Person.svc");
  IPersonService personService = new ChannelFactory<IPersonService>(basicHttpBinding, endpointAddress).CreateChannel();

…

How does one references the types (such as IPersonService interface) created in WCF from Silverlight when I do not use “Add Service Reference” to buid proxies?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:43:18+00:00Added an answer on May 18, 2026 at 11:43 am

    Idea is to reference assemblies that contain WCF data contracts in silverlight application, and to do that you need to fool VS so it thinks assembly is a SL assembly, he describes this in detail here

    http://www.netfxharmonics.com/2008/12/Reusing-NET-Assemblies-in-Silverlight

    and its not so easy, here is what needs to be done

    Just use the same ILDasm/Edit/ILAsm
    procedure already mentioned to tell
    the assembly to use the appropriate
    Silverlight assemblies instead of the
    .NET assemblies. This is an extremely
    simple procedure consisting of nothing
    more than a replace, a procedure that
    could easily be automated with very
    minimal effort. It shouldn’t take you
    much time at all to write a simple
    .NET application to do this for you.
    It would just be a simple .NET to
    Silverlight converter and validator
    (to test for assemblies not supported
    in Silverlight). Put that application
    in your Post Build Events (one of the
    top 5 greatest features of Visual
    Studio!) and you’re done. No special
    binary hex value searching necessary.
    All you’re doing is changing two well
    documented settings (the public key
    token and version).

    Second solution is a file level solution , you use add link option on files that contain your required data contracts implementations to SL and make sure they only contain types that allow to build SL and dont reference a lot of external assemblies , usually those conditions should be met for WCF services & data contracts.

    I can write more but it would be just the copy paste from that link

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

David Flanagan's excellent book on JavaScript has an example that shows how to perform
EDIT: Scotty2012 and David Morton's answers don't work for me so I have put
I edited the question after David Hanak's answer (thanks btw!). He helped with the
I am currently reading Beginning CakePHP:From Novice to Professional by David Golding. At one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.