473,587 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom MembershipProvi der, unable to load type

I have created my own MemberShipProvi der/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. MyMembershipUse r' from assembly 'App_Code.xqhd0 1v6,
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 1778
Ok, I have more (confusing) info... I managed to find where the dll mentioned
below is located (App_Code.xqhd0 1v6) 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 MemberShipProvi der/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. MyMembershipUse r' from assembly 'App_Code.xqhd0 1v6,
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
2518
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 "Enlighten.LinkMad.Businesslogic". In one of my frontend websites I use this type to authenticate a user who is trying to login. The following excerpt is from the...
6
2215
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 class would have CurrentUser property that would hold customer class in session and that was fine for all my situations. Now ASP.NET 2.0 came...
2
2622
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 least it's given me a chance to brush up on my Spider Solitaire game. In any event, I am trying to implement a custom MembershipProvider for a website....
0
2290
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 that table. In addition, my custom membership provider needs to be able to do this: 1) Hash the password. 2) Verify the strength of the pasword...
1
11560
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 ASP.NET Web Application (WAP), I get a "Could not load type MyMembershipProvider" error. My web.config file looks like this: <membership...
5
8275
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 RoleProvider. However this only occurs after deployment. On my local machine it works fine. So I created the most basic role provider project I could think...
4
4732
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, all compiles, then I try to run the Website administration tool (WAT). I can bring up the main web page of the tool, but as soon as I click on...
0
1434
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 "http://IP:portname" or "http://localhost:portname" Web site has custom 'Login control' and custom 'Membership provider'; and I do not have access to...
0
1614
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 simpler by inheriting sqlmembershipprovider, and did overrides on only a couple of methods. So far, they seem to work fine when used in code....
0
7918
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.