The connection name 'mobileDB' was not found in the applications configuration or the connection string is empty. at System.Web.Util.SecUtility.GetConnectionString(NameValueCollection config) at
System.Web.Security.SqlMembershipProvider.Initialize(String name, NameValueCollection config) at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<clear/>
<!--<add name="MobileHut_ConnectionString" connectionString="workstation id=MobieWorld.mssql.somee.com;packet size=4096;user id=salman;pwd=12345678;data source=MobieWorld.mssql.somee.com;persist security info=False;initial catalog=MobieWorld" providerName="System.Data.SqlClient"/>-->
<add name="mobileDB" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MobiWorld;Data Source=USER-NB\SQLEXPRESS;User ID=sa;Password=123" providerName="System.Data.SqlClient"/>
</connectionStrings>
The connection name 'mobileDB' was not found in the applications configuration or the connection string is empty. at System.Web.Util.SecUtility.GetConnectionString(NameValueCollection config) at System.Web.Security.SqlMembershipProvider.Initialize(String name,
NameValueCollection config) at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
According to your description above, it seems like that the connection name 'mobileDB' is not found in the web.config. In order to resolve your issue, please make sure that it is added in the application or root web.config file.
In addition, please check the similar threads below:
bisanisalman
0 Points
6 Posts
I am having problem when i Use the "security Setup Wizard to configure security step by step" in ...
May 09, 2012 05:30 PM|LINK
Dear Fellows,
I am trying to configure security setting using Web Site Administration Tool.
When i click on link "Use the security Setup Wizard to configure security step by step. " on security tab. below error appears.
The connection name 'mobileDB' was not found in the applications configuration or the connection string is empty. at System.Web.Util.SecUtility.GetConnectionString(NameValueCollection config) at System.Web.Security.SqlMembershipProvider.Initialize(String name, NameValueCollection config) at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<clear/>
<!--<add name="MobileHut_ConnectionString" connectionString="workstation id=MobieWorld.mssql.somee.com;packet size=4096;user id=salman;pwd=12345678;data source=MobieWorld.mssql.somee.com;persist security info=False;initial catalog=MobieWorld" providerName="System.Data.SqlClient"/>-->
<add name="mobileDB" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MobiWorld;Data Source=USER-NB\SQLEXPRESS;User ID=sa;Password=123" providerName="System.Data.SqlClient"/>
</connectionStrings>
</configuration>
---
Please advice me how to fix this issue?
Thanks,
Salman
Gaspard
Contributor
2066 Points
416 Posts
Re: I am having problem when i Use the "security Setup Wizard to configure security step by step"...
May 09, 2012 08:04 PM|LINK
Maybe these web pages can help
http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx
and
http://stackoverflow.com/questions/4284034/trouble-with-membership-providers
Regards
Catherine Sh...
All-Star
23373 Points
2490 Posts
Microsoft
Re: I am having problem when i Use the "security Setup Wizard to configure security step by step"...
May 16, 2012 10:05 AM|LINK
Hi bisanisalman,
Welcome to asp.net forum!
According to your description above, it seems like that the connection name 'mobileDB' is not found in the web.config. In order to resolve your issue, please make sure that it is added in the application or root web.config file.
In addition, please check the similar threads below:
http://forums.asp.net/t/1163491.aspx/1
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store