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 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 am using Silverlight WebBrowser Control in one of my application, and all the
From a Silverlight Out-of-browser application using the Webbrowser control, I need a way to
I am popping up an HTML page from a Silverlight application using the HtmlPage.PopupWindow()
I am currently developing a Silverlight OOB application using the Bing Map Control, however
I am using the WebBrowser Control in C# in an application to display HTML.
I wrote simple silverlight web application using the default ASP test page. If there
I have created a Silverlight Application project using the Bing Maps Silverlight Control and
I am writing a silverlight application using c#. For the project I need to
I am developing an silverlight application using WCF and EF. I am using Database
I am trying to develop a Silverlight 4 application using C# 4.0. I have

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.