Questions tagged [c#]
C# is a programming language. Questions about programming are off topic. Please direct these questions to Stack Overflow.
339
questions
0
votes
0
answers
48
views
Always require user prompt: "PowerShellGet requires NuGet-anycpu.exe"
I'm trying to install this module "VPNCredentialsHelper", but I get the following prompt even if I use the "-force" flag:
C:\Windows\system32>powershell -command "Install-...
0
votes
1
answer
46
views
Word crashes after Office Update on May/June 2024 [closed]
Since the Word update to version 2405/2406 on May/June, we have different problems with Word.Interop.
We have a VSTO addin developed with c# to interoperate with Word, in which we use the Interop.Word....
0
votes
0
answers
12
views
Generating Color Shades based on contourLine elevation [migrated]
I am working on a program, that is able to generate landmasses and mountains with contour lines. I would like to distinguish each contour line with a separate shade of particular color, say:
Green 0-...
0
votes
0
answers
42
views
How do I prevent an extended frame when suspending and resuming an ffmpeg process?
I have a c# application where I have control of an ffmpeg (https://www.ffmpeg.org/) process. I am using it to capture video and audio, either from desktop or webcam. I am using code similar to the ...
0
votes
0
answers
56
views
WinSCP.SessionRemoteException: Server unexpectedly closed network connection || Timeout error
We have a functionality where files are transferring from server1 to SFTP server without any issue. It is using WinScp.exe utility to copy the files.
In other environment, when files are copied from ...
0
votes
0
answers
61
views
Upgrading SQL SERVER 2014 to 2022 using WIX installer
I am making a exe using Bootstrapper WIX installer for my application. I am trying to update the SQL Server 2014 to SQL Server 2022 using the exe itself.
Here is the scenario, currently the ...
0
votes
0
answers
95
views
Visual Studio 2022 how to add IConfiguration (appsettings.json) into IntelliSense for autocomplete
I'm looking to see if there's a way within Visual Studio 2022 to get IntelliSense to be able to access all of the options within my appsettings.json if the object type is an IConfiguration type.
I'm ...
0
votes
0
answers
48
views
Unable to accept android Licenses for debugging and compiling .NET MAUI
I have tried everything I could. Even the non-recomendable option of starting code as superuser and changing through chmod all the permissions at /opt/android-sdk folder. I also followed the ...
0
votes
0
answers
140
views
Block Excel new instance to merge with other Excel instance
By default, when we open 2 Excel files, the second one will merge the process with the first one:
excel.exe file1, excel.exe file2
We can use /x to open the second Excel file without merge:
excel.exe ...
0
votes
0
answers
53
views
Performance difference under Windows Server with two identical applications
I have two dedicated servers running Windows Server 2016. Both are for shared hosting of websites (developed in ASP NET MVC / Framework 4.8 and hosted via IIS). All the websites run correctly on the ...
0
votes
0
answers
47
views
Black screen with "System.String[]" and "OK" on Windows login
I've recently encountered a baffling phenomenon. From the Windows lock screen, pressing any key or mouse click normally brings up the password entry prompt. Instead, it shows a black screen with the ...
0
votes
0
answers
247
views
iperf3 design GUI
I am designing GUI for iperf3.exe. When I run iperf3.exe, the text box appears after it finishes the process. I want to read output while doing the process. I try async method and task but all the ...
0
votes
0
answers
81
views
Why can my computer still be able to ping other network card addresses except 127.0.0.1 when the network cable is unplugged?
my IP address = 192.168.1.1, and the sever ip address is 192.168.1.10. my question is After unplugging the end network cable, it can still be pinged. Only after the network config-uration is disabled, ...
0
votes
1
answer
757
views
How do you set the target and not the target path of a .lnk file programmatically with powershell or c++?
How do you set the target and NOT the targetPath of a .lnk file
?
I can't find any .dll I can use in powershell or c#.
Most people might try and tell to use wshshell to set the .targetpath of the .lnk ...
0
votes
0
answers
288
views
How to simulate printer with two trays in Windows
I am developing an application to print PDF files on two different types of paper, namely red and blue paper, using tray1 and tray2, respectively.
As I am still in the trial-and-error phase of ...