C
C#

Exception Unhandled : Could not load file or assembly 'Serilog.Extensions.Hosting

Exception Unhandled : Could not load file or assembly 'Serilog.Extensions.Hosting

EE.AZER11/18/2023
When I run my application, this exception is thrown even before the start of debugging. System.IO.FileNotFoundException: 'Could not load file or assembly 'Serilog.Extensions.Hosting, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10'. Le fichier spécifié est introuvable.' This is my .csproj references : <PackageReference Include="Serilog" Version="3.0.1" /> <PackageReference Include="Serilog.AspNetCore" Version="7.0.0.0" /> <PackageReference Include="StackExchange.Redis" Version="2.6.122" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" /> I tried to clean and build the entire solution and projects so many times also "dotnet restore", *Closing visual studio *Deleting all bin and obj folders *Reopen VS, restore nugets *Clean and rebuild
No description
No description
JJP11/18/2023
what hapepns if you add <PackageReference Include="Serilog.Extensions.Hosting" Version="7.0.0.0" /> ? (recognizing that it seems that Serilog.AspNetCore is supposed to pull this in already) If that doesn't work: What dotnet version is this project targeting? (TargetFramework(s) in csproj) and can you post the output of dotnet --list-sdks, dotnet --list-runtimes
EE.AZER11/18/2023
hing happens, I did it before 🫣 even I'm not sure if there is a difference between 7.0.0 & 7.0.0.0
JJP11/18/2023
those should be the same afaik, yeah
EE.AZER11/18/2023
just a moment pls , I'm updating the vs now , still waiting ... I tryed to delete bin and obj too That's a weird problem , two days searching for a solution ;/
JJP11/18/2023
debugging the code the builds your code is always the most annoying thing
UUUnknown User11/18/2023
4 Messages Not Public
Sign In & Join Server To View
EE.AZER11/18/2023
I'm already using 7.0.0 you can see the attached images
UUUnknown User11/18/2023
4 Messages Not Public
Sign In & Join Server To View
EE.AZER11/18/2023
I can't send all of it, there is some confidential things related to my job , sorry for that
UUUnknown User11/18/2023
Message Not Public
Sign In & Join Server To View
EE.AZER11/18/2023
any suggestions how can I find the version confusion ? between version 7.0.0 and the detectable one 7.0.0.0

Looking for more? Join the community!

C
C#

Exception Unhandled : Could not load file or assembly 'Serilog.Extensions.Hosting

Join Server
Want results from more Discord servers?
Add your server
Recommended Posts
got this code that i wrote the get all score and print end score but i didnt read right help meexem is 40% assigments is 30% and participation is 30%Assistance regarding deciding on what to use.Hello there, I want to port one of my macOS apps to a native windows app and would like to ask which✅ C# SMS/MMS BotI have a project I'm working on I have a working PBX that receives SMS and MMS messages to a web conHelp deciding Next.js/Node.js vs .NET API back-endHello. I really want to use .NET as my API back-end for a practice app I'm building. However, I dohow do i make it so when i press it this happens and if i do it again another thing happensive made a code in winforms so when i press with my left mouse button it hides everything, how do i Can't access object attributes using X.PagedListI have a search field that returns a list of movies. It works fine if I reference the model as @MoviTryin to install scriptscs but cinst is not a recognized commandI'm trying to install scriptcs but cinst isn't a recognized command. I have uninstalled and reinstalHow do I utilize Identity Framework and AspNetUser Table?Hello, I am building an MVC app where people will need to sign up. They can then upload stuff to th✅ Is there a way to run a commands method inside of another command? (DSharpPlus)Title explains it. ```c# #region RandomImage [SlashCommand("randomimage", "Visa en rhelpGood evening, I have a monolithic application completed, can someone help me migrate a monolithic apProject structure (MVC API, microservice arch.)https://github.com/classy-giraffe/BookshopHow can I insert my sortedlist into a listbox?I am new to C# and currently using a sortedlist<string, int> in order to store values that I need toHow to map Entity Framework entities containing circular references to DTOs?When querying data with Entity Framework, the result data appears to contain circular references. (✅ Typeorm doesnt get the name from entityI need that typeorm get the ```name: "noInfoMILeadsToDistribute"``` inside Entity, but it wants to gProcessing files as fast as possibleHi everyone! I have a question that I’m sure you can help me with. I’m making a library that needs t✅ [SOLVED] Does the 3rd line of code hold memory as a reference or does it hold the actual value?ayooo, quick question. pretty simple. Book is a custom class just so you know.... ```csharp Book boRequestsHello, i have never done something that i will say before, how can i send a request to an API Url, gWhy is my grid on Line 28 not calling back to my other script called Grid?✅ Visual Studio 2022 Failing to Create C# ProjectWhat's happening here?✅ Help with creating shapes on a windows form appI have created a windows form app to display shapes on a bitmap, my circle function works fine but m