创建WPF应用程序的证书 [英] Create certificate for WPF application

查看:67
本文介绍了创建WPF应用程序的证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个WPF应用程序,试图在公司网络的IIS服务器上运行.该应用程序在调试中运行良好.我将其发布到IIS根文件夹并尝试运行它.我遇到信任错误问题.我遵循了一些信息路径,这表明我需要注册一些我执行过的mime文件,另一个建议我需要将在IIS管理器上的保留时间更改为我所做的1分钟.接下来,我被告知需要使用以下代码创建的证书C:\ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Bin> makecert -sv MyKey.pvk -r -n"C
N = Aring"MyKey.cer,在我输入了两个不同的密码后会产生以下错误.错误:无法访问主题的密钥(" MyKey.pvk)
失败
另一个建议使用2010 Express Studio中不提供的自动部署选项.有谁知道逐步部署WPF应用程序的说明,以便可以通过Web对其进行访问?我的挫败感达到了顶峰.我认为使用vs2010和WPF可以轻松创建一个网页,但是Microsoft却把部署它变成了一场噩梦.感谢您提供的任何帮助,我不想浪费数周的工作,但似乎无法解决所有问题.

Dave D.

I have created a WPF application which I am trying to run on an IIS server for a corporate network. The application works fine in debug. I published it to the IIS root folder and tried to run it. I get trust error issues. I have followed several information paths which suggest I need to register some mime files which I did, another suggest I need to change the retention time on the IIS manager to 1 minute which I did. Next I am told that I need a certificate which I attempted to create using the following code C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>makecert -sv MyKey.pvk -r -n "C
N=Aring" MyKey.cer which generates the following error after I have entered two different passwords. Error: Can''t access the key of the subject (''MyKey.pvk'')
Failed
Another suggested using an automatic deployment option which is not available on the 2010 express studio. Does anyone know of step by step directions for deploying a WPF application so that it can be accessed through the web? My frustration level is at a peak. I thought using vs2010 and WPF would allow creation of a web page easly which it did however Microsoft has made deploying it a nightmare. Thank you for any help you can provide, I don''t want to dump weeks of work but I can''t seem to get through all of the issues.

Dave D.

推荐答案

在MVP的博客之一http://diptimayapatra.wordpress.com/2010/01/06/create-setup-and-deployment-of -wpf-application-by-step// [
Nice tutorial is available at one of MVP''s blog http://diptimayapatra.wordpress.com/2010/01/06/create-setup-and-deployment-of-wpf-application-step-by-step/[^]


这篇关于创建WPF应用程序的证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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