Link to home
Start Free TrialLog in
Avatar of htn5ca
htn5ca

asked on

Silverlight Socket programming on port > 5000

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?
Avatar of Ron Malmstead
Ron Malmstead
Flag of United States of America image

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.

Avatar of htn5ca
htn5ca

ASKER

How do I change the browser security setting or site security?  It will be running on chrome, firefox and IE.
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.
Avatar of htn5ca

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Ron Malmstead
Ron Malmstead
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
According to that...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight\

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


Avatar of htn5ca

ASKER

Ok this is good news.  Atleast there is a roadmap to when we can deploy.  Thank you very much.