473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Website configuration too

SAL
I'm trying to use the website configuration tool and it keeps telling me
that it is unable to connect the SQL Server Database.

I do not have SQL Server Express installed. I have the real deal installed
on my development box. Is this the problem or is there someway to tell this
tool that I'm using and named instance of SQL Server.
I ran the aspnet_regsql.exe tool and it installed the aspnetdb database in
the server.

In the machine.config it's got
LocalSqlServer
As the connectionStringName

Help?

S
Feb 10 '07 #1
4 1452
On Feb 10, 1:15 am, "SAL" <S...@NoNo.comwrote:
I'm trying to use the website configuration tool and it keeps telling me
that it is unable to connect the SQL Server Database.

I do not have SQL Server Express installed. I have the real deal installed
on my development box. Is this the problem or is there someway to tell this
tool that I'm using and named instance of SQL Server.
I ran the aspnet_regsql.exe tool and it installed the aspnetdb database in
the server.

In the machine.config it's got
LocalSqlServer
As the connectionStringName
".\SQLEXPRESS" is name of an instance SQL Server Express creates by
default. The dot means the local server and \SQLEXPRESS specifies the
SQLEXPRESS named instance. And this is configured by default the
website configuration tool. If you don't have SQL Server Express
installed you need to specify name(instance) of your server.

For example, it could be "localhost" and LocalSqlServer could be

server=localhost;database=...;uid=...;pwd=...;
Feb 10 '07 #2
SAL
Here's what it say in my machine .config file:
<connectionStrings>
<add name="LocalSqlServer" connectionString="data
source=.\SQLEXPRESS;Integrated
Security=SSPI;AttachDBFilename=|DataDirectory|aspn etdb.mdf;User
Instance=true" providerName="System.Data.SqlClient" />
</connectionStrings>

If I put this in my local web.config (changing the .\SQLEXPRESS to
..SQL2005 -- the named instance), then when I start the ASP.NET configuration
tool and click on the security tab I get the following error message.

I'm a total newbie here so I appreciate any help I can get with this.

S

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
On Feb 10, 1:15 am, "SAL" <S...@NoNo.comwrote:
>I'm trying to use the website configuration tool and it keeps telling me
that it is unable to connect the SQL Server Database.

I do not have SQL Server Express installed. I have the real deal
installed
on my development box. Is this the problem or is there someway to tell
this
tool that I'm using and named instance of SQL Server.
I ran the aspnet_regsql.exe tool and it installed the aspnetdb database
in
the server.

In the machine.config it's got
LocalSqlServer
As the connectionStringName

".\SQLEXPRESS" is name of an instance SQL Server Express creates by
default. The dot means the local server and \SQLEXPRESS specifies the
SQLEXPRESS named instance. And this is configured by default the
website configuration tool. If you don't have SQL Server Express
installed you need to specify name(instance) of your server.

For example, it could be "localhost" and LocalSqlServer could be

server=localhost;database=...;uid=...;pwd=...;


Feb 12 '07 #3
On Feb 12, 6:46 pm, "SAL" <S...@NoNo.comwrote:
>
If I put this in my local web.config (changing the .\SQLEXPRESS to
.SQL2005 -- the named instance), then when I start the ASP.NET configuration
tool and click on the security tab I get the following error message.

Please specify the exact error you get.

Questions:

1. Do you connect to your database in Microsoft SQL Server Management
Studio as ".SQL2005"?
2. Do you really need to attach a database with name aspnetdb.mdf?

Try to connect with this string

<add name="LocalSqlServer"
connectionString="Data Source=.;Integrated Security=SSPI;"
providerName="System.Data.SqlClient" />

As I'm not sure about the name of database the Data Source value could
be different.

Feb 12 '07 #4
SAL
Awesome, I had to include the Initial Catalog property in the connection
string but now I'm getting into the website configuration tool to the page
that lets me select and edit Users, Roles etc.
Thanks very much
I appreciate your help with this.
S

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@q2g2000cwa.googlegro ups.com...
On Feb 12, 6:46 pm, "SAL" <S...@NoNo.comwrote:
>>
If I put this in my local web.config (changing the .\SQLEXPRESS to
.SQL2005 -- the named instance), then when I start the ASP.NET
configuration
tool and click on the security tab I get the following error message.


Please specify the exact error you get.

Questions:

1. Do you connect to your database in Microsoft SQL Server Management
Studio as ".SQL2005"?
2. Do you really need to attach a database with name aspnetdb.mdf?

Try to connect with this string

<add name="LocalSqlServer"
connectionString="Data Source=.;Integrated Security=SSPI;"
providerName="System.Data.SqlClient" />

As I'm not sure about the name of database the Data Source value could
be different.

Feb 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
2
by: Erland | last post by:
Hi all, I have developed an asp.net( 1.1) website using vb.net and Microsoft Access and my hosting company does support asp.net1.1. Now I've FTP'd the website , but whenever i try to access the...
1
by: kurt sune | last post by:
I am having trouble publishing a website for RELEASE. 1. web.config: <compilation defaultLanguage="vb" debug="false"> 2. in Configuration manager I set the configuration to Release for the...
3
by: mrajanikrishna | last post by:
Hi friends, I've designed an application in my local system using VS.NET 2003. (VB.NET and ASP.NET) Its working fine. Now, I want to publish to my ISPs server. I've FTP account. How can I...
5
by: Dariusz Tomon | last post by:
Hello I have no idea how to deploy my website to another server (in virtual folder I cannot see dlls file). Is thate any simple and quick manner to deploy web site to another servers? Best...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.