473,385 Members | 1,593 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,385 software developers and data experts.

Tracing problems with Custom Role Provider

I have a custom role provider and custom membership provider in my
ASP.NET app. These work fine on my local box. When deploying the app I'm
getting the following error:

Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: The type initializer for 'Tax.Core.TaxService'
threw an exception.

Source Error:

Line 52: <providers>
Line 53: <clear />
Line 54: <add name="TaxServiceRoleProvider"
type="Web.Public.TaxServiceRoleProvider" />
Line 55: </providers>
Line 56: </roleManager>

Source File: c:\inetpub\wwwroot\web.config Line: 54

So I'm pretty sure it's a problem that's occuring in the constructor of
the Web.Public.TaxServiceRoleProvider class but I'd like to know exactly
what the error/exception message is so that I know how to fix it, rather
than just shooting in the dark.

Is there any way to grab that information and spit it out to the Windows
Event Logs or something?

TIA.

Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
Nov 8 '07 #1
2 1324
I"m guessing but in many cases line 54 needs to be all on one line and not
split up.
-- Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"James Crosswell" wrote:
I have a custom role provider and custom membership provider in my
ASP.NET app. These work fine on my local box. When deploying the app I'm
getting the following error:

Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: The type initializer for 'Tax.Core.TaxService'
threw an exception.

Source Error:

Line 52: <providers>
Line 53: <clear />
Line 54: <add name="TaxServiceRoleProvider"
type="Web.Public.TaxServiceRoleProvider" />
Line 55: </providers>
Line 56: </roleManager>

Source File: c:\inetpub\wwwroot\web.config Line: 54

So I'm pretty sure it's a problem that's occuring in the constructor of
the Web.Public.TaxServiceRoleProvider class but I'd like to know exactly
what the error/exception message is so that I know how to fix it, rather
than just shooting in the dark.

Is there any way to grab that information and spit it out to the Windows
Event Logs or something?

TIA.

Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
Nov 8 '07 #2
Peter Bromberg [C# MVP] wrote:
I"m guessing but in many cases line 54 needs to be all on one line and not
split up.
-- Peter
Hey Peter,

Thanks for the reply. The split line didn't matter and I found the
problem eventually... my real question was, how do I troubleshoot errors
in the role provider though? How can I capture the underlying
error/exception that is being raised in the constructor of my role
provider and spit this out to a log somewhere.

Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
Nov 9 '07 #3

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

Similar topics

4
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...
1
by: Mark Olbert | last post by:
I've written a custom MembershipProvider and a custom RoleProvider, and am trying to get them to work with the ASP.NET Configuration tool. Which is a royal pain in the butt, because there doesn't...
1
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...
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...
8
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...
0
by: caius | last post by:
Hi, I recently develop a custom membership provider and role provider . I did configure the central admin and the SharePoint site to use them. I can now use the login page and authenticate to...
7
by: Tom Van den Brandt | last post by:
Hi all! I'm trying to implement a custom roleprovider in asp.net. The new roleprovider works fine when I access it programmaticaly. However, it doesn't seem to work with the standard controls....
4
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...
5
by: Claudio M. E. Bastos Iorio | last post by:
Hi, anyone using VS2008 (final) on windows Vista? I have a problem. The ASP.NET web site administration tool on any site created by VS2008, running on Vista, is not working as it should. I can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.