Questions tagged [c#]

C# is a programming language. Questions about programming are off topic. Please direct these questions to Stack Overflow.

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

C# APP running in the background (locked screen)? how to?

Microsoft Groove Music keeps playing after sleep event and after pushing the power button while the screen is locked (sleep mode or some variation of it). I want to achieve the same. I'm coding my own ...
0
votes
0answers
8 views

C# Listbox convert text to hyperlink [migrated]

I had a form that allow user to input the Name and perform search on various defined folders and display searched files (full path) in listbox. Now I want to covert the "Full Path" string ...
-1
votes
0answers
19 views

How to have my Visual Studio running without debugging program keep expanding RAM usage till RAM is full and even then use SSD as “RAM”? [migrated]

I got an "Out of memory exception" and my 32 GB RAM isn't even full, it's downloading pictures, I want it to keep downloading and expanding RAM usage at night and even use the SSD as ...
-4
votes
0answers
31 views

How to check if one or more pictures in a folder of a million pictures isn't downloaded completely and is missing? [closed]

I'm downloading a million pictures and they're in async tasks, how do I make sure maybe in C# or a certain software or a Windows trick that tells me about pics that haven't been downloaded completely ...
0
votes
0answers
14 views

I want to concatenate mp3 files with ffmpeg.each sound started after 5 sec of its previous sound

when i add 15 to 20 sounds I only hear the ending sound not starting sound .it seems like volume mutes for the started sound.can anyone help? I am using this command: $"ffmpeg -i s1.mp3 -i s2.mp3 ...
0
votes
0answers
12 views

How can openVPN create a phantom connection on Windows?

I've written a program that detects whether a specific domain controller is visible to a client machine (currently by validating a credential for an account that has no access), and start openVPN when ...
2
votes
1answer
104 views

Net User information VS Get-ADUser

Very generic question regarding different output for Net User, and Get-ADUser. What is really going on "under the hood" when I run each command? I bring this up only due to getting different ...
0
votes
0answers
9 views

Auto complete account settings in outlook

I'm looking for app or build one that when the person execute it, it should look for (Outlook) and update the email account details or make a new one if it doesn't exist I'm looking for that because I'...
0
votes
0answers
18 views

How do I run a custom EXE in the foreground with icon in on Windows 10?

a company I work for has a custom EXE file they use for invoicing and database stuff, and was built using Visual Basic about 8 years ago! Unfortunately since moving to Windows 10 (I believe, it was ...
0
votes
0answers
18 views

Application crashes with error could not create ssl/tls secure channel

I contacted the customer care and this is what they have to say - kindly make sure that the SSL certificate used for the SMTP service offered by the Microsoft Exchange Server is not expired and the ...
0
votes
1answer
17 views

C# Math.POW and Manually calculating are coming out with completely different answers… Can anyone tell me why? [closed]

Forgive me if this is already on here somewhere but I couldn't find it. SO, I am doing a simple calculation. double radius = 2.50; //double pi = Math.PI; //double areaOfCircle; double radSquared = ...
0
votes
1answer
44 views

Attack on a Linux file server | What is the damage of this file contents?

TCP Networking This file was uploaded using a loophole in a file uploading network program I was writing. The ability to access the server itself was too simple and the techniques I used resulted in ...
0
votes
0answers
208 views

How to pipe output from ffmpeg and read the stream and decode to BitmapImage in WPF?

I use ffmpeg 4.3.1 x64 to get a frame image at position 00:00:00 from a video file "A.mkv". I want to pipe the output to stream so that i can decode that stream to BitmapImage and display in ...
0
votes
4answers
316 views

developing a CLI C# application without installing 16GB of Visual Studio?

I'm trying to develop a simple C# to test some interoperability stuff and to that end I'm trying to install Visual Studio Community 2019. To that end the only two options I have selected are as ...
0
votes
0answers
21 views

Purpose of autogenerated files in .NET Core Console application template?

Visual Studio is somewhat new to me, but I have a basic idea of what the .sln and .csproj files are for, but I would like to have some general idea of the function and importance of these other files. ...
1
vote
1answer
11k views

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required

I'm attempting to send email using G Suite's SMTP relay service. Using C#, my code snippet looks like this: string message = "<em>It's great to use HTML in mail!!</em>" var ...
0
votes
1answer
244 views

System.UnauthorizedAccessException with VSCode 1.48.1 and C# exception

Running the latest Visual Studio Code (v1.48.1 at the time of posting this) with C# Extension, I'm seeing this errors: Razor.VSCode version 6.0.0-alpha.1.20418.9 ... [Error - 4:20:16 PM] Server ...
0
votes
0answers
57 views

Visual Studio NuGet Package Manager on Mac doesn't work

I am new to Visual Studio and ASP.Net Core C#. I am running on macOS, which has been a bit tedious using visual studio. I have downloaded all the programs i need to start learning, however the NuGet ...
3
votes
1answer
1k views

Better Windows mouse sensitivity multiplier control?

(I know this question has been posted before; I reposted a more detailed explanation on the situation because the previous question isn't answered and has over 6k views.) The mouse speed Windows ...
0
votes
0answers
28 views

Sandboxing a program under windows

I was searching on internet for an easy way of sandboxing an application under windows. Apparently there isn't an easy way of doing it in a comnplete way. I did find an application on github that does ...
1
vote
1answer
118 views

Ctrl + V paste UTF-8 string from Clipboard to MS WORD result in ??? characters

I've develop application on Windows form [C#], then copy text using System.Windows.Form.Clipboard.SetText("โปรแกรม Microsoft Word ใช้งานได้"); After sending keybd_event "Ctrl+V" [...
1
vote
1answer
334 views

Error “The User Profile Service service failed the sign-in. User profile cannot be loaded”

I have a trouble when run win 10 "The User Profile Service service failed the sign-in. User profile cannot be loaded" I tried the way, but not working And now, My PC just working in command promt ...
0
votes
1answer
351 views

What is the OpenSSL equivalent of this given C# hashing code?

I've got C# server code which verifies a hash using the following logic. I have no control over the server code and cannot change it. string key = "xZBn34L4myg[...]cebvr7A=="; var hmacSha256 = new ...
0
votes
1answer
879 views

How to install .Net v4x framework in Windows 10 when v4 installation is blocked?

OS: Windows 10 64 bit 10.0 Build 18363 After recent windows update .NET v4 frame work using software's stopped working. While trying to install the v4.8 or 4.7.2 .NET framework Getting the message ...
1
vote
1answer
391 views

How to uninstall/install the nic card, network properties protocol using powershell command or windows command line?

I need to uninstall/install the protocol list in the nic card network properties list through command or code. I tried the below command it's list the network properties list only. Get-...
-1
votes
1answer
223 views

Allow only two instances of a character using RegEx

I am new to using regular expressions and I am trying to figure out something that would seem to be pretty easy. I would like to identify if a character exists only twice within a string. The ...
2
votes
0answers
300 views

update assembly version on git commit in Visual Studio

I am facing a nightmate of keeping track of not one, but 5 applications that regularly update and work together in tandem. On each update, I must manually update AssemblyInfo.cs file with ...
1
vote
1answer
333 views

Udp packages bigger than 1472 are not being received

I have a c# client app. It sends data to my server using UDP. However, this stops working after I upgrade to Windows 2019 Server. the reason it stopped working is contained in this link: https://...
2
votes
0answers
616 views

Disable playback/recording device programmatically (cmd, c#) Windows

I am trying to disable the microphone from cmd or c#. I tried to use devcon.exe, but it disables the device in Device Manager but not in the sound properties. I tried to write to the registry: reg ...
1
vote
0answers
44 views

Jenkins with .net core, angular 8 and postgre

My question is related with automation. In our project we are using BackEnd- .Net Core 2.2 (right now in localhost but will be dockerize) FrontEnd- Angular 8 (right now in localhost but will be ...
1
vote
0answers
224 views

Omnisharp not working on Manjaro Linux

today I've installed .NET Core 3.0 on my newly setup Manjaro system but I get an error everytime I want to open a Project with VS Code. The following is the output of "dotnet --info": .NET Core SDK ...
-1
votes
1answer
35 views

My exe file is autoclosing after start

I wrote application in c# and when I try to open it on VM (vmware 15.1) in task manager i can see that it starts, then changes status to stopped and then autoclosed. I need to add that when I try to ...
3
votes
2answers
3k views

Edit and continue not working for asp.net core 3.0 with VS 2019 (C#)

I have VS 2017 latest Community edition installed on my machine. I was able to edit any class file and razor pages (cshtml) of my ASP.Net Core web application while debugging. I installed VS 2019 ...
0
votes
0answers
21 views

Visual Studio 2019 show errors on source files which are building properly

I have Visual Studio 2019 Installed and I noticed that I receive build errors in csx files are opened. However the solution does build successfully but when I got to the file I see a lot of red lines. ...
1
vote
1answer
64 views

Open a spreadsheet with broken formulas

I am using code the generate a spreadsheet, including a formula for a cell on certain rows. When I do this, there is something wrong with the formula, and when I try and open the spreadsheet, Excel ...
0
votes
1answer
163 views

CS-Script for SublimeText not working (C# Intellisense)

I'd like to use C# Intellisense for SublimeText 3 (OS X). I need it to develop games with Unity3D. So I installed OmniSharp and CS-Script for it. OmniSharp works so far but CS-Script doesn't. When I ...
1
vote
0answers
144 views

Visual Studio Code not opening c# files

In Windows, if I double-click a C# cs file, or select "Open With Code" from the context menu, the file isn't opened in VS Code, even though it immediately appears in the "Recently Opened Files" list ...
1
vote
0answers
273 views

What is C# RSACryptoServiceProvider doing under the hood when Encrypting using RSA?

When I drill down into the .Net source code I cannot find the code that actually runs when rsa.Encrypt is called, maybe it's running code within a DLL because I cannot find where the method is ...
1
vote
0answers
228 views

Building managed Assembly-CSharp dlls for standalone build without Unity Editor

I have a working Unity-made linux standalone build I created. In this build, there is a folder of Managed code where the dlls are stored. Two of the dlls are the Assembly-CSharp.dll and Assembly-...
0
votes
1answer
379 views

Visual Studio Community does not recognise double type

using System; namespace Excellent_Result { class Program { static void Main(string[] args) { double grade = double.Parse(Console.ReadLine()); if (...
0
votes
1answer
84 views

Randomly Failing Azure SignalR Auction Hub Method

Thank you ahead of time. I can't figure this out. It worked 100% of the time with the local signalr but if I use the Azure Signalr service it randomly has an error like this: Error: There was an error ...
0
votes
0answers
120 views

Different behavior of C# WPF DataGrid on different computers

I have a problem troubleshooting what's wrong with software I've been working on. This is my company's code so I can go into details (pasting code and so on). Anyway - I have a piece of C# & ...
0
votes
1answer
5k views

Vscode … Unable to generate assets to build and debug. OmniSharp server is not running

I have a problem and searched over the internet and tried their solutions but nothing happend. When i try to debug my code in VSCode , nothing happens. I found in Debug menu there is no configuration ...
0
votes
1answer
20 views

Restrict IE from asking save dialogue pop up and it should save automatically in selenium c#

Have added image for referenceAm automating a functionality where on button click the IE download the file with a dialogue box pop with save /open and cancel instead i want to download the file ...
0
votes
0answers
122 views

OnBase Unity Editor and Visual Stuidio

I started a new job which requires me to write some c# scripts for OnBase. OnBase is an enterprise document management tool. OnBase has a development tool called OnBase Studio which is utilized to ...
1
vote
2answers
3k views

Step Back to previous line in visual studio code

Is there any way to step back to previous line in Visual Studio Code while debugging c# , just like drag to previous code or any line in visual studio 17 or 19 in windows?
0
votes
1answer
103 views

Visual Studio 2017&2019 > User Control + Started Timer = Crash :|

When I add a Timer to User Control with Visual Studio 2017 Or 2019 and Start() it the Visual studio Crash when add the User Control contains a Working Timer to a Form.
0
votes
0answers
83 views

C# app corrupts cortana and other windows apps

I wrote an update for one of my C# apps, basic bug fixing stuff like Empty-Checks for textboxes and UI make up, no new features, same external DLL versions. While testing it on my VM's I noticed ...
0
votes
1answer
299 views

System.Configuration.ConfigurationErrorsException on WinForm

I'm getting a 'ConnectionString' threw an exception of type 'System.Configuration.ConfigurationErrorsException' each time I try to run my WinForm. Any idea how to solve It? This is my C# code:...
0
votes
1answer
75 views

SSH key authentication fails because SSH key is changed

Every day every 30 min our WinSCP application run in the server. But suddenly our SSH key is changed – how is it possible?

1
2 3 4 5
7