Tracing problems with Custom Role Provider

  • Thread starter James Crosswell
  • Start date

J

James Crosswell

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
 
Ad

Advertisements

Ad

Advertisements

J

James Crosswell

Peter said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top