Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

silverlight webbrowser control InvokeScript error

I am running OOB silverlight application where I have a WebBrowser control but I am getting this error when I call InvokeScript:-

Attempted to perform an unauthorized operation.

Is it because it's OOB ?

like image 789
Miroo Avatar asked Jan 19 '26 08:01

Miroo


1 Answers

No it can't be because its OOB since WebBrowser only works OOB anyway. I can think of two possible reasons.

  • The Url to which the WebBrowser has navigated is not on the same site from with the Silverlight application has been loaded. This would a security violation.

  • The code that is being executed in the loaded web page by the InvokeScript is the actual source of the error.

like image 169
AnthonyWJones Avatar answered Jan 21 '26 21:01

AnthonyWJones



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!