c# .net

  1. DavidEN

    Temporary folder error when publishing to visual studio 2019 folder

    Good, I have this problem, when I want to publish my visual studio 2019 project in a folder I get an error from the temporary folder, I already tried cleaning the project, deleting the bin folder and obj I deleted the temporary ones and I recompiled the project and I The error keeps coming out...
  2. sachin Shrestha

    is it ok to call the same Linq query multiple times for loading object from DB in same action method

    Below is My Controller action in the first line I have gotten the student from db and in 5 line I have use service function in which I have passed the student id which will again load the student from db is it good public ActionResult DeleteStudentInterest(int studentId, String...
  3. PsychoNINJA

    Resolved issue with inserting data into database

    Hello csharpforums community, I have an issue that insert some data in MySQL Database by C# .NET Core 3.1 with MySql.Data.mysqlclient.dll and having these errors in console: Could not load file or assembly 'Renci.SshNet, Version=2016.1.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106'. The...
  4. MetaGota

    Winforms C# Read random line from Pastebin

    Hello, I'm trying to find a way to read a random line from a Pastebin WebClient WC = new WebClient(); List<string> TEST = new List<string>(); Random Rand = new Random(); StreamReader testReader = new StreamReader(WC.DownloadString("Pastebin"))...
  5. DrDress

    Question Threadpool

    I'm not sure about Threadpool. It says thar there are about 1000 available threads. But I once made a program where I put about 100 job in the queue. When I monitored the job it was clear that precisly 8 jobs whete beeing processed at a time. This is bad in my current project where I spawn...
  6. E

    Resolved What the following code does?

    Resolved
  7. PJ33

    how to read library documentation-Math.NET ?

    Hello I am new in C# and I try to understand on how to read the documentation of libraries and implement it. Here an example from https://numerics.mathdotnet.com/ is shown: using System; using MathNet.Numerics; using MathNet.Numerics.LinearAlgebra; class Program { static void...
  8. M

    How to Bind FontSize of a TextBlock from two different sources in WPF?

    Due to design purpose I use the fluid Layout which is mainly made by Grid.Row definition. I want to adjust my WPF application to run smoothly on every monitor that's why I use the DPI Decorator class. And this DPI Decorator is perfectly working that means the screen UI components are perfectly...
  9. C

    Question How to serialize to xml return type

    Hello Everyone, I have below models and i need the return xml response like below. Here how to do this. please help me public class School { public List<Student> StudentList; public int? SchoolID { get; set; } public int? SchoolName { get; set; } } public class...
  10. FyMa2618

    How to check for Keyboard Input.

    Good day, i develope a plugin whit C# and beepinex in Visual studio. And i am want to check if ... key is pressed, i searched allot about this theme but i found nothink what can i do? using UnityEngine; using System.Collections; using BepInEx; using HarmonyLib; namespace SetOwnValues {...
  11. Sriram Surampudi

    Question How to open popup window and redirect to another page

    I have a situation, when I click on a button, I need to open a URL in browser's pop-up window and then redirect the current page to another page using C#. But when I click on the button, I am not seeing the pop-up window but page is redirecting based on the condition. To open the popup window I...
  12. Siwar Ha

    uploading files to Google drive with windows service

    I m writhing a program that moves files from one place to another and if everything is fine a copy of those files are sent .zip to google drive . the code is working fine with console application : files are placed in the destination and uploaded to google drive . BUT when i run it as windows...
  13. Arad

    state.sb.Clear() malfunctions sometimes?

    I am just getting started with C# , i am experimenting with a socket server , socket server is receiving a string from a client application. this is the string that is being received by the server : This is the Code that is receiving the data from client : public static void...
  14. C

    Resolved HttpClient Response IsSuccessStatusCode firing twice?

    I have the following code and I cannot for the life of my answer why it is firing twice.... HttpClient httpClient = new HttpClient(); HttpRequestMessage request = new HttpRequestMessage(); request.RequestUri = new Uri(shortUrl); request.Method = HttpMethod.Get; request.Headers.Add("Key", api)...
  15. J

    Architecture question

    We have developed a system, written in c#: There are physical electronic controllers that have ethernet adapters. They communicate to the socket server over UDP which is writtren in c# (.net 4.8) as a dll with a winforms application on the front. There is a web based front end written in CoreASP...
  16. mrlowbot

    Beginner problems....

    Hey. I need some help when it comes to my code, its not meant to have a "main" method. It is basically a chess program that takes values and compares them, checks players and how much they score. This is what i need to do : We organize a chess tournament in the local club. The members are...
  17. matitdob

    C# EventLogSession Local Admin

    I have a problem how to use the code below for the admin of the local remote computer. Typing ".", "" Or "computer name" as domain doesn't help. The omission results in a syntax error. EventLogSession session = new EventLogSession( "ComputerName", // Remote Computer "Domain"...
  18. M

    I need help with executing second project

    Hello i need help, i am new with C# could someone help me with executing second project Console application after clicking on button without this full way C:\Users\sajmo\source\repos\VoidSharp\VoidSharp ? screenshot: Screenshot
  19. SaeedP

    why am I getting: "HTTP Error 500.30 error" when publishing the Blazor server-side site?

    Hello, I've made my web app on Blazor server-side and I'm trying to publish it on a windows server. I tried different methods to publish but all came to the same conclusion. HTTP Error 500.30 - ANCM In-Process Start Failure Why am I having this problem? You can see the result on...
  20. cpeye1987

    Sr Developer- C#, .NET, SQL, Java, Angular JS - REMOTE- 115K

    Sr Developer- C#, .NET, SQL, HTML, Java, Angular - REMOTE- 115K The Position: Developing software solutions by analyzing business needs by users and data. Primary responsibility is to develop tightly aligned business strategy and capabilities as it relates to architecting and building...
Back
Top Bottom