Re: ASP .NET Configuration Tool



exactly...

or change the connection string in machine.config

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

How do I set LocalSqlServer? Do I need to add this entry to the
web.config before trying to run the configuration tool?

"Dominick Baier [DevelopMentor]" wrote:

the providers look by default for a connection string called
LocalSqlServer - is this pointing to the right database?

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
I am not able to use the asp .net configuration tool. When I click
on the security tab, I get this messages:

---
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.
---
I am using SQL Server E xpress 2005, and I already have a database
created. Here is my web.config file:
<?xml version="1.0"?>
<configuration>
<appSettings>
</appSettings>
<connectionStrings>
<add name="ConnectionString" connectionString="Data
Source=COMPUTERNAME;Initial Catalog=MyDatabase;Integrated
Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="false" />
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
Any idea what the problem might be? I am able to connect to my
database fine from the visual studio environment.
Thanks.



.