Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > BOOK: ASP.NET Website Programming Problem-Design-Solution
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2005, 09:28 PM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to seanmayhew
Default email confirmation and site principal identity

I need some help understanding how principal works. Rather than just let the user sign up for an account I've created an email confirmation that basically creates a random string puts it in the db and sends that string to the user in a link back to my site with the code as a variable in the querystring http://mysite.com/modules/user/verif...px?code=123454 whats happening is after they've hit the registration it takes to confirmation page that says check your email. if the user then checks the email it opens the link in a new browser window and returns an error with the link to the site header on my LOCAL drive:
"Specified Cast is not valid..." "Controls.User.SiteHeader.Page_Load(Object sender, EventArgs e) in [MY LOCAL DRIVE WHERE FILE EXISTS]\controls\user\siteheader.ascx.cs:34"

Line 34 reads:
Code:
SiteIdentity id = (SiteIdentity)Context.User.Identity;
If I then copy and paste the link from the email into the browser that I began the registration process in, it continues as it should. I think this has something to do with it using my windows account as the identity but I dont know how to fix. Thanks.



  #2 (permalink)  
Old March 30th, 2005, 09:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There must be over 50 messages here about the "specified cast is not valid" issue. Please read the past messages.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email issues - 1.1 site on 2.0 server nickfsu ASP.NET 2.0 Basics 0 November 15th, 2007 01:09 AM
webshop email confirmation message Nick23 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 September 14th, 2007 03:43 PM
Sending Confirmation email in the WroxShop Tawanda BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 June 7th, 2007 01:56 PM
Email Confirmation Katachi Dreamweaver (all versions) 1 December 18th, 2005 07:19 AM
Working with Principal and Identity hasanali00 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 31st, 2005 05:09 AM



All times are GMT -4. The time now is 06:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.