Hello,
Let me start by saying that I had to modify most of the files in the project by removing most traces of â/ThePhileâ from e.g.
<Ahref="http://localhost/ThePhile/Modules/NewsManager/ShowHeadlines.aspx">
<%@ Register TagPrefix="WroxUser" TagName="SiteHeader" Src="/ThePhile/Controls/SiteHeader.ascx" %>
to have the site partially running.
My main problem is trying to login. When I try I get an error.
Application Error
--------------------------------------------------------------------------------
An unexpected error has occurred in this Application. The system administrators have been notified. Please feel free to contact us with the information surrounding this error.
The error occurred in:
http://67.68.203.40/ThePhile/Modules/Users/Login.aspx
Error Message: Exception of type System.Web.HttpException was thrown.
--------------------------------------------------------------------------------
Stack Trace:
System.Web.HttpException: Exception of type System.Web.HttpException was thrown. ---> System.IO.FileNotFoundException: F:\Downloads\Wrox\ThePhile\ThePhile\Modules\Users\ Login.aspx at System.Web.UI.TemplateParser.GetParserCacheItem() at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String url, String path) at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) --- End of inner exception stack trace --- at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) at System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously
So what I did was delete â/ThePhileâ from the SiteHeader.ascx.cs file UserLink.NavigateUrl = "/ThePhile/Modules/Users/Login.aspx" and the from the web.config file
<authentication mode="Forms">
<forms name="ThePhile" path="/" loginUrl="/ThePhile/Modules/Users/Login.aspx"
protection="All" timeout="30">
</forms>
</authentication>
I tried to login and once again I got the same error message.
Why is it when I run the web app. and I place the mouse over the hyperlink âclick to loginâ on the site header
I see at the bottom of the browser
http://69.70.49.31/ThePhile/Modules/Users?Login.aspx even after I removed the â/ThePhileâ from files mentioned above?
I also noticed when I viewed the source from the browser, it also referenced the login url
http://69.70.49.31/ThePhile/Modules/Users?Login.aspx
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>Welcome to ThePhile.COM!</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR" />
<meta content="C#" name="CODE_LANGUAGE" />
<meta content="JavaScript" name="vs_defaultClientScript" />
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
<link href="Styles/Navigator.css" rel="stylesheet" />
<link href="Styles/ThePhile.css" rel="stylesheet" />
</head>
<body>
<form name="Default" method="post" action="Default.aspx" id="Default">
<input type="hidden" name="__VIEWSTATE" value="dDwtMzExNTY4NDk0O3Q8O2w8aTwxPjs+O2w8dDw7bDx pPDE+O2k8NT47PjtsPHQ8O2w8aTwxPjtpPDM+Oz47bDx0PHA8c DxsPFRleHQ7PjtsPFdlbGNvbWUsIEd1ZXN0IFVzZXIuOz4+Oz4 7Oz47dDxwPHA8bDxUZXh0O05hdmlnYXRlVXJsOz47bDxDbGlja yB0byBMb2dpbjsvVGhlUGhpbGUvTW9kdWxlcy9Vc2Vycy9Mb2d pbi5hc3B4Oz4+Oz47Oz47Pj47dDw7bDxpPDA+Oz47bDx0PDtsP Gk8MT47aTwyPjtpPDQ+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDx wPGw8VGV4dDs+O2w8V2hvIGlzIHlvdXIgZmF2b3VyaXRlIGFjd HJlc3M/Oz4+Oz47Oz47Pj47dDw7bDxpPDA+Oz47bDx0PDtsPGk8MD47Pj tsPHQ8dDw7dDxpPDEwPjtAPE1lZyBSeWFuO0NhdGhlcmluZSBa ZXRhIEpvbmVzO0p1bGlhIFJvYmVydHM7QW5nZWxpbmEgSm9saW U7Q2FtZXJvbiBEaWF6O1NhbmRyYSBCdWxsb2NrO01hcnlsaW4g TW9ucm9lO0phY2sgTGVtbW9uO1RvbnkgQ3VydGlzO0xpdiBUeW xlcjs+O0A8NjY7NzE7NzM7NzQ7NzU7NzY7OTE7OTk7MTAwOzEw MTs+Pjs+Ozs+Oz4+Oz4+O3Q8O2w8aTwwPjs+O2w8dDw7bDxpPD A+Oz47bDx0PEAwPHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47 Pjs7Ozs7Ozs7Pjs7Pjs+Pjs+Pjs+Pjs+Pjs+Pjs+Pjs+8ttfTk ihjMWDP5Yh1X6XhFM3Qw0=" />
<link href="../../Styles/ThePhile.css" rel="stylesheet">
<table class="Site_Header" width="100%" border="0">
<tbody>
<tr>
<td width="50%">
<ahref="/default.aspx"><imgalt="ThePhile.COM" src="/images/ThePhile.gif" border="0" /></a>
</td>
<td valign="bottom" align="right">
<span id="Header_Greeting">Welcome, Guest User.</span>
<a id="Header_UserLink" href="/ThePhile/Modules/Users/Login.aspx">Click to Login</a>
</td>
</tr>
</tbody>
</table>
My setup consisted of setting the ThePhile web app. as new web site âNOT UNDER THE DEFAULT WEB SITEâ
in IIS 6.0, and security under anonymous users.
By no means am I a guru in asp.net and c# so any help would be much appreciated.
Thanks
Karl