Giter VIP home page Giter VIP logo

Comments (6)

iaingalloway avatar iaingalloway commented on July 18, 2024

Hi, Natiox,

Sorry to hear you're having trouble. I know how much of a pain IIS configuration can be!

  • Are you publishing this example, or your own code based on this example?
  • What are the details of your IIS 8.5 server? Shared? Dedicated? Azure?

from asp.net-httperrors-example.

natiox avatar natiox commented on July 18, 2024

Publishing this unaltered example using a deployment package. Dedicated IIS server on Windows Server 2012...accessing both from internal network and locally on the server. I notice that going to /Error works in debug mode from Visual Studio but that gets a 404 on the server. Wonder if it could be a routing issue?

from asp.net-httperrors-example.

iaingalloway avatar iaingalloway commented on July 18, 2024

I'll see if I can replicate.

from asp.net-httperrors-example.

iaingalloway avatar iaingalloway commented on July 18, 2024

Hi, Natiox,

I've tested deploying to a clean install of IIS 8.5 via FTP, Package, and WebDeploy and have been unable to replicate the behaviour you describe. The site behaves exactly as in the Azure Web Sites live example; in particular the three error pages give me the correct errors and status codes.

from asp.net-httperrors-example.

natiox avatar natiox commented on July 18, 2024

Thank you for all your efforts to replicate this. If you ever need any info I can provide, or for me to try anything, just let me know. I'll close the issue, since it could be a network or configuration issue of some kind.

from asp.net-httperrors-example.

iokevins avatar iokevins commented on July 18, 2024

Hey natiox, I had this exact issue...GitHub solution works as-is in Visual Studio 2017 and IIS Express 10.x, but when deployed to IIS 7.5 in a site subfolder which I had converted to an app, I had to change path="/Error/Forbidden" to path="/MyAppFolder/Error/Forbidden"...otherwise I got empty/blank screen content with 403 forbidden or 404 not found errors, depending on environment (makes sense, in retrospect).

Hope this helps you,

Kevin

from asp.net-httperrors-example.

Related Issues (2)

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.