An old ASP.NET WebForms app won't build due to missing references and related
I maintain an old ASP.NET WebForms application, written using VB.NET so long ago that no one knows who started this application. The guy who maintained it, before I was given it, left before I joined. He didn't put anything in any source control, and he…
CultureNotFoundException Querying SQL database using EF
Hello, I have a Web App (ASP.NET MVC) with controllers making CRUD operations using EF 6. Any operation involving the EF context to read data generates the following exception The Web App is localized in it-IT, setting up ThreadCulture and…
What NuGet package to I use for Microsoft.Office.Interop.Excel?
I maintain an old ASP.NET WebForms application, which is at .NET Framework level 4.5.2. The original developers incorporated an Excel report in this application. I'm trying to get the app to build using a GitHub Self-Hosted Runner running on one of our…
ViewModel Inheritance
Hi friends, I am trying to use inheritance in my ViewModel Class by adding the viewmodel EmployeeEditViewModel but I get a compilation error stating Class 'PayerEditViewModel' cannot have multiple base classes: 'ObservableObject' and…
how to set ssl need basic idea and step by step implementation
hello I have hosted my site in IIS and that system has static ip from internet provider for example 55.XXX.XXX.XX anywhere around the world if i enter this ip its working fine now client requirment is he want as website so what i did is i purchase one…
Compatibility of .NET Standard 2.0 library that uses StoreAPI and WPF .NET 8.0?
I am working with a .NET Standard 2.0 Library that we wrote and use both in a WPF + .NET Framework 4.8 windows application and in a UWP windows application. This .NET Standard 2.0 library has references to Microsoft.Windows.SDK.Contracts version…
ASP.NET - The specified network password is not correct - X509Certificate2
I have a .NET web application where trying to import the certificate using the "X509Certificate2". While importing, getting the "The specified network password is not correct.". The certificate is password protected .pfx file and I'm…
How to deploy Azure function (.net 8 isolated worker process) in aks cluster
I created a Service Bus trigger function with .Net 8 and the isolated worker model. It is running fine locally (on my Windows laptop) However when I deploy it to my AKS cluster the memory usage keeps on growing (starts around 140 MB and after some hours…
Custom Hybrid Connection Manager
Hi, I would like to know if we can have a custom hybrid connection manager in .net core code. I would like to connect to on-prem sql server from a cloud deployed .net solution. I am using Azure app service /Relay/Hybrid Connection for the same. I would…
.Net 8 - HttpClient - Kerberos Auth - Authentication validation failed with error - InvalidToken.
We have an existing C# application in firm in .Net 6. This app consumes rest api exposed by another system within the firm (sso / kerberos). Its a simple GET call with Http Client. We upgraded the solution to .Net 8 and started facing Authentication…
How to enable CSP in asp:UpdatePanel without having to write 'unsafe-inline'
I have an asp:UpdatePanel and asp:ScriptManager in my web form. When I enable CSP in the web.config as below, the functionality of the pages are not working like 'OnSelectedIndexChanged' event of asp:DropDownList and many more. <add…
Print Preview will not appear and no exception is thrown
Hello, We have an application that is using a winforms webbrowser control to display an html document. To show a print preview, we are using: SHDocVw.IWebBrowser2.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINTPREVIEW...) command where we are passing in a path to…
How do I change the embed media properties (size, text wrapping, border, and so on) in CKEditor 5 (checking for script tag)?
Hi! I have an implementation of CKEditor fields in my project in the form: DecoupledEditor .create( document.querySelector( '#editor' ), { extraPlugins: [ MyCustomUploadAdapterPlugin ], removePlugins: […
When will .NET 8 (Early Access) be available on Azure Government?
Currently .NET 8 (Early Access) is available on Azure Commercial. I like to know when will .NET 8 (Early Access) be available on Azure Government App Service?
Blazor Server Side AuthorizationHandler - PreLoad - HttpContext is Null
I have a Multi-Tenant Blazor Server Side application, that uses Pre-Load to use HttpContext in the Razor Pages. I am setting up Authentication and Authorization using Azure Entra. For Authorization I need to Authorize the user against the Tenant. The…
How do I draw anti-aliased text in a ListBox with DrawMode set to OwnerDrawFixed?
I have a ListBox on my form with its DrawMode property set to OwnerDrawFixed. How can I get the text I draw to be antialiased? I've already set the TextRenderingHint property of the Graphics object to AntiAliasGridFit but it's not drawn…
.Net Maui ViewModel and MVVM
Currently I have a shell application with a Tabbed Page with several Content Page Views. Instead of using one big Model (Populated with Data from a Database) in my ViewModel for all these Content Page Views, what is the best practice to separate…
Access network folder and files from .NET Core application in IIS
Greetings, I have an application deployed in IIS with .NET Core 7 and SQL Server, I want to access a network path, write and read files within a folder in the path (\path\folder) What steps should I follow to achieve this?
visual studio 2022 error mt1007 failed to launch application
I recently upgraded windows visual studio to 17.5.4 Windows Xamarin Forms to 5.0.0.2545 When I try to debug the Xamarin iOS application I get the following: error MT1007: Failed to launch the application…
Call the Microsoft GraphApi from the .net application and get the user details based on the email address
Hi, I have a below requirement. I need to call the microsoft GraphApi from the .net application and get the user details based on the email address he/she types in the textbox. In Azure portal - i have enabled (Any Microsoft Entra ID tenant -…