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


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


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…


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?


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…


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


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?


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.


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


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…


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…


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…


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…


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…


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…


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…


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


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?


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…

