question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade to v9.11.0-rc2 may fail at GetReferencedAssemblyNames()

See original GitHub issue

Description of bug

Upgrade wizard doesn’t continue at 2nd step “Checking security aspects of this installation”. There’s an XHR to /Install/UpgradeWizard.aspx/GetSecurityTab which throws an exception: IOException: Could not load assembly '..\bin\runtimes\win-x64\native\imageflow.dll' at DotNetNuke.Maintenance.Telerik.TelerikUtils.GetReferencedAssemblyNames(String assemblyFilePath, AppDomain domain)

The file path is correct, the file is there, but the DLL may not be readable by .NET. It seems to be a native (COM?) library from Imageflow.

Steps to reproduce

List the precise steps to reproduce the bug:

  1. Install DNN 9.6.0 with 2sxc 13 (or newer). It will place a DLL at \bin\runtimes\win-x64\native\imageflow.dll
  2. Unzip the DNN Upgrade Package
  3. Start the Upgrade Wizard
  4. Enter host login credentials
  5. Click Next
  6. It will stuck on the next step “Checking security aspects of this installation”
  7. Console will show the error details

Expected behavior

Skip non readable Assemblies/DLLs in the Telerik checks (AssemblyDependsOnTelerik()) or inform the superuser which DLLs he should check/remove manually.

Error information

XHR to /Install/UpgradeWizard.aspx/GetSecurityTab returns HTTP 500

System.IO.IOException: Could not load assembly '..\bin\runtimes\win-x64\native\imageflow.dll'
   at DotNetNuke.Maintenance.Telerik.TelerikUtils.GetReferencedAssemblyNames(String assemblyFilePath, AppDomain domain)
   at DotNetNuke.Maintenance.Telerik.TelerikUtils.AssemblyDependsOnTelerik(String path, AppDomain domain)
   at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at DotNetNuke.Maintenance.Telerik.TelerikUtils.GetAssembliesThatDependOnTelerik()
   at DotNetNuke.Services.Install.UpgradeWizard.GetSecurityTab(Dictionary`2 accountInfo)

Affected version

  • 09.11.00 release candidate 2

Affected browser

  • Chrome

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mitchelsellerscommented, Sep 2, 2022

I will work to get the fix in place for this. But the fix is that it is expected that you will not be able to load all assemblies, as some are native depending on what you have.

In my Telerik Identifier module I simply ignore these, as if I cannot load the assembly, it cannot have a Telerik dependency - https://github.com/IowaComputerGurus/DnnTelerikIdentifier/blob/c616cf6a423a6905e9d33e73ab3259bdfc129445/src/IowaComputerGurus.Dnn.TelerikIdentifier/Controllers/ContentController.cs#L43

2reactions
valadascommented, Sep 6, 2022

Here is RC4 that should fix that. I’ll close this issue but feel free to comment if it’s still an issue with RC4 https://github.com/dnnsoftware/Dnn.Platform/releases/tag/v9.11.0-rc4

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found