Access denied to wrong URL being logged Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creationPath.Combine for URLs?watin nunit UnauthorizedAccessException : Access is deniedDots in URL causes 404 with ASP.NET mvc and IISLogParser Access Denied errorAccess is denied error windows phone 8WinRT Sterling DB crashing when built in ReleaseHow to edit SampleData.json - Access denied - Windwos 8 appsWin10 IoT + RPI3 WiFiAdapter throws Access DeniedC# - Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))UWP Shutdown error code

How to identify unknown coordinate type and convert to lat/lon?

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

How would a mousetrap for use in space work?

Most bit efficient text communication method?

C's equality operator on converted pointers

Drawing spherical mirrors

How to write capital alpha?

How often does castling occur in grandmaster games?

How do I find out the mythology and history of my Fortress?

How many time has Arya actually used Needle?

How long can equipment go unused before powering up runs the risk of damage?

What does it mean that physics no longer uses mechanical models to describe phenomena?

What does this say in Elvish?

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

Is there hard evidence that the grant peer review system performs significantly better than random?

Misunderstanding of Sylow theory

How does Belgium enforce obligatory attendance in elections?

An adverb for when you're not exaggerating

Do I really need to have a message in a novel to appeal to readers?

Semigroups with no morphisms between them

How can I set the aperture on my DSLR when it's attached to a telescope instead of a lens?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?

Can a Beast Master ranger change beast companions?



Access denied to wrong URL being logged



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creationPath.Combine for URLs?watin nunit UnauthorizedAccessException : Access is deniedDots in URL causes 404 with ASP.NET mvc and IISLogParser Access Denied errorAccess is denied error windows phone 8WinRT Sterling DB crashing when built in ReleaseHow to edit SampleData.json - Access denied - Windwos 8 appsWin10 IoT + RPI3 WiFiAdapter throws Access DeniedC# - Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))UWP Shutdown error code



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I have a migration from aspx to MVC5, and when I'm not logged, if I write a wrong route, I get a 404 error, fine. But if I'm logged and I try that, I get this:




[UnauthorizedAccessException: Denied access. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))]




It doesn't matter if its a wrong controller or action, just a wrong route. I have tried this post: Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creation, but it didn't work. It's not a local issue, because it's happening in other computer (in localhost, of course).



EDIT



I have found that a exception is being throwed just when "Application_PreSendRequestHeaders" (both workflows reach this method equally) is going to return the webpage. When I'm not logged, all works fine and after that method I get 404 page. But when I'm logged, I don't know why, just after "Application_PreSendRequestHeaders", flow goes to "Application_BeginRequeset" again to prepare error request.



I have to say, too, this error is "handled" in a else clause in "Application_Error" and the if condition is:



Context != null && Context.IsCustomErrorEnabled


Being "IsCustomErrorEnabled" = false and having it setted in my Web.config to get custom errors.



EDIT 2



Well, doing some test, I realised that "HttpContext.Current.User.Identity.Name" changes when flows goes from "Application_PreSendRequestHeaders" to "Application_BeginRequeset". I don't know how nor why, but it takes my computer user name.










share|improve this question
























  • I get this: What do you mean by I get this? Does it show in Visual Studio? In the web browser? Something else?

    – mjwills
    Mar 22 at 11:11











  • Hi Felix, welcome to StackOverflow. You need to give a little more information about the error. Could you please share your routeconfig code and also the controller action methods responsible to handle 404 and 403 errors. You can edit your question to give us this info.

    – Priyank Panchal
    Mar 22 at 11:13












  • I was talking about what I get in my browser after search a wrong route, Mjwills.

    – Félix
    Mar 22 at 12:37











  • I have edited the question, Pryank. But it wasn't about how I handle the errors. It's happening something that I don't know how to catch it.

    – Félix
    Mar 22 at 12:38











  • Does your application use WMI? 0x80070005 is a WMI error. See docs.microsoft.com/en-us/windows/desktop/WmiSdk/…

    – Amy
    Mar 22 at 16:11

















-1















I have a migration from aspx to MVC5, and when I'm not logged, if I write a wrong route, I get a 404 error, fine. But if I'm logged and I try that, I get this:




[UnauthorizedAccessException: Denied access. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))]




It doesn't matter if its a wrong controller or action, just a wrong route. I have tried this post: Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creation, but it didn't work. It's not a local issue, because it's happening in other computer (in localhost, of course).



EDIT



I have found that a exception is being throwed just when "Application_PreSendRequestHeaders" (both workflows reach this method equally) is going to return the webpage. When I'm not logged, all works fine and after that method I get 404 page. But when I'm logged, I don't know why, just after "Application_PreSendRequestHeaders", flow goes to "Application_BeginRequeset" again to prepare error request.



I have to say, too, this error is "handled" in a else clause in "Application_Error" and the if condition is:



Context != null && Context.IsCustomErrorEnabled


Being "IsCustomErrorEnabled" = false and having it setted in my Web.config to get custom errors.



EDIT 2



Well, doing some test, I realised that "HttpContext.Current.User.Identity.Name" changes when flows goes from "Application_PreSendRequestHeaders" to "Application_BeginRequeset". I don't know how nor why, but it takes my computer user name.










share|improve this question
























  • I get this: What do you mean by I get this? Does it show in Visual Studio? In the web browser? Something else?

    – mjwills
    Mar 22 at 11:11











  • Hi Felix, welcome to StackOverflow. You need to give a little more information about the error. Could you please share your routeconfig code and also the controller action methods responsible to handle 404 and 403 errors. You can edit your question to give us this info.

    – Priyank Panchal
    Mar 22 at 11:13












  • I was talking about what I get in my browser after search a wrong route, Mjwills.

    – Félix
    Mar 22 at 12:37











  • I have edited the question, Pryank. But it wasn't about how I handle the errors. It's happening something that I don't know how to catch it.

    – Félix
    Mar 22 at 12:38











  • Does your application use WMI? 0x80070005 is a WMI error. See docs.microsoft.com/en-us/windows/desktop/WmiSdk/…

    – Amy
    Mar 22 at 16:11













-1












-1








-1








I have a migration from aspx to MVC5, and when I'm not logged, if I write a wrong route, I get a 404 error, fine. But if I'm logged and I try that, I get this:




[UnauthorizedAccessException: Denied access. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))]




It doesn't matter if its a wrong controller or action, just a wrong route. I have tried this post: Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creation, but it didn't work. It's not a local issue, because it's happening in other computer (in localhost, of course).



EDIT



I have found that a exception is being throwed just when "Application_PreSendRequestHeaders" (both workflows reach this method equally) is going to return the webpage. When I'm not logged, all works fine and after that method I get 404 page. But when I'm logged, I don't know why, just after "Application_PreSendRequestHeaders", flow goes to "Application_BeginRequeset" again to prepare error request.



I have to say, too, this error is "handled" in a else clause in "Application_Error" and the if condition is:



Context != null && Context.IsCustomErrorEnabled


Being "IsCustomErrorEnabled" = false and having it setted in my Web.config to get custom errors.



EDIT 2



Well, doing some test, I realised that "HttpContext.Current.User.Identity.Name" changes when flows goes from "Application_PreSendRequestHeaders" to "Application_BeginRequeset". I don't know how nor why, but it takes my computer user name.










share|improve this question
















I have a migration from aspx to MVC5, and when I'm not logged, if I write a wrong route, I get a 404 error, fine. But if I'm logged and I try that, I get this:




[UnauthorizedAccessException: Denied access. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))]




It doesn't matter if its a wrong controller or action, just a wrong route. I have tried this post: Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creation, but it didn't work. It's not a local issue, because it's happening in other computer (in localhost, of course).



EDIT



I have found that a exception is being throwed just when "Application_PreSendRequestHeaders" (both workflows reach this method equally) is going to return the webpage. When I'm not logged, all works fine and after that method I get 404 page. But when I'm logged, I don't know why, just after "Application_PreSendRequestHeaders", flow goes to "Application_BeginRequeset" again to prepare error request.



I have to say, too, this error is "handled" in a else clause in "Application_Error" and the if condition is:



Context != null && Context.IsCustomErrorEnabled


Being "IsCustomErrorEnabled" = false and having it setted in my Web.config to get custom errors.



EDIT 2



Well, doing some test, I realised that "HttpContext.Current.User.Identity.Name" changes when flows goes from "Application_PreSendRequestHeaders" to "Application_BeginRequeset". I don't know how nor why, but it takes my computer user name.







c# asp.net-mvc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 15:20







Félix

















asked Mar 22 at 11:03









FélixFélix

11




11












  • I get this: What do you mean by I get this? Does it show in Visual Studio? In the web browser? Something else?

    – mjwills
    Mar 22 at 11:11











  • Hi Felix, welcome to StackOverflow. You need to give a little more information about the error. Could you please share your routeconfig code and also the controller action methods responsible to handle 404 and 403 errors. You can edit your question to give us this info.

    – Priyank Panchal
    Mar 22 at 11:13












  • I was talking about what I get in my browser after search a wrong route, Mjwills.

    – Félix
    Mar 22 at 12:37











  • I have edited the question, Pryank. But it wasn't about how I handle the errors. It's happening something that I don't know how to catch it.

    – Félix
    Mar 22 at 12:38











  • Does your application use WMI? 0x80070005 is a WMI error. See docs.microsoft.com/en-us/windows/desktop/WmiSdk/…

    – Amy
    Mar 22 at 16:11

















  • I get this: What do you mean by I get this? Does it show in Visual Studio? In the web browser? Something else?

    – mjwills
    Mar 22 at 11:11











  • Hi Felix, welcome to StackOverflow. You need to give a little more information about the error. Could you please share your routeconfig code and also the controller action methods responsible to handle 404 and 403 errors. You can edit your question to give us this info.

    – Priyank Panchal
    Mar 22 at 11:13












  • I was talking about what I get in my browser after search a wrong route, Mjwills.

    – Félix
    Mar 22 at 12:37











  • I have edited the question, Pryank. But it wasn't about how I handle the errors. It's happening something that I don't know how to catch it.

    – Félix
    Mar 22 at 12:38











  • Does your application use WMI? 0x80070005 is a WMI error. See docs.microsoft.com/en-us/windows/desktop/WmiSdk/…

    – Amy
    Mar 22 at 16:11
















I get this: What do you mean by I get this? Does it show in Visual Studio? In the web browser? Something else?

– mjwills
Mar 22 at 11:11





I get this: What do you mean by I get this? Does it show in Visual Studio? In the web browser? Something else?

– mjwills
Mar 22 at 11:11













Hi Felix, welcome to StackOverflow. You need to give a little more information about the error. Could you please share your routeconfig code and also the controller action methods responsible to handle 404 and 403 errors. You can edit your question to give us this info.

– Priyank Panchal
Mar 22 at 11:13






Hi Felix, welcome to StackOverflow. You need to give a little more information about the error. Could you please share your routeconfig code and also the controller action methods responsible to handle 404 and 403 errors. You can edit your question to give us this info.

– Priyank Panchal
Mar 22 at 11:13














I was talking about what I get in my browser after search a wrong route, Mjwills.

– Félix
Mar 22 at 12:37





I was talking about what I get in my browser after search a wrong route, Mjwills.

– Félix
Mar 22 at 12:37













I have edited the question, Pryank. But it wasn't about how I handle the errors. It's happening something that I don't know how to catch it.

– Félix
Mar 22 at 12:38





I have edited the question, Pryank. But it wasn't about how I handle the errors. It's happening something that I don't know how to catch it.

– Félix
Mar 22 at 12:38













Does your application use WMI? 0x80070005 is a WMI error. See docs.microsoft.com/en-us/windows/desktop/WmiSdk/…

– Amy
Mar 22 at 16:11





Does your application use WMI? 0x80070005 is a WMI error. See docs.microsoft.com/en-us/windows/desktop/WmiSdk/…

– Amy
Mar 22 at 16:11












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298256%2faccess-denied-to-wrong-url-being-logged%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298256%2faccess-denied-to-wrong-url-being-logged%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript