Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Tracing problems with Custom Role Provider

Reply
Thread Tools

Tracing problems with Custom Role Provider

 
 
James Crosswell
Guest
Posts: n/a
 
      11-08-2007
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      11-08-2007
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
>

 
Reply With Quote
 
 
 
 
James Crosswell
Guest
Posts: n/a
 
      11-09-2007
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership or Role Provider // Provider Model // Factories .. How does MS do it? sloan ASP .Net 1 07-03-2007 08:17 PM
Custom role provider not working Tom Van den Brandt ASP .Net 8 06-11-2007 08:28 PM
Custom Role Provider give "can't load type error" Alias ASP .Net 5 02-18-2007 11:09 PM
Custom Role Provider CK ASP .Net 1 07-25-2006 07:24 PM
debug a custom membership and role provider? =?Utf-8?B?QmVuIFIu?= ASP .Net 5 05-17-2006 12:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57