Silverlight 5 签署 xap 文件 [英] silverlight 5 signing xap file

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

问题描述

我在网站上签署我的 Silverlight 文件 (.xap) 时遇到问题.我们正在 Intranet 中部署此网站,并且由于我们正在访问客户端上的 USB 端口,因此我们肯定需要在客户端计算机上拥有提升的权限.

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.

我读到可以通过创建证书并将其安装在客户端计算机上来完成,并且我遵循了以下文章:http://msdn.microsoft.com/en-us/gg315158.出于测试目的,我创建了一个基本的 Silverlight 控件,根据客户端配置显示您已提升"或您未提升".

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.

现在我的问题是,我用我的 .pfx 文件将我的 xap 文件签名到 Visual Studio,但我仍然没有在客户端机器上提升的权限.在我的开发机器上,由于我猜的某些开发配置,我收到你被提升"消息......

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.

访问我的网站时,silverlight 控件启动,但显示我未处于提升模式.它不会弹出任何消息要求用户获取证书或任何东西...

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...

我错过了什么?

推荐答案

转到您的证书并找到标签可信发布者,您的证书应该在那里

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

每个客户都应该有证书.

Every client should have the certificate there.

在您检查并确认每个人都拥有此证书后,您应该运行此注册表(64 位):

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_MACHINESOFTWAREWow6432NodeMicrosoftSilverlight]
"AllowElevatedTrustAppsInBrowser"=dword:00000001

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftSilverlightComponents]

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftSilverlightComponentsDebugging]

(32 位)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftSilverlight]
"AllowElevatedTrustAppsInBrowser"=dword:00000001

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftSilverlightComponents]

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftSilverlightComponentsDebugging]

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

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天全站免登陆