Re: SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET
From: Carl Prothman [MVP] (carlpr_at_spamcop.net)
Date: 08/13/03
- Next message: John Kennedy: "Re: SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Previous message: Kevin Brown: "Re: aspnet_setreg fails"
- In reply to: John Kennedy: "SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Next in thread: John Kennedy: "Re: SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Reply: John Kennedy: "Re: SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 13 Aug 2003 10:18:18 -0700
"John Kennedy" <jfk@geopraxis.com> wrote
> I have a very simple aspx file that runs on WinXP Pro IIS 5.1 and connects
> to a SQL Server 2k DB running on a Win2003 Server box. It works fine with
> the connection string below (X replace real values for security).
> "packet size=4096;user id=XXX;pwd=XXX;data source='XX.XXX.XXX.X';persist
> security info=False;initial catalog=XXX"
> When I place this aspx file on the Win2003 Server under a Virtual Directory
> I get the following error.
> "SQL Server does not exist or access denied"
> I have replaced the IP address for the data source value in the original
> connection string with every imaginable option (local, localhost,
> <servername\sqlservername>, etc.) to no avail.
> I have added ASPNET, NETWORK SERVICES, & SYSTEM as logins to the SQL Server
> and the database I am trying to access. I have modified my <processModel
> section of the machine.config file to use the SYSTEM user name.
>
John,
Is SQL Server setup for Mix Secuirty mode?
Do you have an evaluation copy of SQL Server 2000 which expired?
Is the connecton timeout set too short?
Are you using the SqlConnection object?
Also, did you turn off connection pooling?
http://support.microsoft.com/default.aspx?scid=kb;en-us;328476
Try adding the SQL Server port number to the IP address to your connection string.
"Data Source=xxx.xxx.xxx.xxx,1433"
(use the port number your SQL Server is setup for. Default is 1433)
Try adding the TCP/IP network library to your connection string
"Network Library=DBMSSOCN"
http://www.able-consulting.com/dotnet/adonet/Data_Providers.htm#SQLClientManagedProviderIP
-- Thanks, Carl Prothman Microsoft ASP.NET MVP http://www.able-consulting.com
- Next message: John Kennedy: "Re: SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Previous message: Kevin Brown: "Re: aspnet_setreg fails"
- In reply to: John Kennedy: "SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Next in thread: John Kennedy: "Re: SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Reply: John Kennedy: "Re: SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|