473,396 Members | 2,020 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,396 software developers and data experts.

forms authentction against sql server 2000

Hi,

I'm using sql server 2000 on a remote machine and I have a login.aspx page
with a simple bare bone login control on the page for entering login
information.

I have a virtaul directory setup that points to the physical directory, and
when I access that login page from the virtual directory path say (
http://localhost/test/login.aspx) and entering username, passowrd, I get

"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection to
SQL Server)]
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception,
Boolean breakConnection) +73510"

What's the problem? When I launch the same page from within Visual studio
(which lauches its build-in web server), entering my login informaiton,
bang, i get through just fine.

I checked the follwing

1. Using ASP.NET configuration tool in VS 2005, I created some new user
2. Uisng Enteprrise manager of sql 2000, I see the new users being created
in the remote db.
3. I enabled Named Pipes and TCP/IP on the remote sql server 2000
4. I'm able to login from the build in webserver.
below is my connection string

<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=NEMO;Initial
Catalog=TestDB;Integrated Security=false; User ID=test password=test;"
providerName="System.Data.SqlClient" />
</connectionStrings>

What gives? Is there anything in the IIS 5.1 that I need to configure?

thanks.
Apr 12 '06 #1
1 1220
Are you using the same Connectionstring from the Visual Studio.
Try using Query Analyzer using the same login and see.
And " Integrated Security=false;"
is this not suppose to be set to true?
Patrick

"Liming" <ro*****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

I'm using sql server 2000 on a remote machine and I have a login.aspx page
with a simple bare bone login control on the page for entering login
information.

I have a virtaul directory setup that points to the physical directory,
and when I access that login page from the virtual directory path say (
http://localhost/test/login.aspx) and entering username, passowrd, I get

"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection
to SQL Server)]
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
exception, Boolean breakConnection) +73510"

What's the problem? When I launch the same page from within Visual studio
(which lauches its build-in web server), entering my login informaiton,
bang, i get through just fine.

I checked the follwing

1. Using ASP.NET configuration tool in VS 2005, I created some new user
2. Uisng Enteprrise manager of sql 2000, I see the new users being
created in the remote db.
3. I enabled Named Pipes and TCP/IP on the remote sql server 2000
4. I'm able to login from the build in webserver.
below is my connection string

<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=NEMO;Initial
Catalog=TestDB;Integrated Security=false; User ID=test password=test;"
providerName="System.Data.SqlClient" />
</connectionStrings>

What gives? Is there anything in the IIS 5.1 that I need to configure?

thanks.

Apr 12 '06 #2

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

Similar topics

2
by: Timppa | last post by:
Hi, I have Access 2000 and now I'm converting .mdb database to .adp and Sql Server 2000. In old .mdb application I have a query which handles msysobjects table (reading forms and reports...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
5
by: DFS | last post by:
Situation: Access 2003 front-end, containing links to Access 2003, SQL Server 2000, and DB2 tables. None of these tables are local. Hardware: IBM ThinkCentre, 10/100 Ethernet LAN Problem:...
11
by: HC | last post by:
I posted this in one of the VB forums but I'm starting to think it might be more appropriate to have it here, since it really seems to be a SQL server (MSDE/Express 2005) problem: Hey, all, I...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.