Questions tagged [asp.net-mvc]

The ASP.NET MVC Framework is an open source web application framework and tooling that implements a version of the model-view-controller (MVC) pattern tailored towards web applications and built upon an ASP.NET technology foundation.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Button does not disabled and text value does'nt change after click

I have a table that has a 1-click apply button function for a job board. I wrote some Ajax function code and jquery so that whenever the user clicks on the button, the button will be disabled and the ...
0
votes
0answers
6 views

Application not able to invoke rest call in Win 2016 server, but works fine in Win 10

Web Application not able to invoke rest call in our newly deployed VPS server which has a Windows 2016 server. The code works fine in a Windows 10 server where it is able to invoke the rest call. ...
0
votes
1answer
12 views

AJAX Post method not hitting controller

Can anyone point me here, what's wrong I am doing? my controller not hitting on Ajax post Ajax Code <script type="text/javascript"> $(document).ready(function () { $('#btncreate')....
0
votes
1answer
12 views

Is it possilbe to set altField property of persian datepicker dynamically from data-altFiled property?

Is it possible to set altField property of persian datepicker from data-altFiled property of the element instead of setting it like '#elementId' or '.className' ? I have tried so far: @Html....
0
votes
0answers
21 views

Problem with module registration in asp.net mvc + angularJs

I found one post on stack where this problem was discussed, but all solutions from there didn't worked for me. Anyway, the problem is that, I can't create proper angular module. Whenever I m assigning ...
0
votes
1answer
11 views

How to update the Partial view after the Ajax post

I have a button in my partial view(FinanceList), when I click the button I am opening the createitems view to save the records. <input type="button" id="btnaddnew" class="btn-success pull-left" ...
0
votes
0answers
11 views

.Net Core msbuild build.proj equivilent of AssemblyInfo

I'm upgrading a project from AspNet Mvc 4 to AspNet Core Mvc 2.2; I am attempting to migrate the msbuild build.proj file to set the version and other attributes for the projects that create dll's; ...
2
votes
1answer
38 views

MVC WebAPI return multiple images

I have 3 images in a directory but my code always returns one of them. I'd like to return 3 images image1.jpg, image2.jpg, image3.jpg and get them in my Xamarin app. I think returning the result ...
0
votes
0answers
9 views

{“Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.”}

I have a Registration Class in which i have total 8 fields and all are required fields , Now I have another view for which i need to have the same model but in that view i just need four fields from ...
-1
votes
0answers
27 views

Visual Studio 2019 turn off live code analysis

Does anyone know how to turn off the live code analysis in VS2019. Its causing lots of performance issues for me. thanks
1
vote
0answers
16 views

Angular : Creating another component for full screen mode

In my Angular application (based on ASP.NET MVC) there are 4 datatables on a page as shown below and I want to maximize each of these datatables by clicking the maximize icons (shown as "x") at the ...
7
votes
1answer
52 views

User.Claims Is Empty In MVC Application

I'm working on upgrading my .NET Core 2.2 MVC application to 3.0. In this application I'm authenticating to a controller using a JWT token. The token contains several claims, but when I try to access ...
0
votes
0answers
22 views

Object reference not set to an instance of an object : Upon calling controller B's method that has session , from controller A

I noticed that if I have a session variable inside a method in a Controller , say Controller B and I call it from controller A. I get the following error: System.NullReferenceException: 'Object ...
-1
votes
0answers
13 views

What tool can I use to digitally sign a pdf locally in the browser then save it back to the server using ASP.NET MVC? [on hold]

I am working on a project for users to digitally sign a pdf document. The process I am trying to accomplish is as follows: User navigates to a web application (ASP.NET MVC). A pdf is pulled from a ...
0
votes
1answer
35 views

Pass ID to controller on prev or next

I have a list of ID IList<string> pageIDList = new List<string>(); In my MVC view I have two links <a href="@Url.Action("MyAction", new { id= item.id})"> Previous </a> <a ...
0
votes
0answers
4 views

post function not working with cookieless

I want to use the FormsAuthentication without cookie so I set cookieless"Useuri" but when i cal a post function i get redirected to the login i tried a module that i found but it didn't worked <...
0
votes
0answers
10 views

In Azure GOV web site User Concurrent Connection not working properly

