Microsoft Q&A

.NET

12,924 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,924 questions with .NET-related tags

Sort by: Updated
1 answer

Empty listview items after down and up scrolling

Hi, iOS app, MVVM pardigm, I populate an ObservableCollection of a custom type and through BindingContext populate a ListView on the Page. that works fine. I can see the ListView items properly and can scroll it. What I constantly see is when I scroll…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
889 questions
asked 2023-01-30T09:02:03.32+00:00
yaron kadman 81 Reputation points
answered 2023-01-31T12:24:59.9466667+00:00
yaron kadman 81 Reputation points
2 answers

404 issue to the file

Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,188 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
445 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
400 questions
asked 2023-01-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
edited a comment 2023-01-31T12:17:55.7333333+00:00
Peter_1985 1,831 Reputation points
0 answers

Get an ILogger instance for App Insights from ServiceCollection in a WebForms .NET Framework application

We want to get an ILogger instance so that it can be passed to other library. We tried below, but the ILogger instance does not log into Application Insights. It logs into Event Viewer successfully. We have added the necessary packages i.e.…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
400 questions
asked 2023-01-31T12:10:20.45+00:00
Wadhwani, Jatin 0 Reputation points
1 answer

Is it possible to implement the custom security to the SSRS 2019?

Please share the code, if we can implement the custom security to the SSRS 2019

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,188 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,101 questions
asked 2023-01-31T11:53:34.3966667+00:00
Chitravelu Sivanandam 0 Reputation points
answered 2023-01-31T12:09:19.37+00:00
Olaf Helper 25,571 Reputation points
1 answer One of the answers was accepted by the question author.

B2C login custom template hosted on my app in Azure Docker is displaying a blank page

I have a Blazor server app hosted in Azure registries using a B2C login. This is working fine. I created my own template to change the B2C login UI. A simple cshtml and controller were created in the same app (I am not using Azure blob) with code: …

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,605 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,315 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 questions
asked 2023-01-17T15:58:43.92+00:00
Andrey Kuznetsov 40 Reputation points
accepted 2023-01-31T11:59:30.9133333+00:00
Andrey Kuznetsov 40 Reputation points
0 answers

Why do I get a resource not found when disabling Hot Reload

If I disable hot reload I get a Gray950 resouce not found. This is such an indication of the major problems that VS 2022 has. There is no relationship between the two. The only reference that I could find about Gray950 is that it is a resource used in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
889 questions
asked 2023-01-23T22:03:46.8+00:00
Lloyd Sheen 756 Reputation points
edited the question 2023-01-31T11:57:00.16+00:00
Anna Xiu-MSFT 11,021 Reputation points Microsoft Employee
1 answer

Exception "Scheme already exists" when trying to implement multiple authentication schemes

For a Azure app service that uses two different app registrations for internal and external users I want to implement multiple authentication schemes. I use a ASP.NET Core web application (.NET6) with the following app…

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,315 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,541 questions
asked 2023-01-26T11:56:01.52+00:00
Jörg Auberg (Admin) 0 Reputation points
answered 2023-01-31T11:54:59.8633333+00:00
Shweta Mathur 11,081 Reputation points Microsoft Employee
2 answers

Edge browser showing windows security popup

We have implemented MSAL authorization in our web application but when we are executing visual studio code locally, solution running fine with IE but not with edge browser, its showing windows security credentials popup.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,188 questions
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.
147 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,330 questions
asked 2023-01-24T07:21:08.0833333+00:00
Nitin Patil 0 Reputation points
edited a comment 2023-01-31T11:47:38.7533333+00:00
Nitin Patil 0 Reputation points
0 answers

HttpClient fails to establish SSL connection with server configured with RSA 4096 key.

I am using .net framework 4.7 in WinForms application and using HttpClient for SSO login, When I call server url with using HttpClient then initial handshaking fails with following error. The request was aborted: Could not create SSL/TLS secure…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
asked 2023-01-30T07:53:05.98+00:00
Rajeev Pradhan 0 Reputation points
edited a comment 2023-01-31T11:34:54.9033333+00:00
Rajeev Pradhan 0 Reputation points
0 answers

Download my Certificate

