本文介绍了.NET 4.0请求System.Security.Permissions.FileIOPermission类型的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 首先,这不是Web App问题。我正在为PixelPoint实现一个插件。该插件依赖于.NET 4.0,POSforDotNet-1.14和OPOSN1.12.26.exe First of all, This is not Web App problem. I am implementing a plugin for PixelPoint. The plugin relies on .NET 4.0, POSforDotNet-1.14 and OPOSN1.12.26.exe此问题仅适用于客户端/服务器应用程序。 This problem only for Client/Server App. 1。" https://www.microsoft.com/en-us/download/ details.aspx?id = 42081" "https://www.microsoft.com/en-us/download/details.aspx?id=42081" 2. https://download.epson-biz.com/modules/pos/index。 php?page = single_soft& cid = 5460& pcat = 7& pid = 3228 https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=5460&pcat=7&pid=3228 OPOSN1.12.26和POSforDotNet-1.14仅支持.NET 3.0。OPOSN1.12.26 and POSforDotNet-1.14 are only support .NET 3.0.我们将旧.NET与.NET 4.0混合使用或使用< NetFx40_LegacySecurityPolicy enabled =" true" /> We mixed old .NET with .NET 4.0 by enabled or using the <NetFx40_LegacySecurityPolicy enabled="true" />看看下面的文章,我们的问题与.NET版本完全相同。Have a look at the following article, our problem is exactly the same except the .NET version." https://knowledgebase.progress.com/articles/Article/P178819" "https://knowledgebase.progress.com/articles/Article/P178819"我遇到以下问题。例外: Exception: 请求获得System.Security.Permissions.FileIOPermission类型的权限,mscorlib,版本= 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089失败。 Request for the permission of type System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. https://docs.microsoft.com/en-us/dotnet/framework/tools/caspol-exe-code-access-security -policy-tool https://docs.microsoft.com/en-us/dotnet/framework/tools/caspol-exe-code-access-security-policy-tool有一个提示,但没有说明如何修复。There's a hint but doesn't tell how to fix. 从.NET Framework 4开始,Caspol.exe不会影响CAS策略,除非< legacyCasPolicy> element设置为 true 。 CasPol.exe显示或修改的任何设置只会影响选择使用CAS策略的应用程序。有关更多信息,请参阅安全性更改。 Starting with the .NET Framework 4, Caspol.exe does not affect CAS policy unless the <legacyCasPolicy> element is set totrue. Any settings shown or modified by CasPol.exe will only affect applications that opt into using CAS policy. For more information, see Security Changes.运行caspol comman的.NET版本 d? What .NET version to run the caspol command?不是.NET 4.0 ?Isn't .NET 4.0? 程序集已经是强名称!。The assemblies are already be strongly name!.谢谢和最诚挚的问候, Weera Weera推荐答案 你为什么不问第三方供应商关于他们的解决方案?Why don't you ask the 3rd party vendor about their solution? 这篇关于.NET 4.0请求System.Security.Permissions.FileIOPermission类型的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-15 03:19