Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2004, 05:31 AM
Registered User
 
Join Date: Jun 2003
Location: , , Canada.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to login running on win server 2003

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>&nbsp;&nbsp;
                <a id="Header_UserLink" href="/ThePhile/Modules/Users/Login.aspx">Click to Login</a>
                &nbsp;&nbsp;

            </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
 
Old May 5th, 2004, 07:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It can't find the login file here:
<authentication mode="Forms">
        <forms name="ThePhile" path="/" loginUrl="/ThePhile/Modules/Users/Login.aspx"
            protection="All" timeout="30">
        </forms>
    </authentication>

 
Old May 6th, 2004, 09:28 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If your site is online you may want to hard code the loginUrl to the absolute path. For example:
<authentication mode="Forms">
        <forms name="ThePhile" path="/" loginUrl="http://www.thephile.com/Modules/Users/Login.aspx"
            protection="All" timeout="30">
        </forms>
    </authentication>





Similar Threads
Thread Thread Starter Forum Replies Last Post
-2147024769 Automation Error on MS Win Server 2003 NeilSc Pro VB 6 2 May 10th, 2007 08:07 AM
unidcode utf-8 in iis 6.0 win server 2003 cyus Classic ASP Components 0 September 22nd, 2005 04:45 AM
win server 2003 problem slavni Classic ASP Databases 6 April 13th, 2005 03:32 AM
Sending email on win 2003 server md_haris VBScript 3 October 21st, 2004 12:20 PM
Access is denied - run on Win Server 2003 jackchua BOOK: ASP.NET Website Programming Problem-Design-Solution 3 April 15th, 2004 05:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.