473,395 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Custom MembershipProvider, unable to load type

I have created my own MemberShipProvider/RoleProvider/MembershipUser classes
extending the base ones. I managed to install everything but I have a
problem. When I run the Application Configuration and go to the Security tab
I get this error:

"There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: Could not load
type 'MyWebApp.Core.MyMembershipUser' from assembly 'App_Code.xqhd01v6,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. "

The question is: what could be the reason why the type cannot be loaded? I
was able to attach the webserver process to the debuger and I can see who the
execution goes to my provider's Initialize and GetAllUsers methods which
work. So, how come it fails with this error? Is it a mistake to place this
code in the App_Code folder as the resulted assembly is not accessible? Any
help is appreciated,

Thank you,
--
Regards,

Iulian
Mar 26 '06 #1
1 1760
Ok, I have more (confusing) info... I managed to find where the dll mentioned
below is located (App_Code.xqhd01v6) and it is in TemporaryASPNet files.
Using reflection I was able to establish that, indeed, my class is not
included in that type. So, the question is: why? or, if it shouldn't, why
isn't the application configuration looking for the type in the assemblies
generated by my web application?

--
Regards,

Iulian
"Iulian" wrote:
I have created my own MemberShipProvider/RoleProvider/MembershipUser classes
extending the base ones. I managed to install everything but I have a
problem. When I run the Application Configuration and go to the Security tab
I get this error:

"There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: Could not load
type 'MyWebApp.Core.MyMembershipUser' from assembly 'App_Code.xqhd01v6,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. "

The question is: what could be the reason why the type cannot be loaded? I
was able to attach the webserver process to the debuger and I can see who the
execution goes to my provider's Initialize and GetAllUsers methods which
work. So, how come it fails with this error? Is it a mistake to place this
code in the App_Code folder as the resulted assembly is not accessible? Any
help is appreciated,

Thank you,
--
Regards,

Iulian

Mar 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called...
6
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base...
2
by: Mark Olbert | last post by:
So far, I am more than a little underwhelmed by the Membership API in ASPNET2, and the ASP.NET Configuration wizard in VS2005. The latter is slow as a pig whenever it does anything. Oh well, at...
0
by: Mwob | last post by:
Hi all, I'm about to start creating a custom membership provider. Its for a website that already has a table of users in a single table, so I need to create a custom MP to talk to the data in...
1
by: Kirk | last post by:
I followed the procedure at this site (http://www.devx.com/asp/Article/ 29256/0/page/1) to create a custom membership provider on a ASP.NET Web Site. However, when I try this same method on a...
5
by: Alias | last post by:
Hi - I'm trying to implement a custom RoleProvider based on the SqlRoleProvider. I keep receiving a an error that it can't load type 'MyRoleTest.MyRoleProvider' when trying to load my...
4
by: freeflytim | last post by:
I'm trying to implement a custom MembershipProvider (and RoleProvider) together with a custom MembershipUser class in C#, Asp.Net 2.0, MS Visual Studio 2005. Everything has worked fine so far,...
0
by: asnowfall | last post by:
After logging in, I am not able to redirect to the target url; and this happens only when I connect to the website using "http://machine- name:portname"; but not if I connect using either...
0
by: =?Utf-8?B?TmVhbA==?= | last post by:
I have developed a simple membershipuser class and membershipprovider class. I basically followed the procedures referenced at http://msdn.microsoft.com/en-us/library/44w5aswa.aspx and made it even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.