Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 April 19th, 2006, 12:53 AM
Authorized User
 
Join Date: Mar 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default CMS-Cant Login

Hello,

My CMS installation is successful. I can see the admin and Login tabs too. But when i place my Username as " Adminsitrator " and Password as " Admin123# " I cannot login. ( username and password as mentioned in book )

In case if i try to type another password, i get an error. But the strange thing is I cannot enter the admin panel, with the above mentioned username and password. Neither it shows any error, neither i can enter.

Pl. guide me what to do.

SoftMind

 
Old April 19th, 2006, 01:12 AM
Authorized User
 
Join Date: Mar 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by SoftMind
 Hello,

My CMS installation is successful. I can see the admin and Login tabs too. But when i place my Username as " Adminsitrator " and Password as " Admin123# " I cannot login. ( username and password as mentioned in book )
--------------------------------------------------------------
Ok I made it possible by creating a new role in WAT. I just assigned a role as adminsitrator and was able to make it.

BUT..... as soon as i login i get this strange error..

Compiler Error Message: BC30456: 'Theme' is not a member of 'ASP.management_default_aspx'.

Source Error:

Line 1: <%@ Page Language="VB" MasterPageFile="~/AdminMaster.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="CMS Management Home Page" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceholder" Runat="Server">
Line 3: <h1>Welcome to the Wrox CMS</h1>




Please show me a way out. I am just stuck here....

Thanks in advance

 
Old April 19th, 2006, 01:19 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

While trying to fix the security problem, did you change anything in the web.config file?

It should have a pages node like this:

  <pages theme="Cms">

If that doesn't fix it, check your code for the keyword Theme. There shouldn't be one, other than the one in the web.config file, so maybe you added something in the code?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old April 19th, 2006, 02:12 AM
Authorized User
 
Join Date: Mar 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

I checked the web config throughly The <pages theme="Cms"> code is already there.

In case if i try to remove this by
<pages themes =" " > THEN....

It shows error of "Title"

I think the Cms code should be checked once again thoroughly. Pl. give a solution so as to start atleast.

Thanks

 
Old April 19th, 2006, 02:33 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote: think the Cms code should be checked once again thoroughly
I will, but since it runs fine here, I need your help to find out what the problem is ;)

Instead of clearing the attribute, you could remove it altogether:

<pages>

Did you search the project for Theme? Did you find any references? Maybe you introduced an error in the web.config file so the project no longer successfully builds?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old April 19th, 2006, 05:54 AM
Authorized User
 
Join Date: Mar 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

I just installed and tried to run. I have not yet made any changes in any source code, and specially i will never dare to touch web.config or any source code in a learning process.

Its strange that the same code works well at your place, how can the references of themes are not traced
anywhere. Only links of attached CSS are found in master pages.

 
Old April 19th, 2006, 05:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Are you opening the site through IIS (e.g. http://localhost/Cms) or directly in Visual Web Developer?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old April 19th, 2006, 06:04 AM
Authorized User
 
Join Date: Mar 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Directly in Visual Web Developer and IIS also.

Same problem persists.

 
Old April 19th, 2006, 06:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Do you get the error in Visual Studio, or at run-time?

What do you get when you recompile the project? (Right-click it and choose Rebuild). Does the error list show any errors?

Can you post the exact error message (if different from the Theme is not a .... message you posted earlier?)

Sorry if I am only asking questions, and not providing the right solution. But since I don't know what's going on, I can suggest anything yet.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old April 19th, 2006, 06:20 AM
Authorized User
 
Join Date: Mar 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is the new error:-

Compiler Error Message: BC30456: 'Title' is not a member of 'ASP.management_default_aspx'.

Source Error:



Line 1: <%@ Page Language="VB" MasterPageFile="~/AdminMaster.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="CMS Management Home Page" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceholder" Runat="Server">
Line 3: <h1>Welcome to the Wrox CMS</h1>

I tried to remove theme to proceed further and i got the above error.

This is my current web config after removing themes.
I am just showing you that part only.

<pages>
      <namespaces>
        <clear />
        <add namespace="System" />
        <add namespace="System.Collections" />
        <add namespace="System.Collections.Specialized" />
        <add namespace="System.Configuration" />
        <add namespace="System.Text" />
        <add namespace="System.Text.RegularExpressions" />
        <add namespace="System.Web" />
        <add namespace="System.Web.Caching" />
        <add namespace="System.Web.SessionState" />
        <add namespace="System.Web.Security" />
        <add namespace="System.Web.Profile" />
        <add namespace="System.Web.UI" />
        <add namespace="System.Web.UI.WebControls" />
        <add namespace="System.Web.UI.WebControls.WebParts" />
        <add namespace="System.Web.UI.HtmlControls" />
      </namespaces>
    </pages>

I think something is wrong somewhere.








Similar Threads
Thread Thread Starter Forum Replies Last Post
CMS - admin login does not work peppie BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 October 20th, 2007 08:46 AM
CMS abaso.jadhav01 ASP.NET 2.0 Basics 3 November 22nd, 2006 02:47 AM
CMS easter BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 12 August 7th, 2006 04:15 PM
CMS Login problem Codescribler BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 24 April 24th, 2006 02:58 PM
CMS anshul Pro PHP 2 May 30th, 2005 01:22 AM





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