Solved

asp.net getting HTTP Error 404.15 - Not Found

Posted on 2014-12-17
4
616 Views
Last Modified: 2014-12-28
When running a web application from the root directory of the web server, everything works well. When trying to publish the web site to a virtual directory I get the HTTP Error 404.15 - Not Found.HTTP-Error-404.15.png
0
Comment
Question by:Edwin Bowles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:Edwin Bowles
ID: 40510175
When the attached is published to the root directory of a web server, everything works fine. When it is published to a virtual directory I get the error screen displayed earlier.
Default.aspx
Default.aspx.cs
LogOn.aspx
LogOn.aspx.cs
Web.config
0
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 40512747
Hey check below steps

    Excluded all the items under the "Account" folder except Login.aspx
    Excluded IdentityConfig and Startup.Auth under the "App_Start" folder
    Excluded IdentityModels under the "Models" folder
    Excluded "Startup" under the "root" folder of the application
    Commented out all the code under "Page_Load" and "LogIn" inside the Login.aspx code file
    Commented out code with "OpenAuthProviders" in the Login.aspx markup

    Added the following key to the "appSettings" section inside the web.config file

    < add key="owin:AutomaticAppStartup" value="false" />

Reference URL : http://stackoverflow.com/questions/24495585/http-error-404-15-the-request-filtering-module-is-configured-to-deny-a-request-w
0
 

Accepted Solution

by:
Edwin Bowles earned 0 total points
ID: 40515015
I was able to resolve the problem in the original code by replacing all redirects with the FormsAuthentication.RedirectFromLoginPage(sys_user_session.userName, true); statement. After this change everything started working fine.
0
 

Author Closing Comment

by:Edwin Bowles
ID: 40520305
The person that originally wrote the code tried to take control of the Authentication process. This seemed to work OK when the user published the Authentication code into the root directory. As soon as you published to a different folder and a web folder , converted to a web application, it would no longer work. I replaced the Response.Redirects in the Master page and the content pages to FormsAuthentication.RedirectFromLoginPage(sys_user_session.userName, true);. Everything seemed to start working.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with mod_substitute 18 74
IIS Authentication Error 401 16 66
SQL Server Serialization error 8 42
GZip turned off everywhere but still in headers - IIS Win Server 2012 5 29
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question