I am trying to implement UseStatusCodePagesWithReExecute. I have it set up and it works...but perhaps too well. I am using Windows auth and IIS with anonymous access disabled. The problem is that when the site comes up it automatically goes to the error page due to a 401 unauthorized (which does make sense). I should be getting the built in login prompt. When I comment out the middleware in my startup class I get the login prompt and all is good. Is UseStatusCodePagesWithReExecute not a good choice for this? Am I missing something to make it work with Windows auth?
.NET CORE 2 MVC UseStatusCodePagesWithReExecute Windows Auth 401 issue
196 Views Asked by AnotherDev At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in ASP.NET-CORE-MVC-2.1
- Passing TempData with RedirectToAction works in Visual Studio but not in production
- Can not add migration after migrating to ASP.Net Core Identity 2.1
- The binary image can't display on view asp.net core 2.x
- Model Binding not working with Attribute Routing in .net Core 2.1
- TempData isn't persisting data on Production Server [ASP.NET CORE 2.1]
- Selected string value of select not posting in asp.net MVC core 3.0
- IdentityServer4 Asp.Net Core Identity
- Submit a Form using AJAX in ASP.Net Core MVC
- how to write a post controller action method to call an external api in .Net Core Web API
- ModelState.IsValid is validating referenced entity
- Can't return Value Tuple from C# Class Library to ASP.net Core 2.1 MVC app
- Is it possible to get environment variable from webapp coming from webjob
- How do I resolve version conflicts in aspnet core 2.1? (2.1.1 >= 2.1.0-rc1-final)
- Implementing XSRF-Token in ASP.Net Core with SPA Prerendering and JWT Bearer Authentication
- ASPNet Core 2.1 correct way to load precompiled views
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Derp...I figured it out. Immediately after posting the question I went and looked at the web project settings and found that the IIS Express settings had Allow Anonymous Authentication checked. I unchecked the box and presto! It started working as expected. Hope this helps someone.