Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Mar 30, 2023 3:49 pm

In just one EXE application, we are getting the following message:

'\license.elic.xml' is denied

The XML file is in the application directory - the directory has all its permissions released.

The version we are working on is 8.1.4.

The complete error message is:

EMAILFramework (V. 1.0.0.0)
Access to the path 'C:\BOT\APPFramework\license.elic.xml' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.IO.FileInfo.OpenRead()
at Spire.License.LicenseProvider.ᜀ(Type A_0)
at Spire.License.LicenseProvider.ᜁ(Type A_0)
at Spire.License.LicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at spr᝞.ᜃ()
at spr᝞.ᜂ()
at spr᝞.ᜅ()
at spr᝞.ᜀ(PdfDocumentBase A_0, String A_1)
at Spire.Pdf.PdfNewDocument.Save(Stream stream)
at Spire.Pdf.PdfDocument.SaveToStream(Stream stream)
at GEDArquivo.RecepcaoDoArquivo.RecepcionarArquivo(String pNomeDoArquivo, Boolean pProcessarApenasAPrimeiraPagina, Stream pStream)
at EMAILFramework.RecepcionarEmail.ProcessarDocumentosAnexos(EMail pEMail, ComponentFluxoDeCaixa pFluxoDeCaixa)
at EMAILFramework.RecepcionarEmail.ProcessarEMail(EMail pEMail)
at EMAILFramework.RecepcionarEmail.ProcessarCaixaPostal(String pCaminhoDaPastaNaCaixaPostal, Int32 pVolumeDeEMailsASerLido)


Thank you for your attention

Augusto

RuiBarbosa
 
Posts: 19
Joined: Thu Apr 18, 2019 12:23 pm

Thu Mar 30, 2023 5:38 pm

We changed our approach. Using the guidelines from the link:

https://www.e-iceblue.com/Tutorials/Lic ... nsing.html

We decided to include the XML file as an APP embedded resource. Now everything is working correctly.

RuiBarbosa
 
Posts: 19
Joined: Thu Apr 18, 2019 12:23 pm

Fri Mar 31, 2023 3:30 am

Hi,

We are glad to hear that you were able to find a solution and share it on our forum. We greatly appreciate your contribution to the community and value your feedback.
Please do not hesitate to reach out to us if you encounter any further issues or have other questions.

Have a nice day ! :D

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDF