driib
Explore posts from serversgetting data from mongodb to c#
https://git-fork.com/ could be convenient for you if you are new to git command line.
55 replies
getting data from mongodb to c#
For the "it worked 20 minutes ago", I would strongly recommend using Git: https://www.atlassian.com/git/tutorials
55 replies
❔ Sitecore using C# ASP.net Framework
@ABAKA did you go through the docs like https://doc.sitecore.com/xp/en/developers/100/developer-tools/walkthrough--creating-a-simple-rendering-with-a-data-source.html ?
4 replies
❔ Getting rid of System.Net.Http.Formatting
Upd: I solved the problem, newly created project with an assembly redirect for System.Web.Http and a https://github.com/Microsoft/dotnet/blob/main/releases/net472/KnownIssues/613745%20-%20Single-name%20references%20are%20removed%20by%20the%20SDK%20when%20targeting%204.7.2.md for System.Net.Http did the trick. I must have messed up something in the process of trying other irrelevant advices.
5 replies
❔ Getting rid of System.Net.Http.Formatting
A Java dev here who programmed in C#/.Net professionally ca. 10-12 years ago here trying to refresh my .Net skills. MVC 5 application was created from scratch using https://devindeep.com/how-to-create-asp-net-mvc5-web-project-in-visual-studio-2022/ and the code was moved there manually. Also, to be clear, I removed the extension assembly for Http.Formatting and replaced it with Microsoft.AspNet.WebApi.Client
If I try to update all MVC 5 packages to 5.2.9 and remove the Extensions kludge, I get
CS1705 Assembly 'System.Web.Http' with identity 'System.Web.Http, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'System.Net.Http.Formatting, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Net.Http.Formatting' with identity 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
In case it helps 🙂5 replies