Category "asp.net-mvc"

How to find string's left , right, middle side in C#

I want to divide my NameSurname variable to take name and surname seperately. How can I use left, right methods for this? public ActionResult SearchPerson(strin

Web API call sent 3 times in Azure App Service

We are using Azure Web App Service to host our backend API in .NET 4.6. We saw a particular web API ran 3 times exactly after 2 minutes interval. Out of those 3

Cannot find reference assembly 'System.Reflection.Primitives.dll' file for package System.Reflection.Primitives

We have hosted a ASP.NET Core v3.1 Website in IIS. But when I try to view the page getting internal server error. This issue only occurs in the specific machine

How to show deserialized TempData object in view?

I'm getting System.NullReferenceException: 'Object reference not set to an instance of an object.' error in Index2.cshtml file after deserializing my TempData o

Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started

I'm trying to connect my ASP.NET Core MVC application to SQL Server. I'm using the Visual Studio for mac. I wrote the connection string like below : "Connect

Visual Studio 2022 - Where is the RouterConfig.cs and Global.asax in MVC project?

I am new to Visual Studio and ASP.NET and I am watching a tutorial by Mosh Hamedani on MVC development. The tutorial is a couple of years old, but when he crea

Could not load type 'Firebase.Database.FirebaseObject`1' from assembly 'Firebase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Building a MVC with firebase but prompt this error during runtime.Anyone knows how to solve this?

How to convert SqlDataReader result to generic list List<T>

I'm trying to fetch records form Azure database using Ado.net I used SqlDataReader class for that. Even though the data fetch is successful, I don't know how to

Configure redirect Uris of Identity server in docker environment

Okay, this quite big so just skip to the last section for a brief. I have a demo application (netcore 6.0) built on micro-service architect, suppose we have 3 s

Syncfusion EJ2(EJS) Schedule. Cannot populate from JSON

I'm having trouble data binding JSON to the SyncFusion Schedule. Referring to this article In my .cshtml I have this <div class="col control-section">

Getting an invalidcastexception when trying to retrieve data

When running the get method to return a view populated with details, I get the exception saying: System.InvalidCastException: 'Unable to cast object of type 'Sy

Operator "missing" not working properly in JsonLogic

I am using JsonLogic to validate my input payload with the rules defined using JsonLogic. I am able to test the rules using "Play with it" tool and my rules wor

C# renamed class reference issue

We have ASP.NET MVC application which is running on windows server machine. I have renamed classes to satisfy sonar scanning. The code deploys and runs without

Tenants Not Loading When Adding Azure AD Service Dependency

I'm attempting to add an AAD service dependency to a new ASP.NET Core Web App (MVC) project. I went to Connected Services, clicked on "Add a service dependency"

Compilation error after publishing individual Razor page. Persists after publishing entire project. ("Compilation references may be missing")

Today I was working on a .NET Core 3.0 project (VS 2019). I added a CSS class to a <span> on one of my pages. That's it. Nothing else. I figured publishin

Redirect to Action not working using MVC asp.net

I have a requirement, where I validate user using Windows Authentication. Till there it works perfectly fine. But when I try to redirect to respective controlle

Replace Text into an existing PDF document in a specific positions in JavaScript & Asp.net MVC?

I have an existing 20-page pdf file. I need to extract data from our database and incorporate it into a pdf document for specific positions. I did research on G

NET Core 3.1 MVC Authorization/Authentication with token (JWT) obtained externally in separate Net Core 3.1 Web Api

I have 3 projects: Net Core 3.1 MVC project. Net Core 3.1 Web Api project with JWT auth --> connected to db via Entity Framework (Xamarin app that also uses

414 (Request-URI Too Long)

I am working on MVC platform and I am calling jqGrid using JSON GET. I have read on Request Limits, maxQueryStringLength, maxAllowedContentLength, maximum leng

Update From Bootstrap 3.7 to 5.0.2 in .net mvc producing Error- System.NullReferenceException

I uninstalled the basic bootstrap template that comes with .net MVC Application and installed the bootstrap 5.0.2 from NuGetPackage Manager. Now I am Encounteri