Microsoft Q&A

ASP.NET MVC

609 questions

A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.

Browse all .NET tags

609 questions with ASP.NET MVC tags

Sort by: Updated
1 answer

How to save login state when close browser?

when signed HttpContext.SignInAsync(claimsPrinciple); when I close the browser the cookie is not valid and I need login again. builder.Services.AddAuthentication("Cookie").AddCookie("Cookie", options => { options.Cookie.Name =…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 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.
408 questions
asked 2023-02-04T00:18:52.4966667+00:00
打玻璃 1,526 Reputation points
answered 2023-02-04T00:58:16.5966667+00:00
AgaveJoe 17,131 Reputation points
0 answers

Error at Add-Migration CreateIdentitySchema

Error: ...The type or namespace name 'Areas' does not exist in the namespace 'Authentication' (are you missing an assembly…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-03T16:33:09.2233333+00:00
Dean Everhart 441 Reputation points
edited a comment 2023-02-03T18:23:06.78+00:00
AgaveJoe 17,131 Reputation points
1 answer One of the answers was accepted by the question author.

Identity Scaffolding Context class

Should the existing context class be chosen at projectname.data. or a second context class be created at projectname.areas.identity.data.WebApplication1Context. Confused about the wording in the tutorial: "create a new Data context class. Accept the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-03T14:25:12.16+00:00
Dean Everhart 441 Reputation points
commented 2023-02-03T15:58:16.0933333+00:00
Dean Everhart 441 Reputation points
1 answer One of the answers was accepted by the question author.

embedding a pdf file in my chrome browser

I am trying to embed a pdf file on my web page. In order to achieve this, I have the following code in my controller: public IActionResult Index() { string path = Path.Combine(_environment.WebRootPath, "packageFiles"); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-03T04:57:40.42+00:00
Anjali Agarwal 121 Reputation points
accepted 2023-02-03T15:25:16.3233333+00:00
Anjali Agarwal 121 Reputation points
2 answers

How to create environments with appSettings?

In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
626 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,995 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
484 questions
asked 2023-02-03T09:02:57.8733333+00:00
Mr Edge 121 Reputation points
commented 2023-02-03T15:13:25.68+00:00
Karen Payne MVP 29,236 Reputation points Microsoft MVP
1 answer One of the answers was accepted by the question author.

Paginated List not displaying second page

The below works to display the first page containing 3 records of 6 of a paginated list but when you click on the "Next" button, it has the following result: [https://localhost:7045/PropertySet01?pageNumber=2 This localhost page can’t be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-01-18T22:23:08.27+00:00
Dean Everhart 441 Reputation points
accepted 2023-02-03T14:06:21.98+00:00
Dean Everhart 441 Reputation points
0 answers

Add-Migration CreateIdentitySchema (2)

The tutorial below deals with authentication. One context is created when the project is first created at projectname.data.ApplicationDbContext; a second context is created later in the tutorial when scaffolding identity at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-03T12:35:37.3533333+00:00
Dean Everhart 441 Reputation points
0 answers

ReportViewer 15.0.0.0 - Remove PageWidth and WholePage option from Zoom dropdown

We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. The Page width and Whole Page options in…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 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,118 questions
asked 2023-02-03T09:51:32.1266667+00:00
Rakesh Guranani 0 Reputation points
edited the question 2023-02-03T09:54:14.3633333+00:00
Rakesh Guranani 0 Reputation points
0 answers

how to use blazor webassembly in razor pages?

how to use blazor webassembly component in razor pages? if I create Count in webassembly how to use it in razor pages? if I do not open that page do not load dll If I open that page then load it. /Pages/Count.cshtml with component Count If I do not open…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 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.
408 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-03T02:56:39.31+00:00
打玻璃 1,526 Reputation points
commented 2023-02-03T09:53:16.9366667+00:00
Tiny Wang-MSFT 951 Reputation points Microsoft Employee
0 answers

ReportViewer 15.0.0.0 vertical scroll on opening a sub record

We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. When we run the report from SSRS (SQL…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 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,118 questions
asked 2023-02-03T09:47:57.2633333+00:00
Rakesh Guranani 0 Reputation points
0 answers

ReportViewer 15.0.0.0 shows scrollbar along the parameter and report body section

We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. When we run the report from SSRS (SQL…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 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,118 questions
asked 2023-02-03T09:39:05.0866667+00:00
Rakesh Guranani 0 Reputation points
0 answers

There is a duplicate 'oracle.manageddataaccess.client' section defined

Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…

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,995 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
626 questions
asked 2023-02-03T07:24:19.1066667+00:00
Taha Sözgen 5 Reputation points
edited the question 2023-02-03T09:29:13.73+00:00
Jack J Jun 19,376 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

I'm getting code first approach validation error can you help me

I add error massege and I update database with (datanase-update -Force).but not working error massege. why ?

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
asked 2023-01-31T13:51:55.46+00:00
Harun Ergün 120 Reputation points
accepted 2023-02-03T07:42:36.6433333+00:00
Harun Ergün 120 Reputation points
2 answers One of the answers was accepted by the question author.

Visual Studio - installing chartjs-plugin-datalabels

I have already installed chart.js nuget into my MVC app. Now I am trying to add tatals to each of my chart bars and in order to do so, according to many tutorials, I should install chartjs-plugin-datalabels but when I am trying to execute the following…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
701 questions
asked 2023-01-10T20:25:22.807+00:00
JStus 41 Reputation points
edited the question 2023-02-03T07:35:29.29+00:00
Tianyu Sun-MSFT 13,091 Reputation points Microsoft Employee
1 answer

Server Error in '/' Application Error.

Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
626 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
218 questions
Internet Information Services
asked 2023-02-02T08:30:56.1066667+00:00
Taha Sözgen 5 Reputation points
answered 2023-02-03T07:31:22.74+00:00
Sam Wu-MSFT 5,291 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

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,581 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,995 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-01-31T01:42:14.5866667+00:00
Anjali Agarwal 121 Reputation points
accepted 2023-02-03T04:58:37.07+00:00
Anjali Agarwal 121 Reputation points
1 answer One of the answers was accepted by the question author.

Address Autocomplete

Hello everyone and thanks for the help in advance. I need to develop a page for address input that will be entered by an end user. Obviously, user input is prone to error so I am looking for solutions to validate the input. I know the US Postal…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-02T02:18:07.7633333+00:00
Kmcnet 221 Reputation points
accepted 2023-02-03T02:32:59.3666667+00:00
Kmcnet 221 Reputation points
1 answer

Add-Migration CreateIdentitySchema

Having difficulty with the Add-Migration CreateIdentitySchema step in the tutorial. Any help would be appreciated: Tutorial:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-02T19:03:35.49+00:00
Dean Everhart 441 Reputation points
answered 2023-02-03T00:53:01.0933333+00:00
SurferOnWww 711 Reputation points
2 answers One of the answers was accepted by the question author.

Auth cookie is deleted by the browser when it closes

I have a strange problem. When I close my browser (whether Chrome or MS Edge), my authentication cookie is deleted. Consequently, the next time I start the browser, I have to log in again. My controller looks like this: ClaimsIdentity claimsIdentity =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 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,995 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 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.
793 questions
asked 2023-01-31T19:34:06.25+00:00
perfect code 161 Reputation points
commented 2023-02-02T18:52:06.9266667+00:00
perfect code 161 Reputation points
2 answers One of the answers was accepted by the question author.

Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design Error 6.0 v 7.0

Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design renders following error message: PM> install-package microsoft.VisualStudio.Web.CodeGeneration.Design Restoring packages for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,581 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-01T18:59:18.8533333+00:00
Dean Everhart 441 Reputation points
commented 2023-02-02T13:15:56.79+00:00
Dean Everhart 441 Reputation points