chuongmep / RevitAddInManager

Revit AddinManager update .NET assemblies without restart Revit for developer.
MIT License
299 stars 52 forks source link

Could not load file or assembly #5

Closed chuongmep closed 2 years ago

chuongmep commented 2 years ago

Describe the bug System.IO.FileLoadException: Could not load file or assembly 'License, Version=1.1.8.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An argument was out of its legal range. (Exception from HRESULT: 0x80131502) May be problem come from https://github.com/chuongmep/RevitAddInManager/blob/438a5f2f6ae750fb65096f55d839627741d31e79/AddInManager/Model/AssemLoader.cs#L88-L88

To Reproduce Steps to reproduce the behavior:

  1. Load Assembly
  2. Click Select Class Name in Assembly
  3. Click Run Button
  4. See error

Expected behavior Assembly will be load to project

Screenshots image

Desktop (please complete the following information):

chuongmep commented 2 years ago

Problem involve with .NET6, see example in here : https://github.com/chuongmep/NET6rRevitAPI

chuongmep commented 2 years ago

Resolved in version 22.0.0.5