c# - Silverlight cross domain calls -
i new silverlight , in url access restrictions in silverlight 5. trying use bellow code domain, apparently can't due missing crossdomain.xml , clientaccesspolicy.xml on websites.
htmlweb.loadasync("http://www.otherwebsite.com", oncallback); if (htmldocumentloadcompleted.error != null) { var htmldocument = htmldocumentloadcompleted.document; if (htmldocument !=null) { messagebox.show("passed!"); } } hence, have nasty error :
{system.security.securityexception ---> system.security.securityexception: security error. @ system.net.browser.browserhttpwebrequest.internalendgetresponse(iasyncresult asyncresult) i've tried several options, in , out browser , without elevated trust. so, question possible @ working in or out browser?
service should share cross domain policy. example amazon crossdomain. possible way use service.
upd: msdn:
silverlight trusted application run within expanded sandbox allows access network , local resources normal silverlight application explicitly denied ability access security reasons.
so, think should give application elevated trust , run (application) out-of-browser or in-browser (if under administrator privileges).
also: url access restrictions
Comments
Post a Comment