We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Silverlight Socket programming on port > 5000

Medium Priority
801 Views
Last Modified: 2013-11-16
I am running Silverlight 4 in C#.  I want to connect to a port that is not in the "trusted" range (4502-4534).  I need to have silverlight running INSIDE the browser not Out-of-browser mode.  Is there some way to elevate permissions for this silverlight app to do it?
Comment
Watch Question

Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT

Commented:
I've ran into this issue myself.

Running out of browser is the only way I know of to elevate permissions in Silverlight unless you are changing browser security settings or site security assigment.

Author

Commented:
How do I change the browser security setting or site security?  It will be running on chrome, firefox and IE.
Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT

Commented:
I'm not sure exactly which settings would pull this off... especially with firefox and chrome,..

BUT,...If it were me... I would try putting the site in one of the zones in IE first... , put it in the (Intranet) zone, then *play with the security settings for Intranet, and see if any of it relaxes the browser enough to make the app work.

Author

Commented:
Hmmm i've been trying to connect on port 30000 and I enabled all settings in the trusted and intranet zones but with no luck.  Any other ideas?  Hopefully there is a way to by-pass the brower's sandbox somehow
Information Services Manager
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT

Commented:
According to that...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight\

Add the following DWORD key "AllowElevatedTrustAppsInBrowser" with 0×00000001.


Author

Commented:
Ok this is good news.  Atleast there is a roadmap to when we can deploy.  Thank you very much.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.