I have a Web API and I'm trying to log messages into Graylog, using Serilog. Now matter what I do, no messages are shown in my Graylog application. This is what
Error: cannot implicitly convert type void to microsoft.win32.registrykey Code: using Microsft.Win32; RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Sofwar
Error MSB3027 Could not copy "C:\Users\surendra.reddy.nuget\packages\system.security.cryptography.protecteddata\4.5.0\runtimes\win\lib\netstandard2.0\System.Se
I cannot get NLog.Targets.ElasticSearch to connect to a local ElasticSearch instance using an APIKey. My nlog.config has the following: <target xsi:type=
Of these 4 methods mentioned, they all work in the simulator, but non of them work on the iPhone. Here are the pieces of code that come into play here. <List
Mine concern is the following. I have these 2 classes : public class Campaign { public string name { get; set; } public string description {
Suppose, a polymer has N monomers in its chain. I want to simulate its movement using the bead-spring model. However, there was no periodic boundary condition a
I am using Lazy Loading in EF core 3.1 and when i try to get the navigation data,it doesn't load. public class Template { private readonly List<Spec>
Having trouble with my Android project here trying to convert a string of DateTime into an actual DateTime object. here's the code I wrote: string strDateTime =
Trying to convert a SQL Server DataRequest class for use with PostgreSQL. Stuck on the DBTypes in this code. Can anyone give me a hand in this conversion? /// &
I am trying to implement this helper function in C# 7.3: public static T? ToEnum<T>(this string enumName) where T : Enum =>
I am trying to add Role to my User and store the UserID and the RoleID in the UsersRoles table. var userRole = await _roleManager.FindByNameAsyn
After upgrade Visual Studio 2019 to 2022, I got the following error when I try to build the project with NUKE Build (Debug/Release): ╬═══
I google it and I pass hours try figure how to do it and I can't figure: I try get Response from web Api with RestSharp v107 in .net 5 Is works well when I do t
I am receiving this error, Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware: Error: 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token, req
Not sure why this is happening. In the SaveRole() method when I try to hover over and see the value when debugging this line always shows null on the apiRespons
Is the C# Mulithreading with System.Thread using the Win32 API or how is System.Thread working?
Follow this link: https://github.com/wiz0u/WTelegramClient , downloaded the project: wtelgramclienttestwf. On the main form, I added a ordinary button with a de
I am trying to find out if it is possible to use a .Net Framework 4.7.2 assembly in another .Net 6 libraries or .Net 6 application. I tried this with some sampl
I have a project creating a websocket client side (Subscriber) to a MQTT publisher. I am quite new to C# and MQTT protocol. I follow some youtube video to make