 |
| 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
|
|
|
|

November 7th, 2006, 09:18 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

November 7th, 2006, 09:48 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 7th, 2006, 10:47 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 7th, 2006, 04:30 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

November 7th, 2006, 09:42 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 8th, 2006, 02:42 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

November 8th, 2006, 09:01 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 8th, 2006, 11:05 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 8th, 2006, 04:47 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|
 |