With the new Silverlight 5, we can now have an In-Browser elevated-trust application. However, I'm experiencing some problems to deploy the application.
When I am testing the application from Visual Studio, everything works fine because it automatically gives every right if the website is hosted on the local machine (localhost, 127.0.0.1).
I saw on MSDN that I have to follow 3 steps to make it work on any website:
- Signed the XAP — I did it following the Microsoft tutorial
- Install the Trusted publishers certificate store — I did it too following the Microsoft Tutorial
- Adding a Registry key with the value
AllowElevatedTrustAppsInBrowser
.
The third step is the one I am the most unsure about. Do we need to add this registry key on the local machine or on the server? Is there any automatic function in Silverlight to add this key or is it better to make a batch file?
Even with those three steps, the application is still not working when called from another url than localhost.
Does anybody have successfully implemented an in-browser elevated-trust application? Do you see what I'm doing wrong?
Sources: