Permissions check failed when loading pdf in C#

Hi,
I got #=zl132WU3U1QHYSUhoFFI292KLHmFwN$6qZx5bk0Q=:“Permissions check failed (invalid Perms value).” when I try to load a pdf file.

Tested OSs were Win7 and Win10
.NET target platform is .net 6.0
Using SDK: Aspose.PDF for .Net 24.3

Using code:

    Document pdfDocument = new Document(filename);

Exception detail:

#=zl132WU3U1QHYSUhoFFI292KLHmFwN$6qZx5bk0Q=
  HResult=0x80131500
  Message=Permissions check failed (invalid Perms value).
  Source=Aspose.PDF
  StackTrace:
   在 #=qFvjiNlP0309oTzvYcCu_CT2L_pteQVvQNEapc8Bt9Ic=.#=zw$$DwZ3lIA1xCc_gLylpckE=(Object #=zCQFGEZI=)
   在 #=qFvjiNlP0309oTzvYcCu_CT2L_pteQVvQNEapc8Bt9Ic=.#=z9TDqVoq9hs7QBt4IMGvzw94GSEYInOjNppBTRXsnnZE8()
   在 #=qFvjiNlP0309oTzvYcCu_CT2L_pteQVvQNEapc8Bt9Ic=.#=zbF$OChDXQoDyDLpbsPcAJuWs6Deqx4u_Yg==(Object #=zCQFGEZI=, UInt32 #=zLDL5lis=)
   在 #=qFvjiNlP0309oTzvYcCu_CT2L_pteQVvQNEapc8Bt9Ic=.#=zFHaS3MYLjyC1JO_x87n0VW$YSOUt(Boolean #=zCQFGEZI=)
   在 #=qFvjiNlP0309oTzvYcCu_CT2L_pteQVvQNEapc8Bt9Ic=.#=zMLCYXmDHA5fTIvid2rIzZrw=(Object[] #=zCQFGEZI=, Type[] #=zLDL5lis=, Type[] #=zOEqYlSg=, Object[] #=z10YE4Eo=)
   在 #=qFvjiNlP0309oTzvYcCu_CT2L_pteQVvQNEapc8Bt9Ic=.#=zEPBQvdO5E$GbUmaT7ZF0kTuwpDywD8B_SA==(Stream #=zCQFGEZI=, String #=zLDL5lis=, Object[] #=zOEqYlSg=)
   在 #=qFvjiNlP0309oTzvYcCu_CT2L_pteQVvQNEapc8Bt9Ic=.#=zS1p6$z0Kmj51V0i24$zTLrkxQemAhPhQhA==(Stream #=zCQFGEZI=, String #=zLDL5lis=, Object[] #=zOEqYlSg=)
   在 #=z9Ifm$7EoIrx6$LQpzEx4lylGANSjVHoHyA==.#=zL8tuOvXhMbDC(String #=zuiJIvEo=, Boolean #=zr6oULaEY3ilf, StringBuilder #=zZLSft34=, #=zhgflNbE6sVKAP$WOg_WpWzW67zho9iaHeiZXFDs= #=zfCFxZSY=)
   在 #=z9Ifm$7EoIrx6$LQpzEx4lylGANSjVHoHyA==..ctor(Stream #=zxxkgx9s=, String #=zuiJIvEo=, Boolean #=zr6oULaEY3ilf)
   在 #=z9Ifm$7EoIrx6$LQpzEx4lylGANSjVHoHyA==..ctor(String #=zn8JomRA=)
   在 Aspose.Pdf.Document.#=zZRQEM6U=(String #=zn8JomRA=, String #=zuiJIvEo=)
   在 Aspose.Pdf.Document..ctor(String filename)
   在 Program.<<Main>$>g__testLoadPdf|0_0(String filename) 在 C:\.NET\ConsoleApp1\ConsoleApp1\Program.cs 中: 第 10 行
   在 Program.<Main>$(String[] args) 在 C:\.NET\ConsoleApp1\ConsoleApp1\Program.cs 中: 第 103 行

Test file
Remove the last ‘.removeme.7z’, then decompress xxx.7z.001.

广州比音勒芬服饰总部大楼智能化工程-V5-Rep.7z.001.removeme.7z (4.8 MB)
广州比音勒芬服饰总部大楼智能化工程-V5-Rep.7z.002.removeme.7z (4.8 MB)
广州比音勒芬服饰总部大楼智能化工程-V5-Rep.7z.003.removeme.7z (4.8 MB)
广州比音勒芬服饰总部大楼智能化工程-V5-Rep.7z.004.removeme.7z (4.8 MB)
广州比音勒芬服饰总部大楼智能化工程-V5-Rep.7z.005.removeme.7z (2.9 MB)

@kngstr

It looks like the archive is corrupt.
image.png (26.0 KB)

Can you please upload the original document to Google Drive and share the link with us?

Sorry. I can’t access google here.

You need remove the last .7z too.
For example:
广州比音勒芬服饰总部大楼智能化工程-V5-Rep.7z.001.removeme.7z
should be
广州比音勒芬服饰总部大楼智能化工程-V5-Rep.7z.001

@kngstr

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-57075

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.