none
.NET 4.0 Request for the permission of type System.Security.Permissions.FileIOPermission RRS feed

  • Question

  • Hi,

    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"

    2.

    https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=5460&pcat=7&pid=3228

    OPOSN1.12.26 and POSforDotNet-1.14 are only support .NET 3.0.

    We mixed old .NET with .NET 4.0 by enabled or using the <NetFx40_LegacySecurityPolicy enabled="true" />

    Have a look at the following article, our problem is exactly the same except the .NET version.

    "https://knowledgebase.progress.com/articles/Article/P178819"

    I am having the following problem.

    Exception:

    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

    There's a hint but doesn't tell how to fix.

    Important

    Starting with the .NET Framework 4, Caspol.exe does not affect CAS policy unless the <legacyCasPolicy> element is set to true. Any settings shown or modified by CasPol.exe will only affect applications that opt into using CAS policy. For more information, see Security Changes.

    What .NET version to run the caspol command?

    Isn't .NET 4.0?

    The assemblies are already be strongly name!.

    Thanks and Best Regards,

    Weera


    • Edited by Carrot999 Monday, November 6, 2017 9:24 AM
    Monday, November 6, 2017 9:21 AM

All replies

  • Why don't you ask the 3rd party vendor about their solution?
    Monday, November 6, 2017 12:28 PM
  • Hi DA924x,

    Thanks for a suggestion. Actually this problem is not belong to Vendor. It is about that I mixed old net with net 4.0

    Monday, November 6, 2017 8:51 PM
  • Hi Carrot999,

    Thank you for posting here.

    >>https://www.microsoft.com/en-us/download/details.aspx?id=42081"

    The link you provided is download of Microsoft Point of Service for .NET v1.14 (POS for .NET). It support .NET 4.0 and above.

    >>https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=5460&pcat=7&pid=3228

    The second link of EPSON OPOS ADK for .NET, I am not sure whether it is supported by .bet 40 or not. You could connect to the supporter of the website.

    >>What .NET version to run the caspol command?

    .Net 4.0 support Caspol.exe. For more details, you could refer to the following link.

    https://docs.microsoft.com/en-us/dotnet/framework/tools/caspol-exe-code-access-security-policy-tool

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Fei HuModerator Wednesday, November 15, 2017 10:49 AM
    Tuesday, November 7, 2017 9:41 AM
    Moderator
  • Hi Carrot999,

    Any update? If your question has been solved, please mark the solution as answer to close the thread. This will make answer searching easier in the forum and be beneficial to community members as well.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, November 24, 2017 1:15 AM
    Moderator