1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / New Project Error

New Project Error

11 posts, 0 answered
  1. Chris
    Chris avatar
    63 posts
    Registered:
    05 Jan 2011
    14 Feb 2011
    Link to this post

    Server Error in '/' Application.

    Invalid provider name "Default" for SitefinityMembershipProvider specified in web.config file. The name should match one of the providers configured in Sitefinity's Security.config configuration.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Configuration.ConfigurationErrorsException: Invalid provider name "Default" for SitefinityMembershipProvider specified in web.config file. The name should match one of the providers configured in Sitefinity's Security.config configuration.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [ConfigurationErrorsException: Invalid provider name "Default" for SitefinityMembershipProvider specified in web.config file. The name should match one of the providers configured in Sitefinity's Security.config configuration.]
      Telerik.Sitefinity.Security.UserManager.OnInitialized() +403
       Telerik.Sitefinity.Data.ManagerBase`1.Initialize() +623
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +34
       Telerik.Sitefinity.Data.ManagerBase`1..ctor() +32
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
       System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +117
       System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +247
       System.Activator.CreateInstance() +88
       Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +120
       Telerik.Sitefinity.Security.Web.UI.LoginForm.InitializeProvidersList() +125
       System.Web.UI.Control.EnsureChildControls() +182
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +35
       Telerik.Sitefinity.Security.Web.UI.LoginForm.get_ChangePasswordLink() +54
       Telerik.Sitefinity.Security.Web.UI.LoginForm.UpdateVisibilityOfLinks() +203
       Telerik.Sitefinity.Security.Web.UI.LoginForm.set_ShowChangePasswordLink(Boolean value) +93
       Telerik.Sitefinity.Web.LoginRouteHandler.SetLoginLogoutFroms(Page handler, RequestContext requestContext, String view) +360
       Telerik.Sitefinity.Web.RouteHandlerBase.Handler_PreInit(Object sender, EventArgs e) +377
       System.Web.UI.Page.PerformPreInit() +40
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1

    The provider in web.config is setup as:

    <membership defaultProvider="Default">
    <providers>
    <clear/>
    <add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
    </providers>
    </membership>
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    16 Feb 2011
    Link to this post
    Hi Chris,

    Thank you for using our services.

    Can you please let us know what were the conditions under which you got this error? Please also let us know the exact Sitefinity version you are using, as well as what steps lead to experiencing this.

    Greetings,
    Radoslav Georgiev
    the Telerik team
  3. Chris
    Chris avatar
    63 posts
    Registered:
    05 Jan 2011
    16 Feb 2011
    Link to this post
    Hi Radoslav,

    Thank you for the follow up.  The version is 4.0.1160.0.  I had just recently upgraded the project from the previous version of Sitefinity.  There were no particular special conditions, I upgraded and tried to run the project and received the error.  I ended up having to delete the project and re-create it which was a bear.  Is there any way to avoid this in the future?  I'm just in development right now but don't want to run into that later in production.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    21 Feb 2011
    Link to this post
    Hello Chris,

    The membership provider should be declared in the securityConfig.config file that is available under App_Data/Sitefinity/Configuration

    Greetings,
    Ivan Dimitrov
    the Telerik team
  5. Chris
    Chris avatar
    63 posts
    Registered:
    05 Jan 2011
    22 Feb 2011
    Link to this post
    Hi Ivan,

    I haven't made any changes to any of the configuration or providers, so I'm not sure what happened that this would change the default membership provider.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    28 Feb 2011
    Link to this post
    Hi Chris,

    Please go to the configuration setting of the backend and check whether you have provider with name "Default". The error you see is thrown when the UserManager class is trying to get the value associated with a given key which is the provider name - "Default". The error says that the collection does not contain this provider with name "Default"

    Best wishes,
    Ivan Dimitrov
    the Telerik team
  7. Aparna
    Aparna avatar
    20 posts
    Registered:
    05 Sep 2012
    21 Mar 2011
    Link to this post

    Server Error in '/samplesite' Application.

    Invalid provider name "Default" for SitefinityMembershipProvider specified in web.config file. The name should match one of the providers configured in Sitefinity's Security.config configuration.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Configuration.ConfigurationErrorsException: Invalid provider name "Default" for SitefinityMembershipProvider specified in web.config file. The name should match one of the providers configured in Sitefinity's Security.config configuration.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ConfigurationErrorsException: Invalid provider name "Default" for SitefinityMembershipProvider specified in web.config file. The name should match one of the providers configured in Sitefinity's Security.config configuration.]
       Telerik.Sitefinity.Security.UserManager.OnInitialized() +415
       Telerik.Sitefinity.Data.ManagerBase`1.Initialize() +637
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +24
       Telerik.Sitefinity.Security.UserManager..ctor() +20
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
       System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
       System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
       System.Activator.CreateInstance() +103
       Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +90
       Telerik.Sitefinity.Security.SecurityManager.FindUserById(Guid userId, String providerName) +73
       Telerik.Sitefinity.Security.SecurityManager.VerifyAuthenticateInTheDatabase(SitefinityPrincipal principal, String loginIp, String lastLoginStamp) +144
       Telerik.Sitefinity.Security.SecurityManager.VerifyAuthenticateRequest(SitefinityPrincipal principal, String loginIp, String lastLoginStamp) +386
       Telerik.Sitefinity.Security.SecurityManager.AuthenticateRequest(HttpContextBase context) +932
       Telerik.Sitefinity.Web.SitefinityHttpModule.Context_AuthenticateRequest(Object sender, EventArgs e) +18
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +168
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


    this is the error i faced when i tried to create a table and map it with the form name which i wanted to create and mapped coloum names with textbox id.

    Then the following error is shown please help how to resolve it.
    Regards,
    Aparna

  8. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    Registered:
    18 Jul 2016
    25 Mar 2011
    Link to this post
    Hi Aparna,

    Can you provide more information about what you're trying to do. Manual creating and mapping of tables is not advisable at all. Sitefinity is based on the OpenAccess ORM which handles the creation/mappings of database objects. Could tell us how did you create and map that table?


    Best wishes,
    Pavel
    the Telerik team
  9. Aparna
    Aparna avatar
    20 posts
    Registered:
    05 Sep 2012
    28 Mar 2011
    Link to this post
    hi pavel!

    Thank You For Your Response. I got the Error cleared it was because i used the primary key colum as text box.


    Regards,
    Aparna
  10. Ken
    Ken avatar
    1 posts
    Registered:
    27 Jan 2011
    12 Apr 2011
    Link to this post
    I have a similar problem, running 4.0.1210.0 and tried to modify a form when I recived the same error message.

    Invalid provider name "Default" for SitefinityMembershipProvider specified in web.config file. The name should match one of the providers configured in Sitefinity's Security.config configuration.

    The site was inaccessible from then on, so I cannot get to the backend admin functions (or any area of the CMS).

    Any attempt to access the site or login to Sitefinity returns this error:

    Server Error in '/' Application.


    Cannot find the object "sf_contact" because it does not exist or you do not have permissions.


    There is no Default Provider defined in the SecurityConfig file. Will adding one correct this issue?

  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    13 Apr 2011
    Link to this post
    Hi Ken,

    It looks like that you have added some custom tables to the database

    Cannot find the object "sf_contact" because it does not exist or you do not have permissions.

    and there is an issue with this set up. Is this a table for a custom module? Where and how you use sf_contact?

    Best wishes,
    Ivan Dimitrov
    the Telerik team

11 posts, 0 answered