XSLT/XSL-FO transformation function stops working (Exception from HRESULT: 0x80131401)

Tsvetelina Ilieva 0 Reputation points
2024-05-20T11:36:54.8066667+00:00

Hello,

My Visual Studio is again not working for XSLT/XSL-FO transformations. The error message that displays is:

FileLoadException


Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401).

All I’m doing is opening an XSL, in the properties box I select the XML that I want to run against the XSL and then I select the Run XSL button which is on my toolbar.

The version installed is 17.9.7.

Please let me know if there is a fix for the issue, which seems to come and go frequently.

Thank you,

Kind Regards.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,728 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tsvetelina Ilieva 0 Reputation points
    2024-05-21T10:56:40.42+00:00

    Hi Tianyu, 

    In answer to the question, I'm not getting the chance to try to render, the message displays as soon as I open the XSL and point to the first line in the XSL. When the transformation is working, I render to both HTM and XML (for PDF generation).

     Reeta 

    Kind Regards,


  2. Flavio Sampaio 0 Reputation points
    2024-05-28T15:42:36.77+00:00

    I have this issue as well with XSLT file. I using VS Pro v. 17.10.0.

    Error message: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

    The error point soon we open tha XSLT file in the 1st line:User's image

    I try already without success:

    1 - Close VS and open again.
    2 - Close VS, delete binand obj folders and open VS again
    3 - Close VS, delete binand obj folders and open VS again Build the solution

    So, any solution or work around?

    0 comments No comments