My website uses a custome membership and role provider. I can use a custom
login control and user creation control and can debug my providers while
doing so with breakpoints. However, when I launch the asp.net website config
tool and go to the security tab, I get a polished screen with the error
message:
The object refererence is not set to an instance of an object
But despite putting breakpoints everywhere in both the roleprovider and
membershipprovider, no breakpoint is hit. Any tips on how to debug this? What
code is executed when this tool is run and you go to the security tab?
-Ben 5 3379
On Mon, 27 Mar 2006 08:26:01 -0800, Ben R. wrote: The object refererence is not set to an instance of an object
You need to attach to to the Administrative Websites's process in the
debugger. Tools->Attach to process.
Hi Ben,
Thank you for posting.
From your description, I understand you're developing your custom ASP.NET
2.0 membership and role manage provider, when used in your application, you
can step through their source code to debug them. However, when you
launching the vs 2005 web admin page for the site and manage the security
setting, you encountered some exceptions(null reference...) and the break
point in your custom provider's source did not get hit, correct?
Based on my understanding, since the problem occured when you use the web
admin pages, I think it is likely some certain code of the web admin site
expect a certain interface or member which is not found on our custom
provider class. the Web Admin site's page and code are under the .net
framework 2.0's system folder. e.g;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP. NETWebAdminFiles
So if you want to do some further troubleshooting, you can have a look at
the related code(specific to the security configuration page) there. e.g if
the error occured at initialize time, you can check the initliaize and load
specific code to see what's has been called there.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks, Steven. This helped me to solve the problem!
-Ben
"Steven Cheng[MSFT]" wrote: Hi Ben,
Thank you for posting.
From your description, I understand you're developing your custom ASP.NET 2.0 membership and role manage provider, when used in your application, you can step through their source code to debug them. However, when you launching the vs 2005 web admin page for the site and manage the security setting, you encountered some exceptions(null reference...) and the break point in your custom provider's source did not get hit, correct?
Based on my understanding, since the problem occured when you use the web admin pages, I think it is likely some certain code of the web admin site expect a certain interface or member which is not found on our custom provider class. the Web Admin site's page and code are under the .net framework 2.0's system folder. e.g;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP. NETWebAdminFiles
So if you want to do some further troubleshooting, you can have a look at the related code(specific to the security configuration page) there. e.g if the error occured at initialize time, you can check the initliaize and load specific code to see what's has been called there.
Regards,
Steven Cheng Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
You're welcome Ben,
Have a nice day!
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Ben,
- in VS.NET select Debug, Exceptions...,
- activate the checkbox "Thrown" of the CLR Exceptions, ok
- start the Web Site Administration Tool (WAT)
- in VS.NET select Debug, Attach to process...
- select "WebDev.WebServer.EXE", there a two, the one with the higher ID is
the right one
Now use the WAT as usually. The debugger should stop in the code line of
your custom MembershipProvider, that throws the exception. Breakpoints should
also work.
Hope this helps
ulrich
"Ben R." wrote: My website uses a custome membership and role provider. I can use a custom login control and user creation control and can debug my providers while doing so with breakpoints. However, when I launch the asp.net website config tool and go to the security tab, I get a polished screen with the error message:
The object refererence is not set to an instance of an object
But despite putting breakpoints everywhere in both the roleprovider and membershipprovider, no breakpoint is hit. Any tips on how to debug this? What code is executed when this tool is run and you go to the security tab?
-Ben This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: techsupport |
last post by:
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and
have been wanting to remote a custom membership and profile provider.
I want to take advantage of the new controls in ASP.NET...
|
by: CK |
last post by:
Does anyone have any experience with this? We have an exisitng sql database
with user and role info. I need to write a custom role provider to use this
data. Does anyone have any examples of this...
|
by: Jakob Lithner |
last post by:
When I started a new ASP project I was eager to use the login facilities
offered in Framework 2.0/VS 2005.
I wanted:
- A custom principal that could hold my integer UserID from the database
-...
|
by: Tomasz |
last post by:
Hello Developers!
I have an interesting problem using my custom MembershipProvider,
RoleProvider and Forms Authentication.
Both MembershipProvider and RoleProvider require session state, where...
|
by: Glenn |
last post by:
My current classic-ASP site has users, projects, roles and the 2.0
membership looks like a perfect fit, but I'm having trouble finding
examples of how to have users that belong to different...
|
by: alexandis |
last post by:
There are tons of articles about custom role and provider membership,
but they just tear me apart and confuse :(
The situation is following: I use DB2, so I wrote custom role +
membership...
|
by: alexandis |
last post by:
We have tables of logins (users), that differs much from standard
microsoft structure - we don't use control question/answer, date
fields, etc. But instead we have several additional fields.
I...
|
by: Jonathan Wood |
last post by:
Although this will be a challenge at my level of ASP.NET knowledge, I'm
thinking I should implement my own membership provider class.
Looking over the methods I must implement, a number of...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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: 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...
| |