Questions tagged [.net]

Do NOT use for questions about .NET Core - use [.net-core] instead. The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR), Common Type System (commonly referred to as CTS) and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++/CLI.

0 votes
0 answers
9 views

condition statement in RDLC vb.net

I have a table like : ColumnA ColumnB 5.05 T 6 J 8.5 J I want to sum CoulmA data where columnB = T and show it in one of the RLDC textbox. I don't know what I should write in Expression Field. ...
user avatar
0 votes
0 answers
17 views

How can I read large (10MB) byte arrays with Entity Framework and PostgreSQL without using too much memory?

When my server application starts it reads about 20 records from my database (using Entity Framework with Npgsl to read from a PostgreSQL database). There is a couple bytea columns, one of them is ...
user avatar
  • 1,004
0 votes
0 answers
13 views

Cannot run React with ASP.Net

I decided to make a new ASP.Net with React as front-end, so I ran dotnet new react and npm install on the ClientApp folder, but when I build and run it, it gave me this error [HPM] Proxy created: /...
user avatar
0 votes
0 answers
7 views

How do you tell dot net Graph SDK to use a custom proxy?

I am having problems getting the dotnet graph sdk to use my proxy settings as expected. I have tried setting the proxy when initializing the HttpClient with the GraphClientFactory but still seem to ...
user avatar
0 votes
0 answers
16 views

ASP.NET web service 413 request entity too large error

I have an older ASP.NET API web service using .net 4.5.2 and I am posting an object that contains a base64 image to my controller without any problem. The issues come now when I try to post data with ...
user avatar
1 vote
0 answers
13 views

Mututal exclusivity in C#'s nullable flow analysis for properties

Is there any way to define properties to be mutually exclusive in terms of their nullability? Meaning, if property A is not null property B is and the other way around. I am thinking of something like ...
user avatar
1 vote
0 answers
34 views

Why override auto-implemented property throw StackOverFlow exception?

I have the following base class: AppBase.cs public abstract class AppBase<T> where T : AppBase<T> { private static T defaultCore; private static readonly object objLock = new ...
user avatar
-1 votes
0 answers
19 views

C# How to configure service to trim trailing zeroes from the result JSON

I have a service, which returns numbers with a floating point the following way: { "exampleNumber1": 15.1500, "exampleNumber2": 3000.0, } The desired response is the ...
user avatar
0 votes
0 answers
11 views

Unity container - how to get the instance of caller passed into the constructor?

If I remember correctly something similar is possible with Ninject so I was wondering how I could register a type so that it automatically gets the instance of the caller passed into the constructor. ...
user avatar
  • 323
0 votes
0 answers
10 views

SVN switch command to switch to build tag in Jenkins

My (powershell) build script currently: In my working folder, increments my version number, updates all the parts of the project to use the new version number, commits this back to the repository. ...
user avatar
0 votes
0 answers
10 views

Oracle Managed Data Access Core and .NET 4.6.2

I have a .NET Core component that uses Oracle.ManagedDataAccess.Core. I need to reference it on a .NET 4.6.2 project. But this project uses Oracle.ManagedDataAccess. When I run the solution, I get an ...
user avatar
1 vote
1 answer
35 views

Dependency Injection in library in .NET

Lets say I have a CustomClass class from a library that does somethings with a IWebHostEnvironment service. And I wish to create and use this library inside a PageModel like shown below: public class ...
user avatar
0 votes
0 answers
10 views

MediatR CreateStream | How to handle it in Angular app?

I just found out about new MediatR method called CreateStream. I'm wondering how can I handle some requests from Angular app. How should I do it so that it works properly?
user avatar
-3 votes
2 answers
44 views

How can I get the 1st of January and the 31st of December three years ago with VB.Net or C# [closed]

I need to automatically prefill two Datepickers in VB/Winforms in code that should have the 1st day of the year and the last day of the year as their values, but always 3 years ago. So for 2022 it ...
user avatar
  • 45
0 votes
0 answers
34 views

Grouping by two lists of an entity in LINQ

So I have an entity, with relation with other entities: Teacher and Student public class Lesson { public int Id { get; set; } public List<Teacher> Teachers { get; set; } public List&...
user avatar
  • 13

15 30 50 per page
1
2 3 4 5
21483