Questions tagged [.net]

Do NOT use for questions about .NET 5+ or .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
8 views

Unable to deploy .Net 6 code into K8s, pod status is CrashLoopBackOff note: this was a working code when it's .Net 5, migrating to .Net 6 it's not

Same code is working fine in Visual Studio 2022... But When I deploy in K8s pod it's crashing.. the same code was working still yesterday with .Net5.. once the dev team migrated the code into .Net 6 ...
user avatar
  • 34
0 votes
0 answers
15 views

Ho to unit test a static class which has methods to read different config values

public static class Settings { public static bool IsFlagEnabled() { bool isFlag; bool.TryParse(ConfigurationManager.AppSettings["isFlag"], out isFlag); return ...
user avatar
  • 23
0 votes
0 answers
10 views

Trying to verify a LDAP over SSL certificate, Server cannot be reached

I'm currently trying to connect to a LDAPS Server using the following VB.NET Code, which should set the right parameters and use the function seen below to verify the certificate when the Bind ...
user avatar
0 votes
0 answers
19 views

HttpClient after internet reconnected "The remote name could not be resolved"

Context I have a laptop in a corporate network using a proxy. When I use the HTTP client (.NET Framework 4.8) in an application it works fine. When I unplug internet, I get The remote name could not ...
user avatar
  • 226
0 votes
0 answers
8 views

.NET Core 3.1 windows service timeout on startup

We have a .NET Core 3.1 Windows Service that, sporadically, gets a timeout while starting. The service hits the 30 seconds windows service default timeout and doesn't start anymore but manually. This ...
user avatar
0 votes
0 answers
12 views

PBKDF2-HMAC-SHA256 .NET vs PHP

I have this code from out old system in .NET, and I need to rewrite in PHP. try { byte[] heslo = Encoding.UTF8.GetBytes(Pwd); byte[] salt = Encoding.UTF8.GetBytes(String.Format("source={0}&...
user avatar
0 votes
0 answers
20 views

C# temp tables use too much memory

I'm trying to convert some stored procedures to entity framework on .Net 6. var dailyList = cdrDailyXdslRepository.All().Where(x => x.TimeToDate.ToDateTime(102) >= startDate && ...
user avatar
0 votes
0 answers
14 views

Accessing the file stream column is too slow in SQL Server machine

I have two servers. One is an application server which is an ASP.NET application (DotNetNuke) and the second one is a database server. Both servers are on the same network. When I send a simple query ...
user avatar
  • 1
0 votes
0 answers
2 views

How upload webp image in dnn module settings filepicker?

Not able to upload webp files even though FileFilter="jpg,webp,svg,png,jpeg,gif" webp extension is included in filefilter, it gives error "file format is not supported"
user avatar
0 votes
0 answers
16 views

WCF Service not showing in Connected Services node in .NET6

I have a project that consumes a number of WCF services from an external solution. When the project was a .NET4.8 project, these WCF services would sit in the Connected Services node. However, since ...
user avatar
0 votes
0 answers
27 views

Connecting to localhost via local network (192.x.x.x) address but unable to send/receive data (.NET)

I'm trying to connect to my own machine via its interface address (e.g., 192.168.0.100). This is just to facilitate testing (the IP is discovered via SSDP). I'm using TcpListener and binding to ...
user avatar
  • 91
0 votes
0 answers
39 views

C# File.Move sometime creates an empty file without any IO exception

My code processes video files (.mp4 format) of less than 2 GB. After saving metadata I have to move it to another drive (a network location). This process works fine most of the time, but sometimes it ...
user avatar
-2 votes
0 answers
19 views

Recursive copy specific file in his subfolder VB.NET C# [duplicate]

hi hope you are doing well, I have a specific need I hope anyone will can help me. I need to copy files in his own subfolder named "backup" every first day of the month. My files are all ...
user avatar
0 votes
1 answer
25 views

.NET 6 asp-validation showing nothing after custom error created

I am intending to pass a custom error that is generated in the controller, the custom errors are working in other files but not in this one, can't find the reason. This is the line where I declare the ...
user avatar
  • 1
0 votes
0 answers
18 views

How to build a client with SOAP Message Security in WCF .NET Framework using RSA-SHA1?

I need to call an old IBM Websphere webservice, that requires transport and message security via a couple of certificates. I have it all working in SoapUI, which sends a SOAP message that signs the ...
user avatar
  • 428

15 30 50 per page
1
2 3 4 5
21367