Questions tagged [c#]

0 votes
0 replies
RijndaelManaged decrypt encrypted with 8 bytes key
I have the next code that perfectly works encrypting and decrypting in net framework even with a invalid key for RijndaelManaged, but now in the...
asked 4 months ago
0 votes
0 replies
Call to WCF WebService works locally but not from Azure App Service
I have a WCF WebService (.NET 4.0) that is accessible through a public IP address. I have a C# MVC project running (.NET 4.7.2) that I host in Az...
asked 4 months ago
-3 votes
0 replies
How can I bind double-click on item ListView (mvvm, no code behind)? [closed]
I have following code: <GridView> <GridViewColumn DisplayMemberBinding="{Binding Author, Mode=TwoWay}"...
asked 4 months ago
-1 votes
0 replies
Windows-Based Client that will take data from another Windows Program [closed]
We would like to create a new software client that will run on a Windows environment that will listen to another, separate software system's inpu...
asked 4 months ago
-2 votes
0 replies
What is the most correct way to fully adapt this code to the MVVM pattern?
I have a DataGrid with a DataGridComboBoxColumn. Each ComboBox should have the same drop-down: the new values entered in the ComboBox (the ComboB...
asked 4 months ago
0 votes
1 replies
Generic way to access class properties
I have been trying to read the value from the excel sheet, map it into a dataTable and then map the value to its class in C# using reflection. Th...
asked 4 months ago
2 votes
2 replies
Linq GroupBy Clause not including items with zero count
I have a query below which is supposed to group the result by Id, EntityName, DocType, Jurisdiction. For each group the query also returns the Pr...
asked 4 months ago
-1 votes
1 replies
DateTime compare (between) Date with day month year hours minutes and seconds [duplicate]
This question already has an answer here: How to know if a DateTime is between a DateRange in C#...
asked 4 months ago
0 votes
0 replies
EntityFramework context doesn't retrieve any data when created in a different project
Fellow coders, I am facing a weird issue using Entity Framework and I would like to understand what the root cause of this : I have a shared...
asked 4 months ago
0 votes
1 replies
How can I “expand” IQueryable results based on a range of values?
I am trying to determine a way using Linq within the IQueryable, to "expand" an entity into multiple query results based on a range of values. S...
0 votes
1 replies
How to actually map Model object into a ViewModel object using AutoMapper in ASP.Net core 2?
On my ASP.NET classes I've been told to develop a simple app reading data from .csv file and then displaying them in a view. I have a Model to wh...
asked 4 months ago
0 votes
1 replies
Possible to call action method (from action method) and let ASP.Net Core inject [FromQuery] params?
I have a route /my/route?t=something&... which is handled by an action method which then switches on t and calls an appropriate subroutine to...
asked 4 months ago
0 votes
0 replies
Are mouse coordinates different on mobile and desktop? [closed]
I've built a teleport system for my web3d environment, where you click with the mouse on the ground where you want to go and it will transform yo...
asked 4 months ago
0 votes
2 replies
How to determine the highest value in a list of properties
I have a class such as this: class MyClass { public int Value1 {get; set;} public int Value2 {get; set;} public int Value3 {get; set...
c#
asked 4 months ago
0 votes
2 replies
Why does it not print the last Regex group in C# [duplicate]
This question already has an answer here: What do 'lazy' and 'greedy' mean in the context of regular expressions?...
asked 4 months ago
0 votes
0 replies
HTTP 500.19 – configuration data is invalid
I created web service application on .net Core 2.2, it works fine on VS IIS Express, but windows server 2012 IIS 8 it throwing error : The reque...
asked 4 months ago
1 votes
1 replies
How can I maintain a Xamarin Forms control's aspect ratio in a StackLayout
I have a SkiaSharp view which is embedded in a Xamarin.Forms app. The SkiaSharp view needs to be drawn at a particular aspect ratio. The view's w...
asked 4 months ago
0 votes
1 replies
Importing a class from a c# dll into a c++ app
I need to import a dll made in c# from c++ All the examples I found import a single function from a dll, but as far as I know, you cannot export...
asked 4 months ago
1 votes
0 replies
RabbitMQ - Is there a test ack system to cope with a redelivery?
In RabbitMQ, when setup with acks enabled... If a consumer fails its heartbeat and rabbit re-queues a piece of work that the consumer already h...
asked 4 months ago
0 votes
0 replies
What about the audio quality recorded by WASAPI loopback between NAudio and CSCore?
I tested CSCore(v1.2.1.2) sample Recorder and NAudio(1.9.0.0) demo WAV Recording, all using WASAPI Loopback to record the same output device and...
asked 4 months ago
0 votes
0 replies
Why am I getting Object reference not set to an instance of an object error? [duplicate]
I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object. Wh...
asked 4 months ago
1 votes
2 replies
Call a method after ThreadPool.QueueUserWorkItem finished
I'm working on a console application written in c# The purpose of this app is to go through all drives and files and do something on them. But g...
0 votes
0 replies
How to add table from data base to current MVC 5 context
I'm setting up a new server with MVC 5.2.4.0 in ASP.NET. I the database on a SQL server in a virtual machine and with the initial ASPNET tables f...
asked 4 months ago
-1 votes
1 replies
How to get element id from xml url string
I need to import some xml data into my application but i cant find out how to get the element attribute from the product element. i havent reall...
asked 4 months ago
1 votes
2 replies
How to access nested namespaces to avoid the need to fully qualify in .NET
I feel like I'm missing something obvious here, but this issue has dogged me for some time. I define some classes in a couple of different neste...
asked 4 months ago