locked
Issue while loading DLLs on IIS 10 RRS feed

  • Question

  • User714980094 posted

    Hi,

    we have been using IIS 8.5 and migrated to IIS 10. We are now seeing issues that every couple of days, some LinQ dlls cannot be loaded from the temporary IIS Directory: C:\windows\Microsoft.Net\Framework64\v4.0.30319\Temporary ASP.NET Files.

    Error message is:

    System.IO.FileLoadException: Could not load file or assembly 'LinqKit, Version=1.1.15.0, Culture=neutral, PublicKeyToken=bc217f8844052a91' or one of its dependencies. An API call exited abnormally. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))

    File name: 'LinqKit, Version=1.1.15.0, Culture=neutral, PublicKeyToken=bc217f8844052a91'

    On the old IIS Servers, we never encountered similar issues.

    The application is a .Net 4.6 application using MVC and ASP.NET impersonation. The app pool identity is a Domain user (not a local admin) which currently has the following User Rights assignment (same as on the old IIS)

    -Adjust Memory quotas, Generate Security Audits, Impersonate a Client after Auth, Log on as a Batch Job, Replace a process level token

    The app pool ID user and the impersonated user have Read permissions on the physical path of the Website and (checked effective permissions for NTFS) have Read and execute permissions on the ASP temp Directory. I did not changed These permissions there.

    Since the error does not occur every time but only several times a week, it is difficult to troubleshoot. If the error occurs, an IIS Reset helps. After that it works fine again.

    Any ideas?

    Thanks

    Chris

    Tuesday, January 7, 2020 8:46 AM

All replies

  • User665608656 posted

    Hi MrllS,

    Based on your error description, we cannot reproduce your problem.

    We recommend that you follow the steps below to get the log information, this will get useful error information to help us solve this problem:

    First, find the Event Viewer tool in your pc.

    Then ,click the Windows Logs option in the left column, select Application, then in the Actions column on the right, select the Filter Current Log...

    In the pop-up box, select the drop-down box for Event sources, and select WAS, IIS related options.

    Last, click ok to view the log information in the middle module.

    Best Regards,

    YongQing.

    Wednesday, January 8, 2020 8:36 AM
  • User714980094 posted

    Hi,

    unfortunatly, I do not see any IIS related warnings or Errors in the System or Application Event log. The only eror we get is within the web application and via the Fusion log. Can you suggest if the log level can be Extended to be able to also capture this Event in the Event log?

    KR

    Chris

    Wednesday, January 8, 2020 10:58 AM
  • User665608656 posted

    Hi MrIIS,

    According to your description, can you find where the error occurred?

    Please provide us with the relevant LinqKit code for your project.

    Best Regards,

    YongQing.

    Thursday, January 9, 2020 8:21 AM
  • User714980094 posted

    Hi,

    We received the error for the following dlls:
    - HtmlAgilityPack -> version 1.9.1.0
    - LinqKit -> version 1.1.15.0
    - Linq

    Here the stacktrace of the error for more details:

    System.IO.FileLoadException: Could not load file or assembly 'HtmlAgilityPack, Version=1.9.1.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its dependencies. An API call exited abnormally. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))
    File name: 'HtmlAgilityPack, Version=1.9.1.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a'


    System.IO.FileLoadException: Could not load file or assembly 'LinqKit, Version=1.1.15.0, Culture=neutral, PublicKeyToken=bc217f8844052a91' or one of its dependencies. An API call exited abnormally. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))
    File name: 'LinqKit, Version=1.1.15.0, Culture=neutral, PublicKeyToken=bc217f8844052a91'

    KR

    Chris

    Thursday, January 9, 2020 12:14 PM
  • User-1492487179 posted

    According to your description you could not load correct assembly from Temporary ASP.NET files sometimes. And if you reset this issue will be fixed. Since reset will cause csc.exe to rebuild assemblies, so it might fix this issue. I would suggest you clean it's build environment under folder "Temporary ASP.NET" completely. Please clean the files under the following folder"

    - %TEMP%\Temporary ASP.NET Files (not needed, if in production environment)​

    - C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files​

    - C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files​

    - C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files​

    - C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files

    Monday, January 13, 2020 8:15 AM
  • User714980094 posted

    Hi,

    I stopped the IIS Service and delete the files. I also requested to stop any AV scanning on this Directory. We will check in the next couple of days if the issue reoccurs.

    KR

    Thursday, January 16, 2020 9:20 AM
  • User714980094 posted

    Hi,

    unfortunatly, the issue occured again. We now disabled the AV scanning and will check now if it appears again. In case it does, we do not have any idea left how to resolve it.

    Any additional ideas?

    Thanks

    KR

    Chris

    Monday, January 20, 2020 5:44 PM
  • User2053451246 posted

    Maybe you should contact the developer of the library that is causing the error.  We see LinqKit in your error message.

    https://github.com/scottksmith95/LINQKit

    Monday, January 20, 2020 7:41 PM
  • User-1492487179 posted

    Please also try to use process monitor to log the issue moment and check what happened when loading related assemblies. Please refer to this video to know more about process monitor: https://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-4-Process-Monitor. If there is no sensitive data you could also share the log. 

    Tuesday, January 21, 2020 9:15 AM