Wrox Programmer Forums
|
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 March 28th, 2005, 09:28 PM
Authorized User
 
Join Date: Nov 2003
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.



 
Old March 30th, 2005, 09:10 AM
Friend of Wrox
 
Join Date: Jun 2003
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.





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





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