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 November 25th, 2004, 12:13 AM
Registered User
 
Join Date: Oct 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default SitePrincipal

on RoleAssignments.aspx.vb there is a line that is coded as such:
Dim tempUser As New Business.User(tempPrincipal)

I get this error on this lin with squigglies under (tempPrincipal)
-Value of type TheFile.WebModules.Account.Business.SitePrincipal cannot be converted to an Integer.-

Any ideas?

-J


-Jason
 
Old November 29th, 2004, 06:05 PM
Authorized User
 
Join Date: Mar 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe something is wrong with the Business.User constructor that takes a SitePrincipal argument, not a UserID argument. Try rebuilding the Accounts.Business project and see if you get an error.
Or check that tempPrincipal holds the correct value before this line executes






Similar Threads
Thread Thread Starter Forum Replies Last Post
(SitePrincipal)Context.User Philey BOOK: ASP.NET Website Programming Problem-Design-Solution 3 October 8th, 2004 05:38 PM
HTTPContext + SitePrincipal error (Wiggly Line) eureka BOOK: ASP.NET Website Programming Problem-Design-Solution 3 September 7th, 2004 09:15 PM
error :(SitePrincipal)Context.User yonghoo BOOK: ASP.NET Website Programming Problem-Design-Solution 5 August 5th, 2004 07:30 AM
siteprincipal fzilz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 30th, 2004 06:13 AM





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