Questions tagged [asp.net-mvc-5]

0 votes
0 replies
Error when trying to create PDF with Rotativa
My goal is to allow users to print to pdf, a view. I found a Nuget called Rotativa and followed some very basic tutorials. In test, it worked p...
asked 1 month ago
0 votes
0 replies
How to Update IdentityUser with navigation property using Entity Framework 6
I want to update IdentityUser along with Employee Record, IdentityUser Class public class AppUser : IdentityUser<string, AppUserLogin, AppUs...
asked 1 month ago
0 votes
2 replies
Getting viewmodel value null on Http Post method,
My View page, it contains many dynamic controls I know this question has been asked and answered a dozen of times but none of the solutions help...
1 votes
0 replies
Unable to authenticate users using dual authentication in asp.net mvc
I am implementing dual authentication in asp.net mvc 5,For internal users the authentication is happening through Azure AD.For external user ther...
asked 1 month ago
0 votes
0 replies
The name 'viewbag' does not exist in the current context in mvc
Im using visual studio 2017 and use asp.net mvc-5. My project have error "The name 'model' does not exist in the current context in mvc" at all v...
asked 1 month ago
0 votes
0 replies
IIS application pool turned off with event id 5009
I'm developing a website. It's an MVC5 web application, using the .net framework 4.6.2. We have a compilation server running on windows server 2...
asked 1 month ago
0 votes
0 replies
Cascading Dropdown List Using Editor Template (UIHint) With Stored Procedures in Asp.Net MVC5
I'm new to asp.net mvc after recently moving from desktop app development into it. As there were events for controls like combobox etc to perform...
asked 1 month ago
0 votes
0 replies
Cannot Install Sendgrid for email services in Visual Studio 2015 in Asp.net MVC 5 using Web api 2
I am trying to make email verification. so I am following this microsoft link Now When I tried to install sendgrid in Manage nuget packet manage...
0 votes
2 replies
How to Update Employee and Identity User with one to one/zero relation
I am trying to update employee record and want to update identity user too. If i update Identity User first separately For Example: UserManage...
0 votes
1 replies
Dependency Injection with Unity works in controllers and web api but not in areas
Hi I am using Unity for DI in My Project .I have two Areas in my project name "Admin" and "User".everything work fine except when i use DI in my...
asked 1 month ago
0 votes
1 replies
Is there a way to add a button to hide all columns in DataTables?
I have the functionality of column visibility working fine when a user click on a certain column it disappears. However I want to add a button th...
0 votes
1 replies
Routing Areas MVC5
I'm developing a small system with four areas, when I test it in Localhost, it works fine, but when I publish it in IIS 7.5 it does not find the...
asked 1 month ago
-2 votes
0 replies
In the view the model is showing two different values
the value of these two are different. Now sure why would that be the case. Anyone have an idea why would that happen? @Html.HiddenFor(m=>...
asked 1 month ago
1 votes
2 replies
How do I expose WS-Federation metadata on ASP.NET MVC 5?
I have a SAAS app built with ASP.NET MVC 5 and I've several clients accessing my app through forms authentication and that works fine, but one o...
0 votes
1 replies
Cannot convert from system.data.common.dbconnection to system.data,sqlconnection
I am importing data from my excel file to sql database. I am using MVC 5 and entity framework 6. I am using epplus to import the data and sqlbulk...
0 votes
3 replies
Importing excel file into db (Takes a lot of time)
I am using MVC5 and I am importing my excel file using epplus into sql database. However I am able to import files which are smaller in size like...
0 votes
1 replies
Argument 1: cannot convert from 'System.Threading.Tasks.Task<Project.Models.Booking>' to Project.Models.Booking
I'm working on school project, and I'm trying to implement asynchronous methods in my repository classes and got this error in my API for the POS...
0 votes
0 replies
How to load login page for external user & login with sso/AAD for internal user
I'm developing an MVC5 application with EF6.0 . The application will be hosted in Azure as an App service. I have a requirement , When an interna...
0 votes
0 replies
How to get client MAC address in MVC
I've Login Page I want to get user client Mac Address but I write this code when I was published to server getting to server MACID. How can I get...
0 votes
0 replies
How to make Account and Manage controllers inherit from a BaseController without errors
I've made a custom controller called BaseController and I'm making all my controllers inherit from that one. This controller is useful for chang...
0 votes
0 replies
drop down select box is not working for the dataTable
I made my own show entries box for the dataTable it works fine with IE how ever it doesn't work on chrome. I tried the answers online but so far...
0 votes
1 replies
Fixed header under the navbar
I am using jquery.dataTables fixed header and footer options, The problem is the header disappears behind the navbar I searched for a way to fix...
-1 votes
1 replies
Is there a way to detect why an Ajax call does not make it to a controller in MVC?
I am trying to make an AJAX call when I click on a button. My program should send a request to the server to fetch some data and display it on th...
asked 1 month ago
0 votes
0 replies
Why am I getting Validation error for a property that contains Required and ReadOnly Annotation while submitting a form in asp.net mvc?
Using Only Required Annotation Everything works fine but, when I add ReadOnly Annotation, While submitting the form I am getting "Please enter a...
asked 1 month ago
3 votes
1 replies
How to refresh my table on a time-out function of 3 seconds
I am having difficulty with refreshing only my table in my index page of the mvc5 application on a time-out of 5 seconds. I have read quite a few...
asked 1 month ago