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

  • SEARCH
  • Home
  • 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 3309000
In Process

The Archive Base Latest Questions

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

in my silverlight application I am using the webBrowser control. I call following javascript

  • 0

in my silverlight application I am using the webBrowser control.

I call following javascript function on the page i’m navigating to.

    function notify() {
        window.external.notify("Close");
    }

The weird fact is that it only works when I am navigating to the page by using:

this.Browser.Source = new Uri("http://localhost/TestOutOfBrowser.Web/HTMLPage1.htm");

When I navigate to it using the real server name:

            this.Browser.Source = new Uri("http://testServerName/TestOutOfBrowser.Web/HTMLPage1.htm");

I get an javascript exception (‘Unspecified error.’) when executing the window.external.notify(“Close”); line.

This is most probably security related but I don’t have a clue how to solve this problem..

How can I get this to work?

  • 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-17T21:35:19+00:00Added an answer on May 17, 2026 at 9:35 pm

    For anyone facing the same or similar problem:

    Appearantly this is a cross-domain scripting security issue.
    The browser control will not execute this if the domain of the silverlight application and the page(you are navigating to) are different. (! even 127.0.0.1 and localhost are evaluated as ‘different’ domains )

    I ended up using a Relative URI to browse to the page and this solved my problem.

    Grtz

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

Sidebar

Related Questions

I have a Silverlight application using a WCF service hosted in IIS. I make
I'm starting with a new application using silverlight and the first problem I have
I would like to develop an application using Silverlight. As this application is used
I have a typical Silverlight application with a WCF service and I am using
When I create a new Silverlight Application (C# if that matters) using Silverlight 4
I have a Silverlight application that I am maintaining. I am currently using Visual
I am developing the framework for what will be a large data-driven Silverlight application
I have a Silverlight Application, that uploads file(s) to a Sharepoint Site. I got
I'm trying to buid a site with the following: VS 2010 (for the updated
do you know of any available architectural pattern where the most of the code

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.