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 9219997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:14:44+00:00 2026-06-18T03:14:44+00:00

This is probably very simple but bear with me. When I deploy my Silverlight

  • 0

This is probably very simple but bear with me.

When I deploy my Silverlight 5 application with WCF to IIS, using a simple copy and paste technique I can browse the web site flawlessly, but when I try to access it through ipaddress like this 192.168.1.3:8099 every single service call returns error such as this one:

An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
  at .....
  at <MyNamespace>.OnGetSomethingFromDataBaseCompleted(Object state)

I can target the WCF services from other machines with success (192.168.1.3:8099/SomeService.svc).
I wrote the test console app to call (and close) the service and it correctly gets some data from the remote DBServer.
Yet in browser nothing.

A should add that back from browser when navigate to 192.168.1.3:8099 Fiddler doesn’t register this call but it does from localhost:8099.

Can you help?

I think that this is simple question for someone more experienced with deployment than me but if you think you should, please read on.


So you are reading on => (Prism).

I have a Silverlight application that connects to database calling WCF services (added as Silverlight WCF service – VSTemplate).

In this application I introduce Prism like Jeremy Likness suggests on his blog

I also use web proxies to access WCF services from ViewModel.

My project structure:

  • WEB project
  • SilverlightAppWithShell
  • ModuleA
  • ModuleB
  • CommonProject

Deployment directory structure:

C:\inetpub\wwwroot\MyAppFolder (IISUsers have accessToIt)

  • .\bin\AllDlls
  • .\ClientBin\AllXapFiles(XAP files from all projects mentioned above)
  • .\Services\All *.cs files defining services operation contracts
  • .\Web.config
  • .\TestPage.html
  • .\TestPage.aspx
  • .\Silverlight.js
  • .\AllServices *.scv files

and last but not least

  • .\clientaccesspolicy.xml

with this code inside it:

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from http-request-headers="*">
        <domain uri="*"/>"
      </allow-from>
      <grant-to>
        <resource path="/Services" include-subpaths="true"/><!--I tried with App_Code here when renaming Services dir to App_Code with the same wain result-->
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>

Thank you for reading

  • 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-06-18T03:14:45+00:00Added an answer on June 18, 2026 at 3:14 am

    This is what I ended up doing and solved my issue, following this post from Carlos Figueira. I am not sure if there is a better solution with Silverlight 5 but it works for me.

    public static void UpdateMyServiceAddress(WebServiceMyProxies.MyServiceClient client)
            {
                client.Endpoint.Address = UpdateServiceAddress(client.Endpoint.Address.Uri.ToString());
            }
    
    private static System.ServiceModel.EndpointAddress UpdateServiceAddress(string originalAddress)
            {
                int svcIndex = originalAddress.IndexOf(".svc");
                int serviceNameIndex = originalAddress.LastIndexOf('/', svcIndex);
                string serviceName = originalAddress.Substring(serviceNameIndex + 1);
    
                string baseAddress = Application.Current.Host.Source.ToString();
                baseAddress = baseAddress.Substring(0, baseAddress.LastIndexOf('/')); // removing /App.xap
                baseAddress = baseAddress.Substring(0, baseAddress.LastIndexOf('/')); // removing /ClientBin
    
                return new System.ServiceModel.EndpointAddress(String.Format("{0}/{1}/{2}", baseAddress,"Services", serviceName));
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably very simple but I've just started using git. I've installed it
this is probably very simple using javascript or jquery, but I cannot wrap my
This is probably very simple but it's really confusing me. When I implement the
This is probably a very simple question but I'm a little confused how this
I know this is probably a very simple question but how would I do
This is another probably very simple question, but I haven't been able to find
This is probably a very simple question so please forgive my ignorance, but can
So this one is probably very simple, but I'm having a bit of trouble
I'm new to Xcode. This is probably a very simple question to you, but
This is probably very simple but I can't find it: I want to acces

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.