24,040 questions with .NET-related tags

Sort by: Updated
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,405 questions
asked 2024-05-08T14:30:44.39+00:00
Preeti Gupta 0 Reputation points
0 answers

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: […

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,200 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
878 questions
asked 2024-05-08T13:14:56.79+00:00
Volk Volk 571 Reputation points
edited the question 2024-05-08T14:14:25.5566667+00:00
Volk Volk 571 Reputation points
4 answers

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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,405 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,200 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,934 questions
asked 2023-12-07T00:52:36.1866667+00:00
Arman Ghazanchyan (Contractor) 10 Reputation points
commented 2024-05-08T14:01:21.8633333+00:00
adam robin 0 Reputation points
0 answers

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,401 questions
asked 2024-05-08T13:56:02.2933333+00:00
Tom McCartan 5 Reputation points
2 answers

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2024-05-01T18:51:36.1366667+00:00
DaveF 21 Reputation points
answered 2024-05-08T13:39:55.13+00:00
KOZ6.0 4,895 Reputation points
1 answer One of the answers was accepted by the question author.

.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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,911 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,293 questions
asked 2024-05-07T20:27:49.38+00:00
Tom Meier 80 Reputation points
accepted 2024-05-08T13:39:54.4066667+00:00
Tom Meier 80 Reputation points
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,405 questions
asked 2024-05-08T12:39:26.9366667+00:00
Lpatz-4663 20 Reputation points
0 answers

.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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,405 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,293 questions
asked 2024-05-08T12:17:33.0066667+00:00
Goutham Anandhan 0 Reputation points
2 answers

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?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,200 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,778 questions
asked 2024-05-07T17:35:39.8066667+00:00
Juan A. Reyes Paulino 20 Reputation points
answered 2024-05-08T11:56:12.4833333+00:00
Juan A. Reyes Paulino 20 Reputation points
0 answers

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
943 questions
asked 2023-04-18T19:51:51.3333333+00:00
Seth Isaacks 46 Reputation points
commented 2024-05-08T11:42:52.1466667+00:00
MartinMilan 0 Reputation points
0 answers

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 -…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
asked 2024-05-08T11:14:49.2033333+00:00
pk 5 Reputation points
0 answers

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…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
asked 2024-05-08T10:52:46.27+00:00
RAVI 916 Reputation points
0 answers

Unable to bypass the certificate validation when trying to access APIs from a web application which has its own certification

Unable to bypass the certificate validation when trying to access APIs from a web application which has its own certification Hi All, I m facing issue when I m trying to access a Service management API to create/ fetch a ticket through my web application…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
301 questions
asked 2024-05-07T14:02:15.3033333+00:00
nitar_prof 0 Reputation points
commented 2024-05-08T10:13:04.9466667+00:00
AgaveJoe 26,141 Reputation points
0 answers

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
asked 2024-05-06T10:18:01.0933333+00:00
Setteidea SRL 0 Reputation points
commented 2024-05-08T10:01:00.75+00:00
Setteidea SRL 0 Reputation points
1 answer

How to get the index of duplicate elements along with the range of empty elements after it. LINQ

hi Dim ComplexArray As String() = Split("A C A B C A B A B C") 'Need Result As Array (3 dimensional) Dim Arr3D = {({"A", ({"0-2", "5-9", "16-16", "19-20"})}),…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,632 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,581 questions
asked 2024-05-04T15:38:26.2533333+00:00
Mansour_Dalir 1,591 Reputation points
edited a comment 2024-05-08T09:37:41.9866667+00:00
Mansour_Dalir 1,591 Reputation points
1 answer

How to update/save a file in a database in web application

i have a code error and i wish i can get it fix by your noble helps or interventions here is a code block that updates a new product on a product page in a web application this is the code behing the productController.cs file for the cshtml file…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
asked 2024-05-07T15:39:22.68+00:00
KwebenaAcquah-9104 306 Reputation points
edited a comment 2024-05-08T09:18:03.78+00:00
Lan Huang-MSFT 25,871 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Jquery DataTable not working after appending the html code to DataTable using jQuery

I have created a datatable and appending the data to that datatable body , data appending successfully but the datatable not working properly ex:- If I click on the datatable header columns the entire table data is erasing. Here is my full logic…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
878 questions
asked 2024-05-06T13:26:54.2166667+00:00
Ashok Kumar 161 Reputation points
accepted 2024-05-08T08:29:34.45+00:00
Ashok Kumar 161 Reputation points
1 answer One of the answers was accepted by the question author.

Webview is not allowing the remaining UI elements to render properly

I have labels, images and button along with webview. When I am landing to this webview page, the remaining UI controls are not rendered(not shown in the UI). When I start scrolling then the UI elements are rendered properly like in attached screenshots.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,911 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
767 questions
asked 2024-05-07T09:31:52.57+00:00
Keerthana Krishna 20 Reputation points
accepted 2024-05-08T08:18:57.42+00:00
Keerthana Krishna 20 Reputation points
1 answer

SQL Connectivity Issue From Cloud app to on-prem server

hi, I have deployed a .net core MVC app in azure app service as a webapp. I have to connect to a on-prem sql server to retrieve data. I have setup Azure relay/hybrid connection for the same. Also I have installed hybrid connection manager in on-prem…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,200 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,778 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,934 questions
asked 2024-05-07T10:38:07.05+00:00
Santhi Dhanuskodi 145 Reputation points
commented 2024-05-08T08:09:12.42+00:00
Santhi Dhanuskodi 145 Reputation points
1 answer

MAUI: The CollectionView items collide with each other when scrolling

When I try to scroll top to bottom at that time, the CollectionView items collide on the iOS platform, but it works fine on the Android platform. Below, I am adding a screenshot and Screen record of this issue. Screenshot: Screen Record: screen record…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,911 questions
asked 2024-04-29T14:07:42.5733333+00:00
Sreejith Sreenivasan 691 Reputation points
commented 2024-05-08T08:04:45.1233333+00:00
Aleena George 20 Reputation points