Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom RoleProvider with MVC 2.0 webconfig
    primarykey
    data
    text
    <p>I have a custom MembershipProvider and a custom RoleProvider. I created the custom MembershipProvider by creating a SimpleMembershipProvider class which implements the MembershipProvider class. After that I changed my web.config and works. </p> <p>So I used the same approach creating a custom RoleProvider. Nothing special, just creating a SimpleRoleProvider class which implements the RoleProvider class. But then when I changed the web.config file and runs the solution I get the following error message:</p> <p>Web.Config</p> <pre><code>&lt;membership defaultProvider="DashboardMembershipProvider"&gt; &lt;providers&gt; &lt;clear/&gt; &lt;add name="SimpleMembershipProvider" type="Dashboard.Web.Controlling.Account.SimpleMembershipProvider" /&gt; &lt;/providers&gt; &lt;/membership&gt; &lt;roleManager enabled="true" defaultProvider="DashboardRoleProvider"&gt; &lt;providers&gt; &lt;clear/&gt; &lt;add name="DashboardRoleProvider" type="Dashboard.Web.Controlling.Account.DashboardRoleProvider" /&gt; &lt;/providers&gt; &lt;/roleManager&gt; Configuration 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: No parameterless constructor defined for this object. Source Error Line 78: &lt;add name="SimpleRoleProvider" Line 79: type="Dashboard.Web.Controlling.Account.SimpleRoleProvider" /&gt; </code></pre> <p>So I searched the web. And tried on the type attribute, which generates the following errors:</p> <pre><code> Configuration 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: Could not load file or assembly 'Dashboard.Web.Controlling.Account' or one of its dependencies. The system cannot find the file specified. Source Error: Line 78: &lt;add name="SimpleRoleProvider" Line 79: type="Dashboard.Web.Controlling.Account.SimpleRoleProvider,Dashboard.Web.Controlling.Account" /&gt; </code></pre> <p>Any suggestions on how I would be able to get this CustomRoleProvider working? Any help is greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload