Comments (7)
Did you set existingResponse="PassThrough"
on Web.config? see this.
from mvcaccount.
Yes, I tried existingResponse="PassThrough"
, but it makes NotFoundMvc stop working for nonexistent static content (e.g. static.html, static.jpg) and for paths that exist but shouldn't be served (e.g. /controllers, /global.asax) and IIS request filtering (e.g. bin, web.config, app_code, app_globalresources, app_localresources, app_webreferences, app_data, app_browsers).
Steps to Reproduce
- Install NotFoundMvc (if not installed yet).
- Configure Samples application web server (if not done yet).
- Open Web.config of Samples application and go to line:
<error statusCode="404" subStatusCode="-1" path="/notfound" responseMode="ExecuteURL" />
and change it to:
<error statusCode="404" subStatusCode="-1" path="/samples/notfound" responseMode="ExecuteURL" />
- Run Samples application.
- Browse URLs like:
- Go back to Web.config and add
existingResponse="PassThrough"
. - Browse those URLs like again.
from mvcaccount.
Perhaps this works?
<location path="Account">
<system.webServer>
<httpErrors existingResponse="PassThrough" />
</system.webServer>
</location>
from mvcaccount.
I see the HandleError
attribute, not used by MvcAccount, also sets TrySkipIisCustomErrors = true
, so it seems to be a common practice. I'll do some testing, see if this change breaks anything.
from mvcaccount.
Adding <location path="Account">...
indeed fix the problem with the Sign In page, but it breaks the '404' page for paths like http://localhost/Samples/Account/static.html .
from mvcaccount.
Let me know if the fix works for you. Apparently if you use TrySkipIisCustomErrors = true
then existingResponse="PassThrough"
is not needed anymore, does your testing tell you the same?
from mvcaccount.
Yes, the fix works fine.
And yes, now existingResponse="PassThrough"
is not needed anymore, even when NotFoundMvc is not installed.
Thank you very much.
from mvcaccount.
Related Issues (11)
- Point out important part in installation instructions HOT 2
- Need to be able to create users HOT 2
- Email Verification and HTML mail templates HOT 1
- Use DataType.EmailAddress
- Exception while resetting password
- Cannot override template for input model in EditorTemplates
- Use EmailAddressAttribute on .NET 4.5 HOT 1
- Use type="email"
- Leverage MVC 5.1 htmlAttributes support for class="form-control" HOT 1
- Minimize the properties/columns required on user account
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 mvcaccount.