In On-Premise signalr , Concurrent connection working properly in mvc web. But Azure Gov not working properly and Enabled Websocket. Concurrent dictionary values not maintain stable values. There is ...
0
votes
1answer
10 views

Application Pool Goes Down Very Often and Needs Recycling

I have a C# ASP.NET MVC application (MVC V.4 & .NET Framework 4.5) running on a Windows Server 2008 R2 S.P.1 Datacenter as an application pool and in the last month has started going down every 3 ...
0
votes
0answers
27 views

Custom Authentication in ASP.NET MVC

I'm creating a web app in ASP.NET MVC from a base of current desktop app, but I need implement a custom form authentication for it. The issue is the code I'm using doesn't work, it don't authenticate ...
0
votes
0answers
8 views

Mocking “ASP.NET_SessionId” cookie

I am trying to come up with a solution for the following scenario: I have migrated a web app from forms auth, to OWIN+OAuth. Now, there is also a mobile client app ( android ). The mobile client is ...
0
votes
0answers
18 views

Individual page load time scales with total number of pages

My kendo grid (using .Pageable()) has a dropdown list of users which displays the entries assigned to the user when selected. When no user is selected, there are 173 pages of results. When trying to ...
1
vote
1answer
39 views

How to Return BadRequest with Object? [duplicate]

In my api reponse i need to return BadRequest Response with Object which is given by user. I am using IHttpActionResult as return type. can any one try to help me. I have tried public ...
0
votes
0answers
11 views

Switch from System.Web.Mail.MailMessage to System.net.mail.mailmessage

In System.net.mail.mailmessage there is replace for "Fields.Add"? Example: System.Web.Mail.MailMessage newMail = new System.Web.Mail.MailMessage(); newMail.Fields.Add("http://schemas.microsoft.com/...
1
vote
0answers
12 views

DateTime format in kendo DatePickerFor for international web

I have a web in MVC core. This web works for many countries and each country must see their own DateTime format. Internally, web has System.Globalization.CultureInfo.CurrentUICulture and System....
0
votes
0answers
8 views

Calling WebApi immediately after updating the IIS server, returning the error message “A task was canceled”

Calling WebApi immediately after updating the IIS server, returning the error message "A task was canceled". But after the release, wait for a while to call the interface and this problem will never ...
0
votes
0answers
10 views

How can you set up a secondary/backup proxy in asp.net mvc?

I am working on a asp.net mvc application that requires a proxy in order to send emails. The < defaultProxy > has been successfully set up in the < system.net > section of the web.config file ...
1
vote
1answer
19 views

How do I fix [Root element is missing]?

I am using vspro 2015 and when I open my project it says The project file could not be loaded. Root element is missing. C:\Users\\Documents\Visual Studio 2015\Projects\bitTemp\bitTemp\bitTemp.csproj ...
0
votes
0answers
10 views

How to authenticate MVC app login via wcf service using adfs 3.0 to connect the AD

I'm trying to find out a scenario whether it is possible and how ? I have a MVC application hosted. This application has a login, after entering the credentials the username and password is ...
0
votes
0answers
27 views

Owl Carousel not working with ASP.NET Blazor

I have been trying to make this owl carousel work. I am not getting any error but the carousel if not loading. I tried the solution I found on StackOverflow for Bootstrap carousel but it did not work ...
0
votes
0answers
25 views

Html.listboxfor() how to capture event on change/add item - Jquery MVC (C#)

I have a requirement where I want to capture when an item is added to the listbox in MVC C#. There are two listboxes, one for available items and another for selected and I'm using buttons for adding ...
0
votes
0answers
10 views

Visual studio publish profile take a copy of existing files

I am using TFS and Visual Studio 2017. I have two servers for load balancing purposes, both servers have identical release versions(In theory) of my MVC application. The current release process is ...
1
vote
1answer
29 views

Getting an exception while loading view in mvc 5 when run after publish on server but working fine on local machine

Getting an exception while running on server after publish but it is working on local system with or without publish. I stuck in it for a day please help for work around. It is working fine on local ...
0
votes
0answers
8 views

Managing user session in Micro frontend

We are planning to adopt to micro frontend, our project is in Asp.Net Core MVC, in which we want multiple apps each owned by different team, where they can develop, test, deploy independently. what I ...
0
votes
0answers
42 views

Login request redirects to Account/Login?ReturnUrl

So basically I have this simple form in my index page: using (Html.BeginForm("ChangeUserName", "Manage", FormMethod.Post)) { @Html.AntiForgeryToken() <input name="newUserName" value="@...
0
votes
1answer
24 views

How to make my bootstrap carousel work witch ASP.NET Razor

i got a problem so i came here for some help, i got some pictures that i want to show like a carousel, i got the carousel working when i use stockphotos from the internet, but when i use photos i got ...
0
votes
0answers
16 views

Kendo Dialog + Grid, how to pass grid name to functions on a page with many grids

I have many kendo grids on one page with custom kendo dialog delete function, and I'd like to get the exact grid name of the delete custom function: .Name("RevenueGrid1") ....
0
votes
2answers
16 views

Bootstrap 4 tooltip style only works in the first section

I have a table that at first only shows 10 rows and here the tooltip displays correctly , but if I change to the next page or display more entries the tooltip doesn’t work correctly in the next ones .
2
votes
0answers
27 views

Azure Active Directory ReturnUri is being ignored for IIS child application when returning from Microsoft login

The Backstory I have an existing ASP.NET MVC5 app that I am wiring up to use oauth2/Azure AD authentication. I actually have this already working in multiple environments (dev/qa/prod/localhost). In ...
-3
votes
2answers
84 views

Any idea how to fix this so I don't get a Javascript TypeError: right-hand side of 'in' should be an object, got string

Have a view with 2 drop-downs the 2nd one disabled by default. When selection is made in first drop-down, it is supposed to both call an action in my controller to retrieve list of values for 2nd drop-...
1
vote
0answers
13 views

nuget package causing HttpRequest.GetBufferlessInputStream error

I've got an ASP.Net MVC project using net 461 that I added a nuget package (that I developed) to and when I attempt to do an ajax call I get "This method or property is not supported after HttpRequest....
3
votes
1answer
23 views

How can we pass list of spotcolor values in PDFLib set-graphics-option?

I have integrated PDFLib library in the c#.net code and I have a requirement to set multiple spotcolor values in set-graphics-option method. I tried the below code but it didn't work... Appreciate ...
0
votes
0answers
8 views

How to properly email a URL via sparkpost with single page applications

I have a single page asp.net mvc application. I create a url programmatically and then send the email off via sparkpost. Sparkpost rewrites the URL for engagement trackings. before rewrite http://...
0
votes
0answers
29 views

Get the filename HttpContent in ASP.NET MVC with Xamarin

My aplication sends an image in Xamarin to my Web API to save the file. I would like to save the file using the filename used in xamarin not the name I put in my code. The code I use in my webAPI ...
0
votes
1answer
37 views

How to pass or copy “invoice_number” value from order table to “invoice_number” value invoice_line_item table ASP.NET MVC and SQL Server

I have two tables named Order and Invoice_Line_Items.I have a column called invoice_number in both tables invoice_number and Invoice_Line_Items.But invoice_number column in Invoice_Line_Items table is ...
0
votes
1answer
49 views

How To Add Empty Row To DataTable

I am using JQuery DataTables and attempting to add an empty row to the DataTable. I have the code below but a new empty row is not added. How do I need to re-write this so that an empty row is added?...
1
vote
0answers
10 views

Swap with preview 'Complete Swap' step restarts production slot

I have Web App with two slots for ASP.NET MVC application. Slots have equal settings. I deploy to "preproduction" slot to check couple of things and warm up application itself. I don't quite ...
2
votes
2answers
39 views

RuntimeBinderException: Cannot perform runtime binding on a null reference

I'm making a create item page, and in this create item page there is a popup modal table where we can choose the type of UoM that we want. And normally when this form is submitted with all of the ...
0
votes
0answers
17 views

Unable to hide Server information from HTTP response header

I'm looking into improving the security of our ASP.net application HTTP response headers and as part of that, I want to remove/hide the server field shown below to avoid exposing the IIS version ...
0
votes
0answers
12 views

how to publish an angular 8 app to the subfolder of asp.net application?

I want to publish an angular application in a subfolder. In the main folder, an Asp.Net Mvc web application is running. But I get error. In the attachments, you can access Web config structure, ...
1
vote
1answer
42 views

Calling Multiple WebAPI - ASP.Net MVC

I have a task to retrieve data from endpoint webapi and display it to View. The external website developers provided me with 2 endpoints. The 1st endpoint is a list of data and only has got : id, ...