Solved

asp.net getting HTTP Error 404.15 - Not Found

Posted on 2014-12-17
4
632 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 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