Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [c#]

C# is a programming language. Questions about programming are off topic. Please direct these questions to [Stack Overflow](http://stackoverflow.com/).

0
votes
0answers
7 views

Need to understand the Async and Await (c#) process with Multi threading and CPU Core level [on hold]

Want to understand the complete concept with proper flow of C# Async and await uses , and how that worked with Threads (Multi thread) , tasks and CPU Core level. Will Appreciate any good reference ...
0
votes
0answers
16 views

iTEXTSHARP XFAFlattener reference not found

I have downloaded and installed iTextSharp 5.3.2.0 & iTextSharp.XMLWorker 1.1.6.0 but can't resolve "XFAFlattener". Error 385 The type or namespace name 'XFAFlattener' could not be found (are ...
0
votes
0answers
16 views

C# how to know which project is using another project during runtime [migrated]

I have two projects (A and B) using a common shared project (C). In this shared project I need to know which project A or B is using C during runtime. I have tried to find out if the caller object ...
0
votes
0answers
33 views

I'm trying create new C# project in VSCODE

I'm trying to create new C# project in VSCODE and when i try to do "dotnet restore" it doens't work. error : Unable to load the service index for source this error keep showing up My error message ...
0
votes
0answers
5 views

How to download excel file using the windows application [migrated]

I have master excel file with predefined template which will keep in project folder. Now I need to download the file using the Windows application or WPF. I have tried with following code but it did'...
0
votes
0answers
4 views

C# WPF capture image on external USB Camera button [migrated]

I have a USB Camera, MotuhWatch you can see it here The device has a button on it to capture an Image. I'm working on a C# WPF application to show and save the captured image. I'm successful to ...
1
vote
0answers
18 views

C# Tabdelimited text File with multiple column to datatable [closed]

I am trying to convert my text file having TabDelimited data to Datatable, Text file data shown below: Row1Col1 Row1Col2 Row1Col3 Row1Col4_0          &...
0
votes
0answers
20 views

Is it possible to define Excel template regions in XML so that I can fill them in programmatically?

I am trying to use C# and XML so that I can transfer data between multiple workbooks. These are very large workbooks with lots of calculations and their formatting is dramatically different from one ...
0
votes
1answer
23 views

How determine that app start as Linux daemon

I have console app that would start as console and as Linux daemon. How can I determine that app started as Linux daemon (not console)?
0
votes
0answers
11 views

Export attached(type) files from MS Access to SQL

I want to export database from MS Access database to SQL server. The problem is that when it comes to attached files than sql doesn't recognize it, because there is no such type of data in SQL. I ...
-1
votes
1answer
2k views

What's behind HEUR/AGEN.1023813

Currently, I am messing around with Avira, Kaspersky & co. and C# Malware. My program is getting detected by Avira with the signature "HEUR/AGEN.1023813". What does this signature mean? (What ...
-1
votes
3answers
61 views

Can a freely available add-in to a proprietary softare be considered open source? [closed]

In a paper that I read recently, the authors promote their software as open source because it was released on GitHub under the Apache License 2.0. However, the software is an add-in to a proprietary (...
1
vote
0answers
51 views

script to enable ICS service

I try to build script to select private network and enable part of ICS services. I select the private network with these code: { # Constants $public = 0 $private = 1 Write-Host "Creating netshare ...
0
votes
0answers
87 views

How disable keyinput for ffplay/ffmpeg?

Code for open & play custom video (.mp4) file in new window without form border with audio using ffplay.exe set SDL_AUDIODRIVER=directsound ffplay -noborder -autoexit -i movie.mp4 This code ...
0
votes
1answer
46 views

Windows to Wine | Getting “could not load file or assembly [etc]” exception

This case involves writing a program that will eventually use Mono, but until then is using Wine as a substitute. Currently, there is a problem with a particular reference: Could not load file or ...
0
votes
0answers
57 views

Let IIS AppPool shut down computer from web

I am trying to let the local computer be shut down through the web service hosted by IIS. I have an IIS AppPool called "Foobar", so its full string would be "IIS AppPool\Foobar". This Application ...
0
votes
0answers
186 views

Changing “Advanced sharing settings” in Windows Control Panel

In my Windows 10 Control Panel I have the following settings in the "Advanced sharing settings" section of the "Network and Sharing Center": Media streaming - Turned on media streaming Password ...
0
votes
2answers
117 views

Access Denied to Folder

I have had this problem before, but I can always fix it by going to the security tab, in properties, then Advanced, then eventually add Admin to the access permission list. But in this case, I ...
2
votes
1answer
286 views

Google Chrome 64 / 67 different behavior for HTTP2

We are using WebAPI with angularJS in our application. With Chrome version 64 we can see H2/ HTTP2 protocol used, but after update i.e. Chrome 67, we can now see SPDY. What will be the reason for this ...
0
votes
0answers
36 views

Grouping .aspx and .aspc.cs files when adding external files to a Visual Studio project

I added two files to an existing Visual Studio project: AllocationType.aspx AllocationType.aspx.cs The .aspx file designates the .cs file as the CodeBehind with this line: <%@ Page Title="" ...
0
votes
1answer
69 views

Pass cmd argument to running process when shutting down windows service

I am creating a windowservice that starts a process where I pass multiple cmd arguments in the StartInfo.Arguments. That works fine as expected. The problem is that when i stop the windowsservice, I ...
0
votes
0answers
75 views

.NET Framework programs throws error 0xc000007b [duplicate]

When I run any .NET based program it throws the error 0xc000007b: Things that I've tried Formatting & Reinstalling: Works but after a short time period it occurs again. Other Windows ...
0
votes
1answer
35 views

VisualStudio 2017: Find where a code snippet is coming from

I have a few extensions, and seems like one of them introduced a code snippet that is really annoying. I use prop for making properties a lot, but now it also suggests this public readobly object p; ...
-1
votes
1answer
37 views

Connect to a webservice hosted on a server connected to VPN from the internet

I'm currently working on a project (developed with C#) where it's necessary to access a website via VPN to access this website's data services. We host this application on a server which connect's via ...
1
vote
1answer
34 views

Can .NET memory leak cause port exhaustion?

Our web server has been having an issue due to port exhaustion. This happens every 2 weeks and a reboot fixes the issue. But I want to get to the bottom of this issue and find a permanent fix to avoid ...
0
votes
1answer
447 views

How to turn off folder write protection? It turns on automatically after disabling [duplicate]

I have a huge problem! Last week, i performed the newest Windows 10 update. Since then, on each folder im creating or each folder already created, the checkbox on the folder properties "Write ...
0
votes
1answer
289 views

wsdl : The term 'wsdl' is not recognized as the name of a cmdlet

How to use the wsdl command from Windows 10? PS C:\Users\thufir> PS C:\Users\thufir> wsdl http://holidaywebservice.com/HolidayService_v2/HolidayService2.asmx wsdl : The term 'wsdl' is not ...
0
votes
0answers
136 views

How to divide into x parts a video with FFmpeg

I would like to combine several objects (video, image, gif,) in a single video file as in some images below. Is it possible with FFmpeg?. Thanks to your answer https://askubuntu.com/questions/894615/...
0
votes
0answers
13 views

Publishing Web Service returns Unable to build data connection: No route to host (425)

I wrote my Web Service and now want to host it on my Ubuntu 16.04 WebServer. But at some time I get Unable to build data connection: No route to host (425) Error. How can I fix this problem? If I ...
1
vote
0answers
156 views

How can we check the installed sanner driver is 32bit or 64bit on Windows 10?

How can we check the installed scanner driver is 32bit or 64bit on Windows 10 Professional (64 bit)? There are 3 scanners attached with my PC. If I run TWAIN Twacker (32 bit) tool. then all 3 ...
1
vote
1answer
214 views

InstallAnywhere issue: This application has unexpectely quit

I have downloaded IBM Client SDK 4.10 FC5DE for Windows x64. When I proceed to install it, InstallAnyWhere popups saying "Preparing installation files...". When it reaches to 100% below error is shown ...
2
votes
2answers
726 views

Stop Visual Studio text editor from auto moving comment lines

Is there a way to stop Visual Studio text editor (2015 or 2017) from auto moving the comment lines when pressing Ctrl+K,D or relevant key stroke (Ctrl+E,D - format entire document) ? I would like my ...
1
vote
0answers
425 views

How capture video from webcam to binary output stream using ffmpeg

I need capture video from webcam to binary output stream. I found an example how we can do this for 'region of the display' here and here -loglevel panic -hide_banner -y -f gdigrab -draw_mouse 1 -i ...
0
votes
1answer
24 views

MQTT Publish error on different platforms

I have MQTT broker (mosquitto) running on raspberry pi which has a static IP address. When I run the Python script to publish message from another raspberry pi from ouside ,it works. But if I run the ...
0
votes
1answer
29 views

How to give custom name to executable file formed by compiling CSharp code at command Prompt?

I am using Windows 10 and Visual Studio 2017. I have created a project HelloCSharp. My project location is: C:\Users\Sonevol\source\repos\HelloCSharp I go to HelloCSharp folder in which I have ...
0
votes
1answer
66 views

How do you verbally distinguish between a single directory in a path and the full path?

This is a terminology question. Say you have a path like C:\foo\bar\MyFolder\ foo, bar, and MyFolder are all individual directories, also known as folders, right? And they're arranged in a ...
-2
votes
1answer
117 views

Why Doesnt CreateUserWizard Control automatically adds the ASPNETDB.MDF database? Visual Studio

Hello I am making a webiste in asp.net in visual studio 2017 community With .NET Framework 3.5 But i have a problem When i add Create User Wizard ASPNETDB.MDF database is not created in App_Data ...
0
votes
1answer
777 views

Newtonsoft could not be found - Building a project using MSBuild tools 2017

I'm trying to build a project using MSBuild tools 2017 since I don't have a VS installed in my PC. The problem is that there's an error whenever I try to build it, which is: "The type or namespace ...
1
vote
0answers
416 views

Is this process really unkillable? [closed]

I just run across some C# code recently that claimed to make a process "unclosable". My first thought was, impossible, just run taskmgr as admin and end it. On further inspection though, I noticed ...
1
vote
0answers
215 views

.NET c# service running as LocalSystem alters ProxyServer in registry, but browser's won't notice until (re)start

I have a .NET c# service running as LocalSystem on Windows10 64bit. It's job is to alter the "ProxyEnable" and "ProxyServer" values located under HKEY_CURRENT_USER\Software\Microsoft\Windows\...
-1
votes
1answer
219 views

Installation of the Synaptics SDK

So, I saw this question on using the Synaptics SDK, but the SDK seems to have disappeared off the face of the earth, and there is barley any info about the SDK still available. Here is a link of where ...
0
votes
1answer
75 views

How to Cut a video file and simultaneously convert it in to .mp4 format output using FFmpeg

Here is the command to cut video file ffmpeg.exe -i inputvideo.avi -ss 0 -t 10 outputvideo.avi but i want to convert it from inputvideo.avi to outputvideo.mp4 format simultaneously Thanks in ...
4
votes
0answers
644 views

gpg: xxxx: skipped: public key not found

I'm getting this error: gpg: xxxx: skipped: public key not found gpg: [stdin]: encryption failed: public key not found I'm using this code: IEncryptionService encryptionService = new ...
1
vote
1answer
347 views

Win10 Boot Time/Duration via Event Viewer

I am trying to get the "Boot Duration" of a win10 machine. I have tried to serach it in the registry and did not find it. I searched a lot in the internet but did not find a solution. The only time I ...
1
vote
1answer
619 views

Getting PID of process from bash shell command invoked from MONO C# app

I have following linux terminal command: ps -aef | grep -v grep | grep 'TestService.exe' | awk '{print $2}' which works fine from Linux terminal and retreives PID of wanted process, for example, ...
2
votes
0answers
2k views

Project <name> could not be opened because the Visual C# 2015 compiler could not be created

Problem I've got a new machine and installed Visual Studio 2015 Enterprise. However, when I go to create a new C# Windows Forms project, I get this error: What I've Tried Add/Remove Programs - ...
1
vote
1answer
69 views

What happens if I create a process that already exists in the task manager?

I am developing an application in C # with the assembly name of one of the windows processes like svchost.exe, taskmgr.exe, winlogon.exe, etc. And I would like to know if this could cause some ...
0
votes
2answers
84 views

Zero Pad an integer array when printed to textbox

I have an array of Integers however want to print them to a textbox within my form application so that they all look the same in length and it looks neat. How would i go about zero-padding the 100 ...
3
votes
2answers
14k views

How to show currently mapped drives in PowerShell?

Need a PowerShell command to display drive letter and path it is mapped to. In other words a command that shows me the same thing Windows Explorer would. Tried this: Get-WmiObject -Class ...
0
votes
0answers
59 views

Running C#-project from commandline

I'm trying to run an ASP.NET framework from the command line on my local machine using the dotnet command. According to the internet, dotnet restore requires a project.json file. When I google how to ...