New Project 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. |
|
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
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.
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
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.
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
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.
|
[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 |
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
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
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?
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