Skip to main content
Filter by
Sorted by
Tagged with
405 votes
22 answers
132k views

I had the OwinStartup configuration code working perfectly and then it stopped working. Unfortunately I'm not sure exactly what I did to get it to stop working and am having a really hard time ...
Jeff Treuting's user avatar
0 votes
0 answers
64 views

I'm learning ASP.NET MVC with creating a minimal website which just shows some products. I want to access my start project which it has layout and for that, I should run the project from /Home/Index. ...
AMIR Hossain's user avatar
434 votes
21 answers
30k views

I am looking at the MvcContrib Grid component and I'm fascinated, yet at the same time repulsed, by a syntactic trick used in the Grid syntax: .Attributes(style => "width:100%") The syntax above ...
1 vote
1 answer
56 views

I'm using ASP.NET MVC. This code sits in the Index.cshtml view (I will also place it in the details view). I have a href link which does what it's supposed to do if the user is logged into the ...
Sally Parkes's user avatar
278 votes
20 answers
478k views

I have a simple webAPI build by Visual Studio 2013. It works well when I run it from VS13 but when I copy the project in local IIS it gives me the following error. HTTP Error 500.19 - Internal Server ...
Umar Abbas's user avatar
  • 4,161
1 vote
1 answer
276 views

I am using libgit2sharp within an ASP.NET MVC application writtein in C# and running on IIS v.10.0 (Windows Server 2019). It is working well to execute git commands against the local server's git ...
Martin_W's user avatar
  • 1,857
545 votes
19 answers
326k views

I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in ...
hspain's user avatar
  • 17.6k
0 votes
0 answers
75 views

Using model binding, ASP.NET MVC can take FormData from a form with repeating elements, signified by the use of indexes in square brackets, and populate a .NET object. So this: MyItem[0].MyId=1321&...
Mr Rusty's user avatar
132 votes
18 answers
141k views

While debugging a local ASP.NET application on Chrome for localhost Https site it's giving error: Your connection is not private NET::ERR_CERT_COMMON_NAME_INVALID. I am not able to open localhost ...
Pranav Singh's user avatar
  • 20.3k
0 votes
0 answers
53 views

I have been scanning our deployed (ASP.NET Framework 4.7.2) applications for vulnerabilities and on one of them have encountered the OWASP warning Generic Padding Oracle. My understanding of this ...
Martin Vaughan's user avatar
484 votes
20 answers
280k views

Can I create a Controller that simply returns an image asset? I would like to route this logic through a controller, whenever a URL such as the following is requested: www.mywebsite.com/resource/...
Jonathan's user avatar
  • 33k
251 votes
43 answers
223k views

I am getting the error Could not load type MvcApplication when I try to run my website. How to correct it?
119 votes
16 answers
217k views

VS 2015 community edition (at home), npm 3.10, Angular 2 Im trying to pull get Angular2 setup within an ASP.Net MVC 5 app. The template I started with used an older version of Angular, so I updated ...
bitshift's user avatar
  • 7,032
391 votes
23 answers
256k views

I have this section defined in my _Layout.cshtml @RenderSection("Scripts", false) I can easily use it from a view: @section Scripts { @*Stuff comes here*@ } What I'm struggling with is how to ...
tugberk's user avatar
  • 58.7k
218 votes
15 answers
223k views

The two entities are one-to-many relationship (built by code first fluent api). public class Parent { public Parent() { this.Children = new List<Child>(); } public int ...
Cheng Chen's user avatar
  • 43.7k
344 votes
27 answers
399k views

How can I quickly determine what the root URL is for my ASP.NET MVC application? I.e., if IIS is set to serve my application at http://example.com/foo/bar, then I'd like to be able to get that URL in ...
Benjamin Pollack's user avatar
410 votes
9 answers
325k views

I've been playing around with ASP.NET MVC 4 beta and I see two types of controllers now: ApiController and Controller. I'm little confused at what situations I can choose a particular controller. ...
VJAI's user avatar
  • 32.9k
677 votes
9 answers
230k views

I need to do something fairly simple: in my ASP.NET MVC application, I want to set a custom IIdentity / IPrincipal. Whichever is easier / more suitable. I want to extend the default so that I can call ...
Razzie's user avatar
  • 31.3k
148 votes
12 answers
142k views

ASP.NET core server, AllowSynchronousIO is set to false new WebHostBuilder() .UseKestrel(options => { options.AllowSynchronousIO = false; }) In the ...
Mr.Wang from Next Door's user avatar
1 vote
1 answer
81 views

I have an ASP.NET MVC application that communicates with a WCF service hosted locally. Currently, I consume the WCF service using a Service Reference added via Visual Studio. The problem is: every ...
Soner Kochan's user avatar
0 votes
1 answer
155 views

I'm using a DevExtreme SelectBox in an ASP.NET MVC project. I want the data source to reload every time the dropdown is opened, so that dynamic LoadParams values (like EmployeeId and DocumentDate) are ...
İlahi Nasirov's user avatar
0 votes
1 answer
53 views

We have an old app and no matter what we do, we can't seem to get it to stop emitting JSON error responses. We want just a generic message that won't expose important security details. We've compiled ...
Bluebaron's user avatar
  • 2,526
172 votes
31 answers
687k views

I get this error whenever I submit the form also the action method is not being called because of this: ArgumentException: An item with the same key has already been added. And the exception details:...
user650922's user avatar
  • 2,111
1 vote
0 answers
45 views

I have an ASP.NET MVC web application using DevExpress controls (specifically ASPxGridView and MVCxGridView) that was originally using Forms authentication. As part of a security enhancement, I’ve ...
Ashish George's user avatar
339 votes
17 answers
325k views

I want to save my Edit to Database and I am using Entity FrameWork Code-First in ASP.NET MVC 3 / C# but I am getting errors. In my Event class, I have DateTime and TimeSpan datatypes but in my ...
user522767's user avatar
  • 4,033