473,413 Members | 2,043 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,413 software developers and data experts.

Custom MembershipProvider - WAT "Type not resolved" error

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 'Security', I get this error:

Type is not resolved for member 'TC.Providers.TCMembershipUser,TC,
Version=1.0.2690.40299, Culture=neutral, PublicKeyToken=null'.

The earlier error was telling me that the TCMembershipUser class had
to be marked as Serializable - which was a surprise, since I never saw
this mentioned in any of the documentation. Now I'm getting this error
which I can't step into or debug.

I have tried attaching to the process (I'm using the asp.net
development web server) and stepping through the code when I hit the
'Security' link, but this error comes up without breaking into the
code - I've got the VSNet debugger set to break on all errors. I can't
find any help on this "Type is not resolved" error, which seems very
non-specific. I'm going to try again without using the custom
MembershipUser class.

Can anyone help please?!

May 14 '07 #1
4 4721

I may be proven wrong, but I'm afraid that the website admin tool is only
smart enough to handle the built-in provider(s). Also, it only works on the
local machine.
However, you can find (or write) web pages that do all the things the "WAT"
does, and use your custom provider(s) and the built in Membership, Roles and
Profile provider methods that you've extended.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"freeflytim" wrote:
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 'Security', I get this error:

Type is not resolved for member 'TC.Providers.TCMembershipUser,TC,
Version=1.0.2690.40299, Culture=neutral, PublicKeyToken=null'.

The earlier error was telling me that the TCMembershipUser class had
to be marked as Serializable - which was a surprise, since I never saw
this mentioned in any of the documentation. Now I'm getting this error
which I can't step into or debug.

I have tried attaching to the process (I'm using the asp.net
development web server) and stepping through the code when I hit the
'Security' link, but this error comes up without breaking into the
code - I've got the VSNet debugger set to break on all errors. I can't
find any help on this "Type is not resolved" error, which seems very
non-specific. I'm going to try again without using the custom
MembershipUser class.

Can anyone help please?!

May 15 '07 #2
I did read somewhere (ScottGu?) that the WAT should handle custom
providers - and in fact, it does handle my Membership and Role
providers - but not the extended MembershipUser class!

I'm going to try to get everything working 100% without the custom
MembershipUser class, then try implementing that last.

I definitely don't want to waste any more time than I have to by
writing a new "WAT", and the tool is perfect for testing that things
are working correctly - almost...

May 15 '07 #3
On further invetigation ("...Gareth Keenan invetigates.."), it seems
that only the WAT doesn't like the custom MembershipUser class. If i
use it within my pages, it works fine.

I can grab an extended user class with TCMembershipUser currentUser =
(TCMembershipUser)Membership.GetUser(Page.User.Ide ntity.Name);

May 16 '07 #4
The WAT code fails on this line

object[] returnArrayObj = (object[]) method.Invoke(tempObject,
newParameters);

Line 66 of "C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\ASP.NETWebAdminFiles\App_Code\WebAdmin Page.cs".

Maybe some smart person out there could figure out why

May 16 '07 #5

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

Similar topics

5
by: Lou Pecora | last post by:
g++ compiler error question. I have a container C whose constructor takes a class B that is inherited from an abstract class A. So I have the line of code: B binstance; C ...
7
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service...
6
by: Kay | last post by:
Hi all, In vb6, I can define a custom type like this: Private Type uClient sName As String sMonday As Double sMondayHeadCnt As Integer End Type
0
by: hamstak | last post by:
While attempting to perform a build on an .aspx page from within VS 2005 I receive the "Could not load type" error pertaining to the class representing the page. The class is derived from a custom...
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...
2
by: magyar.laszlo | last post by:
Hi ! I have an activex .net dll in a webpage. This activeX is trying to connect to an LDAP server using System.DirectoryServices. Unfortunatelly it gets always "request for the permission of...
3
by: eros | last post by:
ALTER TABLE public.postcodes ALTER COLUMN machi TYPE varchar(100); Error: ERROR: syntax error at or near "TYPE"; Error while executing the query (State:42601, Native Code: 7) I am using...
5
by: tejesh | last post by:
I am trying to compile the following code int backend_sm_run(struct interface_data *ctx) { xsup_assert((ctx != NULL), "ctx != NULL", TRUE); xsup_assert((ctx->statemachine != NULL),...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
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,...

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.