Comments (5)
Let me take a look...
from templates.
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.
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.
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.
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)
- Add Security HTTP Headers
- Disabling Docker Leaves Cake File with No Default Task HOT 1
- Improve Docker Image Security
- Investigate New Docker Settings for HTTPS Support
- .NET 7 Improvements
- Unable to access health checks with Orleans template. HOT 3
- Consider using dotnet-releaser HOT 5
- Add Lets Encrypt Feature
- Add Open Telemetry Metrics
- Include `xunit.analyzers` HOT 2
- Donet Cake DockerBuild does not fail the GH action step HOT 3
- Enable reproducible builds HOT 1
- Add Dev Tunnels to launchSettings.json
- .NET 8 Improvements HOT 1
- Two assets found targeting the same path HOT 2
- Reporting a weird error with .NET 7 and changing hostingContext.HostingEnvironment.ApplicationName
- Swagger does not respond with bad request and instead responds with 406
- .editorconfig syntax errors when using EnableGenerateDocumentationFile
- error xUnit1030: Test methods should not call ConfigureAwait(), as it may bypass parallelization limits.
- Microsoft.AspNetCore.ApplicationInsights.HostingStartup is depreciated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templates.