Jump to content

MVC3 RoleManager "Exception has been thrown by the target of an invocation"


Obi1-Cannabis

Recommended Posts

I'm trying to figure this out for a few day now, i have custom membership and role providers for my project and it works perfectly on my dev machine, but on production it throws the following error for the web.config

 

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: Exception has been thrown by the target of an invocation.

Source Error:

Line 24: <providers>Line 25: <clear />Line 26: <add name="FeelSafeRoleProvider" type="FeelSafe.Helpers.FeelSafeRoleProvider, FeelSafe" connectionStringName="FeelSafeEntities" />Line 27: </providers>Line 28: </roleManager>

Source File: (...)web.config Line: 26

 

 

I've read about people having simmilar issues because they hadn't named their connectionstrings but that's not the case here...

any toughts on what's going on here?

 

if you need any more info just ask and i'll provide.

 

thanks for any help

Link to comment
Share on other sites

If that's the source of the error, then it sounds like one of the things listed in the add element might not exist on the other machine. That could be the connection string or the role provider class or object.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...