Jump to content

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

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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...