-
Notifications
You must be signed in to change notification settings - Fork 10.3k
ASP.net 5 404 error when hosting as an application inside website #1260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Tratcher Can this be related to aspnet/Mvc#3769? |
@javiercn not for a normal browser request to the home page. It's probably aspnet/IISIntegration#14. |
Thanks guys, I will give it a try. |
So I followed along with comments and I found something that I thought would work. I added environment variable in web.config that is in
Then I recycled the app pool and performed IISREST, and when I browse the application In stdout.log file I see below log created:
I also checked httpPlatform |
Are you using the current RC2 packages described here? aspnet/IISIntegration#52 (comment) |
Nope, I am using RC1. Please see below dependencies from project.json file.
|
The web.config workaround only applies to the latest RC2 packages. For RC1 you need to use the Map workaround: aspnet/IISIntegration#14 (comment) |
Thanks @Tratcher. Since RC2 is not production ready yet. I will continue to use RC1. So I applied below settings in
I also tried this as well:
|
|
Hello,
There appears to be an issue hosting asp.net 5 mvc 6 application when hosting an application as an application inside website.
Below is screenshot contains my hosting environment. I have a
ps
application insideAdmin
website. When I browsehttp://localhost:8084/ps
, I get 404 page in the browser.Then I setup a new website called
ps
with port 8085 and configured it to point to application wwwroot path, and when I browse the URLhttp://localhost:8085/
I am able to see the landing page of the application.The text was updated successfully, but these errors were encountered: