Issue regarding Aspose licence management and Eset antivirus

Hi team,

Recently we have raised an issue regarding Aspose licence management and Eset antivirus. Eset have found, with machine learning, that some dll with name ‘zx_467fc4a47004484b80547fff12cc3aa7.dll’ had been created on c:/Windows/temp folder. After removing this dll an error is raised on windows event viewer and our application has stopped working, this is the error:

Exception information:

Exception type: HttpException

Exception message: Failed to set license. Details: Could not load file or assembly 'zx_467fc4a47004484b80547fff12cc3aa7, PublicKeyToken=716fcc553a201e56' or one of its dependencies. The system cannot find the file specified.

at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)

at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)

at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)

at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)

at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Failed to set license. Details: Could not load file or assembly ‘zx_467fc4a47004484b80547fff12cc3aa7, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. The system cannot find the file specified.

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=z7l$nO$iUSmU3xRa8f4qRDBAZ0saQ(Object #=zWMVhUuo=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zWfb5UeMhw4zHkYbmzDoZKYnCziRQvjGWeA==(#=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU= #=zWMVhUuo=, #=qo17jf5DEBj8Q1qzU4LnK7n__RXWjp7wIK$RldEEv1mI= #=zvGjb07I=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zwWiWEeB1q_71Dfy1IEyGa37A_ApC()

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zsG9VlAfDx44wCClnWGx6c_aPWLum(Boolean #=zWMVhUuo=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=z7l$nO$iUSmU3xRa8f4qRDBAZ0saQ(Object #=zWMVhUuo=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=z4bpmzoXjY2pjOVLzd4imNvb5bMoO()

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zRctNdThHWzefgw3szeRlGCeHfu7bWkW5b9wzW5A=(Object #=zWMVhUuo=, UInt32 #=zvGjb07I=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zsG9VlAfDx44wCClnWGx6c_aPWLum(Boolean #=zWMVhUuo=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zsG9VlAfDx44wCClnWGx6c_aPWLum(Boolean #=zWMVhUuo=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zZWBOlsYiM2t$5n109QXb_b$FKHdDvgz0_kwMwDBR1Tht()

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=z$q1pjwSrT2jjyG$8Eo1bstgwqCJ$uNVzLbrVu8YXefLB(Object[] #=zWMVhUuo=, Type[] #=zvGjb07I=, Type[] #=zng68sW8=, Object[] #=zSmHg6tQ=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zIMO6gdpCOqFtrxmFNuFActYMwOWnUbE8sat4ffA=(Stream #=zWMVhUuo=, String #=zvGjb07I=, Object[] #=zng68sW8=, Type[] #=zSmHg6tQ=, Type[] #=z4$TIi3g=, Object[] #=z_vLTGvY=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zzVwsAZYo4Ww$X6B3$pe0dGc=(Stream #=zWMVhUuo=, String #=zvGjb07I=, Object[] #=zng68sW8=)

at #=qJ3E3ZvDbk4NTPQU4FnolVnQILrDbKCNuuwT5xe6$hIU=.#=zviGDD2x4E81zasENR7qz2XhbJT1W(Stream #=zWMVhUuo=, String #=zvGjb07I=, Object[] #=zng68sW8=)

at Aspose.Zip.License.SetLicense(Stream stream)

From our side all seems to be OK, but we need to confirm that this is the normal behavior for Aspose license management.

Best regards.

Hello @Manel , what version of Aspose.ZIP do you set the license for? Did you use Aspose.Total license?
@denis.kudelin please take a look.

Hello @Eugene.Shashkov,

I’m currently using version 23.8.1.0 of Aspose.Zip, with an Aspose.Total license.

@Manel
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): ZIPNET-1145

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.

Hello @Manel. No, this is not normal behavior. Aspose.Zip does not create additional files or libraries in the windows/temp folder. Could you please provide more details on how exactly you are setting up the license and where it is stored? Thank you.

Hello @denis.kudelin ,

The code we use to configure the license is this:

using (MemoryStream licenseStream = new MemoryStream(Convert.FromBase64String(asposeLicencse)))
{
    Aspose.Zip.License asposeLicenseZip = new Aspose.Zip.License();
    asposeLicenseZip.SetLicense(licenseStream);
}

Where asposeLicencse is a text string that we get from our database.

Hello @Manel ,
Are you using any other Aspose product within the web application? Do you refer System.Drawing.Common package for it?
Generally, Aspose.ZIP does not rely on any hidden dependency and does not create temporary files on license setting from whatever source. It seems zx_467fc4a47004484b80547fff12cc3aa7.dll file comes from your web server. You can provide it for us to review.

Hello @Eugene.Shashkov ,

.- Are you using any other Aspose product within the web application?
Yes, We are using Aspose.Words, Aspose.Cells, Aspose.PDF, Aspose.Email, Aspose.BarCode and Aspose.Zip.

.- Do you refer System.Drawing.Common package for it?
Our project has references to System.Drawing.

.- zx_467fc4a47004484b80547fff12cc3aa7.dl
We have decompiled the dll that is causing problems with the antivirus and we have found Aspose.Zip references in it.

zx_467fc4a47004484b80547fff12cc3aa7.7z (869.6 KB)

Virustotal indicates this file to be safe. Essentially the problem is false positive virus detection, right? Is it possible to keep this file intact by antivirus exception, maybe give permission to the file or web server process?

Hello @Eugene.Shashkov ,

“Essentially the problem is false positive virus detection, right? Is it possible to keep this file intact by antivirus exception?”

Yes, the problem is the false positive. We can apply an exception in antivirus, but first we wanted to confirm that this is normal ASPOSE functionality.

Thanks for the information.

Best regards.

Creating a library with machine-generated name, which is a part of main library containing resources, in temp folder is not an intended functionality. It seems this is how web server works on some initialization. In this sense, it is normal functionality.

Web search finds similar errors - 1, 2 - HttpException due to missing file in the innermost EnsureAppStartCalledForIntegratedMode method. So yes, it does not seem to be a problem of Aspose library.

1 Like

Hello @Eugene.Shashkov ,

Thanks for all the information and quick response.

Best regards.