Showing posts with label store. Show all posts
Showing posts with label store. Show all posts

Saturday, March 31, 2012

There is a problem with your selected data store

Hi,
I am using SQLServer 2005.I have created a simple website and i am trying
to membership to this.so when i click on 'Security' tab of the "WAT" tool it
s
showing the following message.
There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data stor
e.
The following message may help in diagnosing the problem: Unable to connect
to SQL Server database.
Is there anyway out of this?
Pls pls pull me out of this.
Regards,
SSREDDI.I had faced the same prob. but am not able to do that
this link helped me a little but. may be this may help u better.
http://www.c-sharpcorner.com/Upload...hipService.aspx
Hi Sravan,
Thank you for the information.I already tried this.I know this
works.My concern is that i dont want to use aspnet_regsql.exe.Anyway thanks
for the info.
"sravan_reddy001" wrote:

> I had faced the same prob. but am not able to do that
> this link helped me a little but. may be this may help u better.
> http://www.c-sharpcorner.com/Upload...hipService.aspx
>
u try editing the web.config file...
there is lot more to do with that..
hav u created ur own database for your application. If so you have to
give the connection string for that database.
This is my webconfig file. see this and try. I tried for about 3 days
to that.
if u didn't include the roleManager then we can't create the roles and
it states and error message saying "website not configured to enable
roles"
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/
v2.0">
<appSettings/>
<connectionStrings>
<add name="MySqlProviderConnection"
connectionString="server=localhost;integrated security =
true;database=aspnetdb" />
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<authorization>
<deny users="?"/>
</authorization>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<add connectionStringName="MySqlProviderConnection"
enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="/" requiresUniqueEmail="true"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10" name="MySqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="SqlRoleProvider">
<providers>
<clear />
<add applicationName="MyAppName"
connectionStringName="MySqlProviderConnection"
name="SqlRoleProvider"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
quote:
Originally posted by ssreddi
Hi,
I am using SQLServer 2005.I have created a simple website and i am trying
to membership to this.so when i click on 'Security' tab of the "WAT" tool it
s
showing the following message.
There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data stor
e.
The following message may help in diagnosing the problem: Unable to connect
to SQL Server database.
Is there anyway out of this?
Pls pls pull me out of this.
Regards,
SSREDDI.

There is a problem with your selected data store

Hi,
I am using SQLServer 2005.I have created a simple website and i am trying
to membership to this.so when i click on 'Security' tab of the "WAT" tool its
showing the following message.

There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect
to SQL Server database.

Is there anyway out of this?

Pls pls pull me out of this.

Regards,
SSREDDI.I had faced the same prob. but am not able to do that

this link helped me a little but. may be this may help u better.

http://www.c-sharpcorner.com/Upload...hipService.aspx
Hi Sravan,
Thank you for the information.I already tried this.I know this
works.My concern is that i dont want to use aspnet_regsql.exe.Anyway thanks
for the info.

"sravan_reddy001" wrote:

Quote:

Originally Posted by

I had faced the same prob. but am not able to do that
>
this link helped me a little but. may be this may help u better.
>
http://www.c-sharpcorner.com/Upload...hipService.aspx
>
>


u try editing the web.config file...

there is lot more to do with that..
hav u created ur own database for your application. If so you have to
give the connection string for that database.

This is my webconfig file. see this and try. I tried for about 3 days
to that.

if u didn't include the roleManager then we can't create the roles and
it states and error message saying "website not configured to enable
roles"

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/
v2.0">
<appSettings/>
<connectionStrings>
<add name="MySqlProviderConnection"
connectionString="server=localhost;integrated security =
true;database=aspnetdb" />
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<authorization>
<deny users="?"/>
</authorization>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<add connectionStringName="MySqlProviderConnection"
enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="/" requiresUniqueEmail="true"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10" name="MySqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>

<roleManager enabled="true" defaultProvider="SqlRoleProvider">
<providers>
<clear />
<add applicationName="MyAppName"
connectionStringName="MySqlProviderConnection"
name="SqlRoleProvider"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>

Thursday, March 22, 2012

Thoughts please

I'm struggling to get my head round this problem at the moment so'd appreciate and guidance.

I have a menu control that I've decided to store in application cache because I don't need it continually getting re-created. I have now installed the Control Adapters classes. I now have a problem in that whilst the menu gets recreated and rendered as expected, the oninit of the control adapter function that creates the javascript does not(meaning the menu dropdowns don't work) because the control already exists in memory I guess. So any ideas on a good way to overcome this problem?

I'll post up any more info if that's not clear?

thanks

I don't really see the point behind explicitly storing the menu in the application cache, asp.net apps seem to store things in cache unless you explicitly tell it not to.

Hmmm, I maybe getting confused or making this a bit too complicated;

My main reasoning is that the Menu can appear on any aspx page and can appear anywhere in the pages content(it's user defined). By storing it in cache I can call the menus Render method and have it created whenever it has been including by the user. It's not in a static place on the form. This all seems to work btw, it's just not calling OnInit which the control adapter relies on

if that makes sense


This is now fixed but thanks tf for the reply