What do I need to do to make a WPF Browser Application (XBAP) that requires Full Trust work on Windows 7?

StackOverflow https://stackoverflow.com/questions/2926071

문제

So this is a Visual Studio 2008, .NET, WPF, XBAP, Windows 7 question, regarding .NET trust policies.

At work, we have several Web Browser Applications (.XBAP files) developed with Visual Studio 2008 (so .NET 3.5) that we deployed internally. These required a .NET FullTrust policy, we found a way to make a .MSI that adjusted the policy on individual stations, everything worked great. Users love in-browser apps.

This was last year and on Windows XP. This year our company started upgrading users to Windows 7, and now none of our Web Browser Applications work. The error message is "Trust Not Granted", as if the policy-changing .MSI had not been run.

Other details: I can confirm that our apps work on Windows XP for Internet Explorer 7 and Firefox, and do not work on Windows 7 for Internet Explorer 8 nor Firefox.

I must admit that .NET security policies mystify me. Still, I could not find any mention of this problem on the Net at large or on this site.

Did anybody else encounter this problem? Any and all help welcome.

도움이 되었습니까?

해결책

We've encountered this exact problem. Fixing this requires signing your click-once manifest with a a code-signing certificate, preferably a VeriSign certificate. You could probably also create your own certificate and then add it to the "Trusted Root Certificate Authorities" on your client machines, or create it with your own Certificate Authority. Once signed, you will need to import the public key for your certificate into the "Trusted Publishers" store on the client machines.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top