We are trying to debug an intermittent production bug. We cant currently repro
We get UnauthorizedAccessException: Access to the path is denied.
System.UnauthorizedAccessException: Access to the path is denied.
at Aspose.Words.Document.b(Stream a, LoadOptions b)
at Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
it would be really helpful if the code in Document.b(Stream a, LoadOptions b) could be changed to include the path of the thing that could not be accessed
@simoncropp Please attach the source code and input document here, we will check the issue and provide you with additional information.
as i said, we cant repro. so cant provide the code to cause it.
but this should not prevent you from reviewing your code for that method, and checking if more information can be provided when the exception is thrown
@simoncropp This method is a Document class constructor that is called in any code created with Aspose.Words. The error you get means that access to your file is denied. You can read more here.