How to download my "TS: Microsoft .NET Framework 2.0 - Windows-based Client Development" certificate which was issued in July 22, 2009.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,188 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,828 questions
asked 2023-01-31T11:00:30.35+00:00
REYAD ALAWI 0 Reputation points
4 answers

Getting User Details from Azure AD in ASP.NET

In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
400 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
590 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,605 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,188 questions
asked 2023-01-17T14:32:53.06+00:00
Joe Green 141 Reputation points
answered 2023-01-31T10:32:49.04+00:00
Shweta Mathur 11,081 Reputation points Microsoft Employee
0 answers

Linq query and violation of inserting null in database

Hello All, I have the following two model classes: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public string LastName { get; set; } = null!; [DisplayName("First Name")] public string FirstName { get; set; } =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,541 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.
6,944 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
590 questions
asked 2023-01-31T01:42:14.5866667+00:00
Anjali Agarwal 81 Reputation points
commented 2023-01-31T10:18:12.0733333+00:00
Anjali Agarwal 81 Reputation points
0 answers

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022)

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022), I don't know what happened?   I was trying to use "using System.Fakes; " , But it alert "missing an assemly reference" after following …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,541 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,403 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying a test as a means of analysis or diagnosis.
251 questions
asked 2023-01-31T10:06:39.3233333+00:00
Angelina Jolie 0 Reputation points
1 answer

how to bind to taghelper property in razor pages?

[HtmlTargetElement("pagination")] public class PaginationTagHelper : TagHelper { [HtmlAttributeName("page-index")] public int PageIndex{get;set;} } and in Index.cshtml <pagination page-index="PageIndex" /> I can not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,541 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
400 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
590 questions
asked 2023-01-30T05:36:04.64+00:00
打玻璃 1,506 Reputation points
commented 2023-01-31T10:03:44.0733333+00:00
打玻璃 1,506 Reputation points
1 answer

Ajax server method call not working.

I am using this code to call the server side method using Ajax. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <script…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,188 questions
asked 2023-01-31T09:24:28.8533333+00:00
Adeel Mirza 1 Reputation point
answered 2023-01-31T09:59:08.08+00:00
Lan Huang-MSFT 9,041 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Implementing SignalR in ASP.NET Core Web App (MVC) for real-time database updates

Hi All, I am still a bit green with C# and ASP.NET however I have created a ASP.NET Core Web App (MVC) .NET6, that displays an IOT temperature sensor reading summary dashboard and another page that displays the readings and other information about each…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,541 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
72 questions
asked 2023-01-11T13:00:50.5266667+00:00
ChrisU 91 Reputation points
accepted 2023-01-31T09:58:08.98+00:00
ChrisU 91 Reputation points
1 answer

How to fix canonical issues with WordPress on App Services

I need to redirect www.example.com to example.com. I have a custom domain with SSL, https enforced. Http requests are being redirected to https and working as expected. Where, or how, do I configure a redirect to get the www.example to redirect to…

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,315 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,541 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
558 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,618 questions
asked 2023-01-28T13:29:04.7433333+00:00
Joe O 0 Reputation points
commented 2023-01-31T09:56:58.4733333+00:00
SnehaAgrawal-MSFT 11,101 Reputation points Microsoft Employee
2 answers

EF Core 6 Adding a table manually?

Hello friends, I am working on a web API project that I implemented with the code-first approach. I wonder if there is a problem creating tables manually without using migrations. Does it cause any problems? Thank you.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
421 questions
asked 2023-01-17T14:19:19.31+00:00
Cenk 666 Reputation points
commented 2023-01-31T09:49:26.6633333+00:00
Cenk 666 Reputation points
1 answer

Executing Stored Procedures based on condition in Razor Pages

Hi, I have a function that executes two stored procedures based on a condition. Stored procedure for the first condition works fine, but stored procedure for the second condition fails. public async Task<JsonResult>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,541 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
421 questions
asked 2023-01-27T05:38:24.0033333+00:00
Blooming Developer 196 Reputation points
answered 2023-01-31T09:42:26.0866667+00:00
Blooming Developer 196 Reputation points
0 answers

Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page..

Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page.. any solution ? Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
889 questions
asked 2023-01-19T02:40:42.8666667+00:00
Sami 101 Reputation points
commented 2023-01-31T09:42:12.5566667+00:00
Sami 101 Reputation points