Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | 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 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
  #11 (permalink)  
Old November 7th, 2006, 09:18 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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
  #12 (permalink)  
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
  #13 (permalink)  
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
  #14 (permalink)  
Old November 7th, 2006, 04:30 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #15 (permalink)  
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
  #16 (permalink)  
Old November 8th, 2006, 02:42 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #17 (permalink)  
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
  #18 (permalink)  
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
  #19 (permalink)  
Old November 8th, 2006, 04:47 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
 


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



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


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