Tag: r

68 votes
30 answers
1.5K views
Visual Studio debugging/loading very slow

I'm at wit's end. Visual Studio is typically painfully slow to debug or just plain load ("start with

avatar
Eddie
0 1 0 9
asked 07 September, 2021
59 votes
19 answers
491 views
How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error:

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
53 votes
14 answers
2.5K views
Passing data to a bootstrap modal

I've got a couple of hyperlinks that each have an ID attached. When I click on this link, I want to open

avatar
Shantay
0 1 0 9
asked 07 September, 2021
62 votes
15 answers
554 views
RedirectToAction with parameter

I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int. Later on I need

avatar
Xavier
0 1 0 9
asked 07 September, 2021
49 votes
9 answers
589 views
ASP.NET MVC - Set custom IIdentity or IPrincipal

I need to do something fairly simple: in my ASP.NET MVC application, I want to set a custom IIdentity / IPrinc

avatar
Frederick
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
448 views
How do you handle multiple submit buttons in ASP.NET MVC Framework?

Is there some easy way to handle multiple submit buttons from the same form? For example: <% Html.BeginFor

avatar
Freida
0 1 0 9
asked 07 September, 2021
63 votes
13 answers
1.9K views
Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction

In ASP.NET MVC, what is the difference between: Html.Partial and Html.RenderPartial Html.Action and Html.Rend

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
3.1K views
Could not find a part of the path ... bin oslyncsc.exe

I am trying to run Asp.net MVC project retrieved from TFS source control. I have added all assembly reference

avatar
Joseph
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
1.9K views
A potentially dangerous Request.Form value was detected from the client

Every time a user posts something containing < or > in a page in my web application, I get this exceptio

avatar
Patsy
0 1 0 9
asked 07 September, 2021
46 votes
14 answers
858 views
How to set ASPNETCORE_ENVIRONMENT to be considered for publishing an ASP.NET Core application

When I publish my ASP.NET Core web application to my local file system, it always takes the production-config

avatar
Rufus
0 1 0 9
asked 07 September, 2021
49 votes
7 answers
1.6K views
Access the current HttpContext in ASP.NET Core

I need to access current HttpContext in a static method or a utility service. With classic ASP.NET MVC and Sy

avatar
Nidia
0 1 0 9
asked 07 September, 2021
64 votes
5 answers
1.8K views
How to return a specific status code and no contents from Controller?

I want the example controller below to return a status code 418 with no contents. Setting the status code is e

avatar
Wei
0 1 0 9
asked 07 September, 2021
57 votes
12 answers
811 views
How do I write logs from within Startup.cs?

In order to debug a .NET Core app which is failing on startup, I would like to write logs from within the star

avatar
Lynette
0 1 0 9
asked 07 September, 2021
59 votes
5 answers
933 views
Send HTTP POST message in ASP.NET Core using HttpClient PostAsJsonAsync

I want to send dynamic object like new { x = 1, y = 2 }; as body of HTTP POST message. So I try to write v

avatar
Patsy
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
1.9K views
How do I access Configuration in any class in ASP.NET Core?

I have gone through configuration documentation on ASP.NET core. Documentation says you can access configurati

avatar
Eddie
0 1 0 9
asked 07 September, 2021
60 votes
3 answers
1.7K views
Return file in ASP.Net Core Web API

Problem I want to return a file in my ASP.Net Web API Controller, but all my approaches return the HttpRespon

avatar
Corrin
0 1 0 9
asked 07 September, 2021
56 votes
13 answers
2.7K views
.NET Core MVC Page Not Refreshing After Changes

I'm building a .NET Core MVC on the latest version 2.2. I have a problem when I make changes to the CSHTM

avatar
Virgil
0 1 0 9
asked 07 September, 2021
50 votes
4 answers
808 views
Token Based Authentication in ASP.NET Core

I'm working with ASP.NET Core application. I'm trying to implement Token Based Authentication but ca

avatar
Dorian
0 1 0 9
asked 07 September, 2021
53 votes
6 answers
2.1K views
Where did IMvcBuilder AddJsonOptions go in .Net Core 3.0?

I've just upgraded my ASP web API project from .Net core 2.0 to 3.0. I was using services.AddMvc(

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
61 votes
15 answers
2.2K views
How to get current user in asp.net core

I want to get the current user, so I can access fields like their email address. But I can't do that in a

avatar
Percy
0 1 0 9
asked 07 September, 2021