+_+
+_+
CC#
Created by +_+ on 7/19/2023 in #help
❔ NetStandard Class Library installed nuget package dlls not going to bin when I reference
For example if I got a NetStandard 2.0 Class Library named 'LibraryA' and then I have an MVC 5 WebAPI named 'WebAPI' LibraryA has Prometheus-Net installed via Nuget if I compile LibraryA the prometheus-net dll is in the bin like this C:\Somewhere\LibraryA\Bin\Release\netstandard2.0\Prometheus.NetStandard.dll but when I reference LibraryA from WebAPI and compile I do see the LibraryA.dll but no prometheus why? can someone please help me understand why it happens here is a example of my csproj:
9 replies
CC#
Created by +_+ on 5/27/2023 in #help
I keep getting "PlatformNotSupportedException" when using ConfigurationManager.GetSection on Windows
How is GetSection not supported on Windows? I'm pretty sure this must be some bug or a issue on my side right? my project is targetting NET Standard 2.0 here are some screenshots to show what's happening https://cdn.discordapp.com/attachments/1106166175253151845/1112071483049656360/image.png https://cdn.discordapp.com/attachments/1106166175253151845/1112071495900999802/image.png if you guys need any more information please let me know
10 replies
CC#
Created by +_+ on 5/26/2023 in #help
Weird issue I can't seem to figure out "Strong name signature could not be verified."
I've been looking around a lot on google trying to find out how I can resolve this but I cant find anything useful I tried to reinstall Consul via nuget but it had no effect :/ this is the error:
Server Error in '/' Application.
Could not load file or assembly 'Consul' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Consul' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Source Error:
Server Error in '/' Application.
Could not load file or assembly 'Consul' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Consul' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Source Error:
Not sure what other information to provide to you guys if you need to know anything else please let me know!
12 replies