Silverlight 5 sign xap file

I am having a problem signing my Silverlight (.xap) file on a website. We are deploying this website on the intranet, and since we are accessing the usb port on the client, we definitely need to have elevated privileges on the client machine.

I read that this can be done by creating a certificate and installing it on the client machine, and I completed the following article: http://msdn.microsoft.com/en-us/gg315158 . For testing purposes, I created a basic Silverlight control that displays "You are raised" or "You are not raised" depending on the configuration of the client.

Now my problem is that I signed my xap file with my .pfx file in Visual Studio, but I still do not have elevated privileges on the client machine. On my development machine, I get the message "You raised" due to some dev configuration, I think ...

I tried installing my certificate manually on my client computer, but it still does not work.

When I access my website, the silverlight control starts up, but it shows that I'm not in high availability. It does not issue any messages to ask the user to get a certificate or something else ...

What am I missing?

+1
source share
1 answer

Go to your certificates and find the Trusted Publishers tab, your certificate should be there

Each client must have a certificate.

After you have verified this and can confirm that everyone has this certificate, you should run this registry (64 bit):

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Silverlight] "AllowElevatedTrustAppsInBrowser"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Silverlight\Components] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Silverlight\Components\Debugging] 

(32 bit)

 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight] "AllowElevatedTrustAppsInBrowser"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight\Components] [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight\Components\Debugging] 

Just save this in a .txt file and rename it to .reg and run. This should solve your problem.

+2
source