Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 7th, 2006, 09:18 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:Originally posted by mega
PS. I haven't seen any official documentation on this but I know from experience that, it's type=FullClassName, AssemblyName*, VersionNumber, Culture,PublicKeyToken.
Yes, that' one way to do it. FullClassName, AssemblyName is another.

However, your code:

type="Tetasoft.BookEvent.BusinessLogic.BookEventMe mbershipProvider,
             BookEvent BuisnessLogic,
             Version=1.0.1.4000,
             Culture=neutral"

doesn't seem to match on of these schemes.....

Imar
 
Old November 7th, 2006, 09:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

By running this code [code] Type objType = typeof(BookEventMembershipProvider);
        Type [] types = {
          // typeof(string), typeof(System.Collections.Specialized.NameValueCol lection)
        };
        ConstructorInfo info = objType.GetConstructor(types);[code]
I've found out that Initialize is not a constructor (duh). This doesn't reveal anything but that I don't know how the class is loaded. Anyone?

 - mega
Moving to C# .NET
 
Old November 7th, 2006, 10:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

You're right Imar but I've tried all the combinations I can think of and I get either the exception that I posted before or a assembly not found exception.

 - mega
Moving to C# .NET
 
Old November 7th, 2006, 04:30 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

But if I look at this, I think the assembly name is invalid:

type="Tetasoft.BookEvent.BusinessLogic.BookEventMe mbershipProvider,
             BookEvent BuisnessLogic,
             Version=1.0.1.4000,
             Culture=neutral"

I don't think there should be a space between BookEvent and BuisnessLogic.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old November 7th, 2006, 09:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

No that puzzles me too. If I include a dot between BookEvent and BuisnessLogic as one should think it tells me that it couldn't find the file. That tells me that it's even worse because asp.net can't even find the file as oppose to locate it and fail loading it. It's like choosing between plague and cholera!

 - mega
Moving to C# .NET
 
Old November 8th, 2006, 02:42 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What's the name of the assembly? And where is it located?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old November 8th, 2006, 09:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

The Assembly name is BookEvent.BuisnessLogic.dll and it's in the bin folder. Before I had my MembershipProvider and MembershipUser in the App_Data folder as .cs files but with the same result (see my post no. 2). Gonna try to copy everything into a shared folder as I see some weird permission problems on XP Home.

 - mega
Moving to C# .NET
 
Old November 8th, 2006, 11:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

No I was mistaken the assembly names was BookEvent BuisnessLogic (not dot). I have changed it to BookEvent.BuisnessLogic (with dot) but still get the can't load exception...

 - mega
Moving to C# .NET
 
Old November 8th, 2006, 04:47 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, I don't know what to suggest.

The examples from my article (ClassName, AssemblyName) have worked for me, so I don't understand why they don't work for you.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.




Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to login with membershipprovider swifty_programmer ASP.NET 2.0 Professional 3 May 4th, 2007 02:53 AM
failed to login with membershipprovider swifty_programmer ASP.NET 2.0 Basics 1 May 3rd, 2007 11:40 AM
how to use MembershipProvider.EncryptPassword kherrerab ASP.NET 2.0 Professional 1 March 14th, 2007 12:18 PM
Loading Error. Jack2Black Pro Visual Basic 2005 0 June 10th, 2006 10:33 AM
loading pages with custom size, toolbars etc dunc Javascript How-To 6 August 18th, 2004 04:37 PM





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