Publish error after upgrading to 15.1

After upgrading to 15.1 and recompiling the post publish dll, we get the following error upon publish

Failed with exception System.IO.FileNotFoundException: The URI 'file:///.xxxxfilepath' is not trusted

I checked and the file exists, is there additional config to trust the Publish folder?

emoji
Parents
  •   All the recent coding work we have been using XDocument looks like all those custom plugins are working well.

    Only the plugins which has XMLDocument instead of XDocument were throwing this error. So I suggested them to use XDocument instead which is working.

    The most commonly use PS plugin InfoshareRenameFiles has same issue as well. We will need to rewrite those XMLDocument calls there as well.

    Screenshot of code comparing XMLDocument and XDocument implementations. Left side shows XMLDocument with XmlReader, right side shows XDocument with Descendants method.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 1:55 PM (GMT 1) on 12 Sep 2024]
Reply
  •   All the recent coding work we have been using XDocument looks like all those custom plugins are working well.

    Only the plugins which has XMLDocument instead of XDocument were throwing this error. So I suggested them to use XDocument instead which is working.

    The most commonly use PS plugin InfoshareRenameFiles has same issue as well. We will need to rewrite those XMLDocument calls there as well.

    Screenshot of code comparing XMLDocument and XDocument implementations. Left side shows XMLDocument with XmlReader, right side shows XDocument with Descendants method.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 1:55 PM (GMT 1) on 12 Sep 2024]
Children
No Data