Microsoft Q&A

ASP.NET MVC

729 questions

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

Browse all .NET tags

729 questions with ASP.NET MVC tags

Sort by: Updated
2 answers

no pending explicit migrations

I am using VS2017 pro. I created an MVC5 solution in C# and opened Package Manager Console. In the Entities folder I created a class and marked it up with appropriate annotations. update-database command created the table (and some initial other tables).…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
872 questions
asked 2021-04-21T14:09:58.843+00:00
Jon Jacobs 86 Reputation points
commented 2021-04-23T13:14:18.587+00:00
Jon Jacobs 86 Reputation points
2 answers

how to dispaly html page to div and print

Get html data from controller to view. on click event open popup window and show html data and print it using asp.net mvc,jquery,html,ajax

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-04-17T07:50:05.277+00:00
rina19aaaaaa 1 Reputation point
commented 2021-04-20T09:43:35.49+00:00
Chao Deng-MSFT 791 Reputation points
1 answer

Map of products - category relationship EF c#

I have three models as below. public class Product { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public Decimal Price { get; set; } public bool Live { get; set; } } public…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
227 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-04-18T09:11:01.447+00:00
Salvatore Rizzo 21 Reputation points
answered 2021-04-18T14:05:16.217+00:00
Duane Arnold 3,211 Reputation points
1 answer

AZURE SSO implementation using SAML protocol in .net MVC web application

Hi, we want to implement Azure SSO in .net MVC application using SAML. Does .net has integration kit for this requirement ? Is it required to use third party SAML integration kit?

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,554 questions
asked 2021-04-12T07:37:52.383+00:00
commented 2021-04-14T16:13:23.427+00:00
Grmacjon-MSFT 9,276 Reputation points
0 answers

Error in File Uploading using ASP.Net

