silverlight 5签名xap文件 [英] silverlight 5 signing xap file

查看:328
本文介绍了silverlight 5签名xap文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网站上签署我的Silverlight档案(.xap)时遇到问题。我们正在内部网部署这个网站,因为我们正在访问客户端上的usb端口,我们肯定需要在客户端机器上提高权限。



我已经阅读,它可以通过创建证书并将其安装在客户端机器上,我遵循以下文章: http://msdn.microsoft.com/en-us/gg315158 。为了测试的目的,我创建了一个基本的Silverlight控件,显示你是抬高或你不抬高取决于客户端配置。



现在我的问题是,我用我的.pfx文件签名我的xap文件,到Visual Studio,但我仍然没有在客户端机器上提高的权限。在我的开发机器上,我收到你是抬高消息,因为一些dev配置我猜...



我试图在我的客户端机器上手动安装我的证书但它仍然不工作。



访问我的网站时,silverlight控件开始,但显示我没有处于提升模式。它不会弹出任何消息,要求用户获取证书或任何...



我缺少什么?

,您的证书应该在那里。



每个客户都应该有证书。



一旦您选中此项并且可以确认每个人都有此证书,您应该运行此注册表(64位) p>

  Windows注册表编辑器版本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位) p>

  Windows注册表编辑器版本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]

只需将其保存为.txt文件,并将其重命名为.reg并运行它。
这应该可以解决你的问题。


I'm facing trouble with signing my Silverlight file (.xap) in a website. We're deploying this website in an intranet and, since we're accessing the usb port on the client, we definitely need to have elevated rights on the client machine.

I've read that it can be done by creating a certificate and install it on the client machine, and I followed the following article : http://msdn.microsoft.com/en-us/gg315158 . For tests purpose, I created a basic Silverlight control that display "You are elevated" or "You are not elevated" depending on the client configuration.

Now my problem is, I signed my xap file with my .pfx file, into Visual Studio, but I still don't have the elevated rights on the client machine. On my development machine, I receive the "You are elevated" message because of some dev configuration I guess...

I tried to install my certificate manually on my client machine but it still doesn't work.

When accessing my website, the silverlight control starts but display that I'm not in an elevated mode. It doesn't pop any message to ask the user to get the certificate or anything...

What am I missing ?

解决方案

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

Every client should have the certificate there.

Once you checked this and can confirm that everyone has this certificate, you should run this registry (64bit):

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]

(32bit)

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 into a .txt file and rename it to .reg and run it. This should fix your problem.

这篇关于silverlight 5签名xap文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