Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

I have a child action in my _Layout file like this: @{ Html.RenderAction("ChangeLanguage", "Shared"); } The code is: [HttpGet] [ChildActionOnly] public PartialViewResult ...
mz1378's user avatar
  • 2,642
0 votes
1 answer
20 views

In my ASP.NET MVC 5 I use also AngularJS and my stateProvider contains also these nested states: $stateProvider .state("data", { url: "/data", templateUrl: "Template/...
Frimlik's user avatar
  • 457
0 votes
1 answer
67 views

The documentation for Action (HtmlHelper, String, String, Object) (or the RouteValueDictionary version) states that "The routeValues parameter is merged with the original route values and ...
Andiih's user avatar
  • 12.5k
0 votes
1 answer
625 views

I'm trying to get our Playwright tests to run in our CI/CD pipeline. I'm finding scant documentation on how to do so with regards to our specific situation. Here are the key components: Code is .NET ...
Michael Kolakowski's user avatar
0 votes
0 answers
39 views

I have created a database-connected ASP.NET MVC 5 application and it works beautifully with the exception of being able to filter one dropdown based in the selection in another dropdown. I have tried ...
Steve Link's user avatar
0 votes
1 answer
86 views

I get stuck on the ModelState.IsValid. I try to solve them from the other example, but it not worked. Could you guy help on me please? This is my controller: [HttpPost] [ValidateAntiForgeryToken] ...
Pachara Vatcharanopvipa's user avatar
0 votes
1 answer
502 views

My application is running on MVC 5 . Recently I upgraded the Npgsql nuget package version and after that started getting below error in the application. **Error :- ** HttpServerUtility.Execute blocked ...
Ramesh Yadav's user avatar
0 votes
0 answers
26 views

I have this in RouteConfig.cs file: routes.MapRoute( name: "PreSeleccion", url: "{controller}/{action}/{month}/{id}", defaults: new { ...
jstuardo's user avatar
  • 4,497
0 votes
1 answer
70 views

I want to redirect if user type some Urls in the browser. My application is developed in Asp.net MVC 5. please see the possible user inputs in the browsers User can enter 1). test-systems.co.uk 2). ...
tekf's user avatar
  • 104
0 votes
0 answers
151 views

I'm getting a bug in a production server. I know which line is, but I do not know which would be the one that is complaining of a "Object reference not set to an instance of an object." ...
IBot's user avatar
  • 373
0 votes
0 answers
140 views

I have MVC 5 application which is running on IIS on this URL http://localhost:8080. I want to get it run by appending some text in the url like http://localhost:8080/app. To achieve this I have done ...
Tech learner's user avatar
0 votes
0 answers
74 views

I have the following View code in which I am displaying a list of flights. @using Airline_Reservation_System.Models; @{ AirlineContext ac = new AirlineContext(); var ddlcabin = ac.Cabins....
Muhammad Hafizullah's user avatar
0 votes
1 answer
962 views

View - MovieForm.cshtml: <div class="form-group"> @Html.LabelFor(m => m.Movie.GenreId) @Html.DropDownList(m => m.Movie.GenreId, new SelectList(Model.Genres, "Id"...
Kail32's user avatar
  • 13
0 votes
1 answer
1k views

I am making a module that logs the errors to a .log file and save it to the database. I am only triggering the logging under this following instances: Ajax errors. More specifically, error 500 status ...
jdistro07's user avatar
  • 167
10 votes
1 answer
3k views

I have an MVC 5 web project (referencing Microsoft.AspNet.Mvc (5.2.8) and Microsoft.AspNet.WebApi.WebHost (5.2.8)) and I would like to convert the project file to SDK style. I know this is not ...
Ami's user avatar
  • 115
9 votes
5 answers
2k views

I have an ASP.NET MVC 5 web site which has a controller MyFirstController. That way, I can load the index view by using https://example.server.com/MyFirst. On the other hand, I have another view that ...
jstuardo's user avatar
  • 4,497
0 votes
1 answer
1k views

We have updated several .Net Core / 5 applications to authenticate with Azure AD at the application level (not user) by registering them in Azure AD with x509 certificates. With the purpose of ...
Pugz's user avatar
  • 23
0 votes
0 answers
52 views

I host my Web API application on Windows Server 2008 R2 (IIS Version 7.5), development using .NET Framework 4.8. When I try to make a request, in the class below and perform remote debugging, the ...
Slocky's user avatar
  • 123
1 vote
0 answers
20 views

I ran into issue validating dates in my application. There are approximately 40 models with maybe a few dozen date fields between them. I have custom validations assigned to many models via attributes,...
Nomenator's user avatar
  • 1,175
1 vote
0 answers
912 views

I'm trying to use the office component to convert a excel file to a pdf file ,but I get the exception as blow <exception><![CDATA[System.Runtime.InteropServices.COMException (0x8000401A): ...
chuyu wang's user avatar
6 votes
0 answers
801 views

I'm trying to abandon using VS 2013 and run/debug our app in VS 2019. It's an MVC 5 app (.NET 4.7.2) that uses EF6 (code first). I can start it up and it loads a page. The problem is, it seems to ...
user1368182's user avatar
0 votes
0 answers
312 views

I have an MVC C# application working and all is good, however, I have just found something bad. I have a form that allows input text. Of course, that input text is rendered using an HTML helper. The ...
jstuardo's user avatar
  • 4,497
1 vote
0 answers
1k views

I want to construct a URL, per user for a set of users, which should be embedded with a access token so that the user can use the URL to login into the application and access a specific page without ...
nrawal's user avatar
  • 255
1 vote
0 answers
2k views

I am looking after a legacy app using MVC 5. Is it possible to integrate MFA (Microsoft Authenticator App) to this web application? All articles from Microsoft seem to use the new .net core Thank you
user2514662's user avatar
0 votes
1 answer
145 views

I have code that runs on application start that prefixes all of my routes with a {lang} parameter. The intent is to transform any URL like /page to {lang}/page, with {lang} being a language code (&...
Xavier Poinas's user avatar
0 votes
1 answer
452 views

I'm attempting to create a drop down list from one table in my database grouped by names from a different table in the same database. What I have is a table that holds a bunch of units. These units ...
NMeneses's user avatar
  • 172
2 votes
1 answer
394 views

I'm building a multi-tenant website, and so I need to overload UserManager.CreateAsync() to accept an additional parameter of type City. In other words, each User belongs to a City. I've configured ...
InteXX's user avatar
  • 6,557
1 vote
1 answer
976 views

I started to use the new floating labels but I notice that the controls, otherwise with full width, are now resized to default. Here is my code: <div class="form-group"> <div ...
DoomerDGR8's user avatar
  • 5,112
0 votes
1 answer
680 views

I got stucked with (it seems to be) a simple problem. My goal is to create a modal with an Ajax form. A child action gets the modal in a partial view, and when edited, submit button posts Ajax form ...
Fox Mulder's user avatar
0 votes
1 answer
162 views

I am working on asp.net mvc application, The issue i am facing is that when a user clicks on the confirm your account link in his email, the action method "Account/ConfirmEmail" which take ...
david hosni's user avatar
1 vote
0 answers
998 views

I wanna get a pdf file from API in ASP.Net core, but I don't know how to do this. what I do is send a model to the api and I receive a pdf file This is the method in my API that returns the file (In ...
ChrisDLH's user avatar
  • 143
0 votes
1 answer
399 views

I want to password protect one of the routes of my MVC 5 app. I don't want to go through the process of Forms Auth or [Authorize] attributes etc. I just want to deploy the app as usual and use IIS to ...
Adam Hey's user avatar
  • 1,731
1 vote
1 answer
3k views

I have created a custom validator this way: public class IntArrayRequiredAttribute : ValidationAttribute { protected override ValidationResult IsValid(object value, ValidationContext ...
jstuardo's user avatar
  • 4,497
1 vote
1 answer
106 views

I am developing an application using Visual Studio 2019 with code validation. Some code validation hints are important, however, I am getting a lot of hints in my awaitable method calls, such as ...
jstuardo's user avatar
  • 4,497
-2 votes
1 answer
164 views

create custom popup if I want to disconnect (back to the login page) or not, when i click on the Back button of the browser.
user3296338's user avatar
1 vote
1 answer
976 views

I have a Controller which has OnActionExecuting overridden as async method, this way: protected override async void OnActionExecuting(ActionExecutingContext filterContext) { } Inside that method I am ...
jstuardo's user avatar
  • 4,497
0 votes
0 answers
719 views

In a previous project I worked with Automapper v7.0.1 and everything was fine. Now I am working on a new project and again I made my architecture with MVC 5 and .Net framework 4.8, but I discovered ...
RudolfCruz's user avatar
0 votes
1 answer
1k views

I need help every time I try to use some Newtonsoft.Json configuration, an error appears: Severity Code Description Project File Line Suppression State Suppression State Error CS0433 The type "...
Wesley Henrique dos Santos's user avatar
1 vote
1 answer
267 views

I've got a weird problem using ASP.NET in combination with Entity Framework and Unity Container. This problem only occurs after the application has been running from a few hours to a few days. And ...
sanderev66's user avatar
-2 votes
3 answers
228 views

I am developing online shopping purchases application so flow of application is Add or Remove Item from cart => view item in my cart => then payment option When click on Remove item from Cart ...
User's user avatar
  • 1,373
0 votes
1 answer
844 views

I'm adding some functionality to an old project (ASP.NET MVC 5) In view I render existing items: @if (Model.ItemsVM != null) { for (int i = 0; i < Model.ItemsVM.Count(); i++) ...
HerGiz's user avatar
  • 977
1 vote
2 answers
2k views

I am developing application for Online Book Purchases I am giving download PDF Format book after paid money so i want secure my PDF from direct download. Question: 1) How could I hide folder URL ...
User's user avatar
  • 1,373
0 votes
0 answers
89 views

My case ı have big excel exports ım never stored thıs fıles my server ım create and download client so ı need to keep scope or my export operations is failing my button is this <input type="button"...
Mehmet Başaran's user avatar
0 votes
1 answer
139 views

I've been task with creating a web app using code-first, I've added a first one-to-one relationship which works as I expected, I then added a second one-to-one relationship but can't get it to work. ...
Damian70's user avatar
  • 358
0 votes
1 answer
63 views

My page displays, side by side, to arrays of objects of class ExternalExeWorkerSettings. To render de objects i created a Editor Template for the 'ExternalExeWorkerSettings'. The page is correctly ...
MiguelSlv's user avatar
  • 15.4k
1 vote
0 answers
101 views

In my MVC 5.2.7 project targeting .NET framework 4.6.1, I need to set the Json serializer settings to always to use came case. So, I want to write in the Application_Start event something like: ...
Water Cooler v2's user avatar
1 vote
1 answer
2k views

I m returing a List to the View. So The Model is IEnumerable. It works fine in foreach loop to get the employees. But when I use this Model inside the loop it give me the error: A local variable ...
Imran's user avatar
  • 13
0 votes
1 answer
711 views

1) After installing MvcSiteMapProvider.mvc5 via nuget, I get an exception when running my mvc site via localhost and the error stating: Could not find file 'C:\Users...\Documents\Visual Studio 2017\...
today's user avatar
  • 1
0 votes
0 answers
414 views

How to authorize attribute check token is valid or not? public class TestController : ApiController { [HttpPost] [Authorize] public string TestMethod() { return "...
Sher Singh's user avatar
1 vote
1 answer
206 views

How to fetch user information in MVC5 from google API through access_token which token provided by the mobile end into web API? [Used Code][1]: https://i.sstatic.net/D2hfW.png HttpClient client = new ...
Sher Singh's user avatar

1
2 3 4 5
10