Skip to content

Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1 due to dependency on a non-strong named assembly #371

Closed

Description

@kunjiangkun

Description

System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for '<StartupCode$Plotly-NET>.$Defaults' threw an exception.
Source=Plotly.NET
StackTrace:
at Plotly.NET.Defaults.set_DefaultTemplate(Template value)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Test.Program.

(String[] args)

This exception was originally thrown at this call stack:

Inner Exception 1:
FileLoadException: Could not load file or assembly 'Giraffe.ViewEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

Please provide a succinct description of your issue.

Repro steps

Please provide the steps required to reproduce the problem

There is only one line of test code:
Defaults.DefaultTemplate = ChartTemplates.lightMirrored;

Expected behavior

Please provide a description of the behavior you expect.

Actual behavior

Please provide a description of the actual behavior you observe.

Known workarounds

Please provide a description of any known workarounds.

Related information

using .Net Framework 4.8.

Activity

  1. kunjiangkun commented on Feb 27, 2023

    @kunjiangkun
    Author

    Not sure if it's related but the Giraffe.ViewEngine 1.4.0 release has version 1.0.0 in the DLL.

  2. changed the title [-]Exception after updated to version 4.0.0 from version 3.0.1[/-] [+]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1[/+] on Feb 27, 2023
  3. kMutagene commented on Feb 28, 2023

    @kMutagene
    Collaborator

    Oh man, Giraffe.ViewEngine is not a strong named assembly 😢 This is the exact type of shit i hoped will not happen due to us adopting strong naming. Now i have to beg those maintainers to adopt strong naming too, or implement a view engine myself in this repo

  4. kMutagene commented on Feb 28, 2023

    @kMutagene
    Collaborator

    Thanks for reporting this though, i think there is not much you can do to make it work. I think there is something called binding redirects for netfx.

  5. changed the title [-]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1[/-] [+]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1 due to dependency on a non-strong named assembly[/+] on Feb 28, 2023
  6. kMutagene commented on Apr 1, 2023

    @kMutagene
    Collaborator

    @kunjiangkun does adding https://github.com/dsplaisted/strongnamer to your solution resolve the issue?

  7. kunjiangkun commented on Apr 10, 2023

    @kunjiangkun
    Author

    @kunjiangkun does adding https://github.com/dsplaisted/strongnamer to your solution resolve the issue?

    Adding strongnamer didn't solve the problem. Will stay on version 3.0.1 for now.

  8. kMutagene commented on Apr 13, 2023

    @kMutagene
    Collaborator

    fixed via 5cc0143, will be in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions