Code Monkey home page Code Monkey logo

Comments (5)

RehanSaeed avatar RehanSaeed commented on May 19, 2024

Let me take a look...

from templates.

RehanSaeed avatar RehanSaeed commented on May 19, 2024

It works on a local IIS but not on Azure. There are some indications that the httpErrors section in Web.config does not work on Azure. I've spent the last hour trying different things without much luck so far.

I've raised this question and put a bounty on this one.

from templates.

BishoyDemian avatar BishoyDemian commented on May 19, 2024

What I ended up doing is removing the httpErrors section completely and
using CustomErrors instead. it works reliably on bothe, IIS and Azure
WebApps

On 10 April 2016 at 17:51, Muhammad Rehan Saeed [email protected]
wrote:

It works on a local IIS but not on Azure. There are some indications that
the httpErrors section in Web.config does not work on Azure. I've spent the
last hour trying different things without much luck so far.

I've raised this
https://stackoverflow.com/questions/36527026/how-to-stop-azure-iis-appending-error-status-code-query-string
question and put a bounty on this
https://serverfault.com/questions/586875/iis-httperrors-executeurl-appends-weird-query-string-like-500http-mysite-com
one.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#82 (comment)

from templates.

RehanSaeed avatar RehanSaeed commented on May 19, 2024

Can you please post the fragment of config you used to get it working? I'm not sure how to handle this. Probably add it in commented out with a message to uncomment if using Azure?

from templates.

BishoyDemian avatar BishoyDemian commented on May 19, 2024

Hi Rehan, sorry for the late reply. was a bit busy here.

here is the fragment I changed after removing

<customErrors mode="On" defaultRedirect="~/error/generic.html">
  <error statusCode="400" redirect="/error/badrequest/" />
  <error statusCode="401" redirect="/error/unauthorized/" />
  <error statusCode="403" redirect="/error/forbidden.html" />
  <error statusCode="404" redirect="/error/notfound/" />
  <error statusCode="405" redirect="/error/methodnotallowed/" />
  <error statusCode="500" redirect="error\serviceunavailable.html" />
  <error statusCode="503" redirect="error\serviceunavailable.html" />
  <error statusCode="504" redirect="error\gatewaytimeout.html" />
</customErrors>

On 17 April 2016 at 19:27, Muhammad Rehan Saeed [email protected]
wrote:

Can you please post the fragment of config you used to get it working?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#82 (comment)

from templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.