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.
asp.net-mvc
201,302
questions
0
votes
0
answers
7
views
ASP.NET MVC 5 : Request.isAuthenticated always returns true after host app on web server
I am using Identity authentication, the app and the code in razor view works correctly when executed in Visual Studio 2015, but after publishing and hosting the application on Smarterasp host, the ...
0
votes
1
answer
17
views
Implementing Background thread for a long running task
How can I manage two tasks that each take more than two hours to execute in .net MVC? I've been fetching a huge amount of data from a third-party website, and although I've tried using async/await, ...
1
vote
1
answer
34
views
Need to update all Nuget packages to latest version in a solution that has projects which targets both .NET 4.7.1 and .NET 8
I have many solutions, and each solution has many projects. Some projects may be used in multiple solutions.
The ASP.NET MVC web app is targetting .NET 4.7.1. The API and library project both target ....
1
vote
0
answers
22
views
Autofill color not changing or updating
I am just starting out in ASP.NET and following a tutorial im using the mvc project and I have a form in dark theme however when you autofill the form with chrome such as name and phone number. It ...
0
votes
0
answers
10
views
Asp.net MVC Getting Paypal Access Token in Live Mode
I used the following code to get a Paypal token in Sandbox mode, it works fine. However, switching the Live produces not code.
private string GetPaypalAccessToken()
{
string accessToken = ""...
1
vote
1
answer
31
views
How to conditionally render style attribute in Razor template without causing NullReferenceException?
I am working on a templating project using C# and Razor Engine (Razor Templating Engine). The objective is to create React code using my own JSON definition.
My AppDefinition.json looks like this when ...
0
votes
0
answers
12
views
TinyMCE: Referer header is missing error in asp.net mvc
I created an account in TinyMCE and get the API key.
after that I added Localhost in my approved Domain and my script looks like below
<script src="https://cdn.tiny.cloud/1/APIKey/tinymce/7/...
0
votes
1
answer
28
views
Null Value in my Address Type and Contact Type upon clicking submit button using ASP.NET Core
can some help me with my error. I trying to save the resident information, for resident,address and contact information, Now I am encountering a null value for address type and contact type.
In this ...
0
votes
0
answers
42
views
x64 and x86 folder is missing in PublishBuildArtifact@1 in Azure CI Pipeline
The solutions contain MVC Web App in .Net Framework 4.7.1. The service layer library project and API are in .Net Core 6.0
Azure CI pipeline use windows-2019 and CI published zip artifact has x64 and ...
-6
votes
0
answers
37
views
this Code gives error of 'An error occurred while updating the entries. See the inner exception for details.' [closed]
[HttpPost]
public ActionResult AddApprovalStage(string Levels, string PlantCode)
{
try
{
var levelsList = JsonConvert.DeserializeObject<List<ApprovalStageViewModel>>(Levels)...
0
votes
0
answers
19
views
Return view from nested classes in ASP.NET MVC for complex json String
My Model is : (Problematic section is Variant[] Variants, that is not passing to controller)
public class SingleProduct
{
public Product1 product { get; set; }
}
public class Product1
{
[...
0
votes
0
answers
23
views
ASP.NET MVC 5 Google Api mybusinessInformation
I try to get the reviews for an enterprise to show it on their website.
But I can't connect, I have all ready uri redirect mismatch.
I am developing with ASP.NET MVC 5, C#, I tried app.authgoogleAuth ...
0
votes
0
answers
32
views
.net mvc project sdk package error: MSB4019: The imported project "../Microsoft.NET.Sdk.Common.targets " was not found
My project was working smoothly until a while ago I reopen it to find the following error when trying to build it (I'm using vs code)
I noticed sdk 8.0.107 being recently updated/implemented ...
0
votes
0
answers
14
views
Cannot read property 'settings' of undefined while inline editing Telerik Grid
I've enabled in-line editing on my Telerik grid. However, whenever I click on a cell, I get an error saying "cannot read property." After some investigation, I realized that the issue is ...
1
vote
0
answers
24
views
403 ERROR (FORBIDDEN) - When Publishing a .NET Core Web Application in HostGator
I created an ASP .NET Core Web Application (Model-View-Controller) in Visual Studio 2022.
I concluded the development and now i want to publish it in the web using HostGator.
I uploaded all the ...