Dear All I am using following code snipped to upload file in SFTP. Its a console base application and working fine. File is uploaded in SFTP in a specific time. public static void FileUploadSFTP(string sFileType) { // server credential…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-04-08T04:57:00.873+00:00
munirul islam 1 Reputation point
commented 2021-04-09T09:36:12.22+00:00
Yihui Sun-MSFT 791 Reputation points
1 answer

can we route all api call to ip adress instead of localhost

HI Team, can we route all api call to ip adress instead of localhost if yes please share supported code below are example https://IP :8881/api/v1/devices https://localhost:8881/api/v1/devices

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-04-08T05:44:17.813+00:00
saanvi 1 Reputation point
answered 2021-04-09T06:17:51.707+00:00
Yihui Sun-MSFT 791 Reputation points
1 answer

Start Blazor

I want to start Blazor web assembly and i use asp.net mvc5 for web application. Can i use Blazor in mvc5 or i have to learn type of .net core technologys?

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-04-02T14:44:06.043+00:00
Erfan 1 Reputation point
answered 2021-04-05T01:54:39.533+00:00
Yihui Sun-MSFT 791 Reputation points
2 answers

Is there an open source ASP.NET app that uses C# and MVC with a MySQL database?

I am looking for a pre-built solution that uses the above technologies I can use the build my own project on top of. I remember that there was a marketplace for ASP.NET apps and controls that could be used freely. Thanks for your help, Abe.

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.
7,531 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
468 questions
asked 2021-03-29T18:08:45.893+00:00
Abraham Luna 6 Reputation points
commented 2021-04-01T12:33:44.447+00:00
Abraham Luna 6 Reputation points
0 answers

Need to create html fromat in asp.net using itextsharp

![82283-invoice.png][1] [1]: /api/attachments/82283-invoice.png?platform=QnA can you please tell me how to create html for this format and convert it into pdf

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.
7,531 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-03-29T06:16:42.817+00:00
rina12 1 Reputation point
commented 2021-03-30T06:11:00.54+00:00
XuDong Peng-MSFT 4,746 Reputation points Microsoft Vendor
3 answers

ASP.NET MVC controller not receiving the parameter from view

I am getting null value for the actor(which is an action parameter). I tried all possible ways to call the action method. I don't know if there is any setting in the web.config or what. When I try it in sample MVC application, it worked fine(getting…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 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.
7,531 questions
asked 2021-03-26T10:15:04.02+00:00
Ramakrishna Allada 1 Reputation point
answered 2021-03-29T10:04:07.473+00:00
Yihui Sun-MSFT 791 Reputation points
1 answer

C# MVC Create new site fails when adding Controller

VS 2019 Pro Updated today. Win 10 Created a new C# MVC site. .NET Framework 4.8 Added User Authentication using a SQL server database. Site creates, compiles no errors Went to Models -> Add New Item -> ADO.NET Entity Model -> code…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-03-22T07:20:47.663+00:00
Bryan Valencia 1 Reputation point
answered 2021-03-23T03:27:52.293+00:00
Yihui Sun-MSFT 791 Reputation points
0 answers

Cannot logout from OWIN external identity provider via PKCE

I have been unable to logout from an OWIN external identity provider. Either the user is not completely logged out or the website goes into an infinite loop of redirects. I am changing an existing asp.net MVC 4 website. I am not using Azure active…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-03-15T12:34:56.577+00:00
Ed Brinkman 116 Reputation points
1 answer

How to make delayed helper render?

We have a lot of small JS script or HTML utilities inside thousands of small-big (Razor) helpers, that we are using in the rather complex web application. One view can be in first situation loaded as Html.Partial from other site, but also can be recall…

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.
7,531 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-03-13T16:10:36.007+00:00
RickettsialPox 1 Reputation point
commented 2021-03-15T08:32:48.897+00:00
RickettsialPox 1 Reputation point
0 answers

OWIN middleware not working after upgrading app to Windows Server 2016

Hi, We have written a custom (public) Shopify app to be deployed to the Shopify stores by the store owners. The app is using Microsoft.Owin.Security Nuget package version 3.0.1. The app was working on Windows Server 2008 and Windows 10. But its raising…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
979 questions
asked 2021-03-11T21:12:37.023+00:00
talal shoaib 1 Reputation point
0 answers

Removing Azure AD authentication from ASP.Net MVC web application

A few months ago I created a small web application in ASP.NET MVC, I got it to work with Azure AD Authentication, and users were able to login with their Office 365 credentials. Now I need to strip the application of the Azure part and have it run…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,525 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
asked 2021-03-07T00:44:40.017+00:00
Luis Guzman 1 Reputation point
commented 2021-03-08T02:47:14.367+00:00
Yihui Sun-MSFT 791 Reputation points
1 answer

How to open Console App from MVC web application

I have deployed MVC application in IIS, and from this MVC application i want to open console app. so that is not possible due to IIS security . Now i have create one package installer add added console application exe in Application and decalared…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-02-19T07:15:21.283+00:00
kailash solanki 1 Reputation point
commented 2021-02-23T09:38:04.73+00:00
kailash solanki 1 Reputation point
4 answers

How to delete a physical file from server when related entry from database is removed

Hello, I've an .net MVC application that stores data in MS SQL Server 11. Most of the entries in the database has one or more physical files associated with them. This is what I need to do Schedule a script/task to run everyday at a specific time …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 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.
9,079 questions
asked 2021-02-11T14:00:38.873+00:00
Joe Green 141 Reputation points
answered 2021-02-19T19:02:39.95+00:00
Joe Green 141 Reputation points
2 answers One of the answers was accepted by the question author.

How to move Areas folder to subfolder in DotNet Core 5 with mvc

I moved 'Areas' folder to this 'ControlPanel'. When I run project, get this error: InvalidOperationException: The default Identity UI layout requires a partial view '_LoginPartial' usually located at '/Pages/_LoginPartial' or at…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
387 questions
asked 2021-02-18T10:43:50.98+00:00
Hossein Dabbaghan 21 Reputation points
accepted 2021-02-19T13:46:35.423+00:00
Hossein Dabbaghan 21 Reputation points
4 answers One of the answers was accepted by the question author.

Runtime error

error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. I am getting this type of eror.Can you suggest any solution?

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.
7,531 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-02-03T14:22:59.45+00:00
Rafaiya Rushdha Oishi 21 Reputation points
commented 2021-02-10T06:00:16.653+00:00
Rafaiya Rushdha Oishi 21 Reputation points
4 answers One of the answers was accepted by the question author.

Change MVC 4 site from Federated Identity to OpenID Connect

I am working with an existing MVC 4 website hosted internally that currently uses Federated Identity with a custom login page. My task is to change the website to use OpenID Connect to connect to an external provider to authenticate the user and return a…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
729 questions
asked 2021-01-30T01:49:16.317+00:00
Ed Brinkman 116 Reputation points
accepted 2021-02-06T03:38:30.117+00:00
Ed Brinkman 116 Reputation points