Hi,
I am getting this SQLException: Sql Server does not exist or access denied
Here is the situation:
Build machine: VS 2003, Framework 1.1, Windows XP and SQL Server
I have two sets of connection strings, one for local sql server and one for
internet sql server.
Both connect to the database perfect when i connect through the ASP.NET
pages on my local IIS
The moment i copy relevant code to the hosting site, using internet Sql
Server gives me the above error
The connection string for internet server (which works fine when connecting
from local IIS)
<add key="ashandrodesConnect" value="Data Source=208.170.aaa.xxx;Network
Library=DBMSSOCN;Initial Catalog=mydatabase;User
ID=mysqluser;Password=mysqlpass;" />
i also tried the variation with Data Source=XXX.XXX.XXX.XXX,1433 for
explicit TCP/IP communication but still the same
Any help will be greatly appreciated
Attaching stack info - might be helpful
Stack Trace:
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
WebShop._default.AddEarlyBird(String Name, String Email, String ShoeSize)
+373
WebShop._default.lnkInformMe_Click(Object sender, EventArgs e) +161
System.Web.UI.WebControls.LinkButton.OnClick(Event Args e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.Rai
sePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1277 3 1294
My first thought is a firewall is preventing the connection to your SQL
Server box. Can you connect to the SQL Server from the production box
through anything else running on that box? It might be worthwhile setting
up an ODBC connection just to verify that the connection is working.
Jeff
"Hermit Dave" <he***********@CAPShotmail.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl... Hi, I am getting this SQLException: Sql Server does not exist or access denied
Here is the situation: Build machine: VS 2003, Framework 1.1, Windows XP and SQL Server I have two sets of connection strings, one for local sql server and one
for internet sql server. Both connect to the database perfect when i connect through the ASP.NET pages on my local IIS
The moment i copy relevant code to the hosting site, using internet Sql Server gives me the above error
The connection string for internet server (which works fine when
connecting from local IIS) <add key="ashandrodesConnect" value="Data Source=208.170.aaa.xxx;Network Library=DBMSSOCN;Initial Catalog=mydatabase;User ID=mysqluser;Password=mysqlpass;" />
i also tried the variation with Data Source=XXX.XXX.XXX.XXX,1433 for explicit TCP/IP communication but still the same
Any help will be greatly appreciated Attaching stack info - might be helpful Stack Trace:
[SqlException: SQL Server does not exist or access denied.] System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec tionString options, Boolean& isInTransaction) +372 System.Data.SqlClient.SqlConnection.Open() +384 WebShop._default.AddEarlyBird(String Name, String Email, String
ShoeSize) +373 WebShop._default.lnkInformMe_Click(Object sender, EventArgs e) +161 System.Web.UI.WebControls.LinkButton.OnClick(Event Args e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.Rai sePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
+138 System.Web.UI.Page.ProcessRequestMain() +1277
Hi Jeff,
I did try odbc connection and odbc returns successful connection.
Earlier thought that might be some ip visibility issue but dont think that
is.
Again there's no issue from sql server side cause my dev box can connect to
online sql db
Its just a no go from production env.
"Jeff" <js****@nospam.dls.net> wrote in message
news:u$**************@TK2MSFTNGP11.phx.gbl... My first thought is a firewall is preventing the connection to your SQL Server box. Can you connect to the SQL Server from the production box through anything else running on that box? It might be worthwhile
setting up an ODBC connection just to verify that the connection is working.
Jeff
"Hermit Dave" <he***********@CAPShotmail.com> wrote in message news:%2******************@TK2MSFTNGP11.phx.gbl... Hi, I am getting this SQLException: Sql Server does not exist or access
denied Here is the situation: Build machine: VS 2003, Framework 1.1, Windows XP and SQL Server I have two sets of connection strings, one for local sql server and one for internet sql server. Both connect to the database perfect when i connect through the ASP.NET pages on my local IIS
The moment i copy relevant code to the hosting site, using internet Sql Server gives me the above error
The connection string for internet server (which works fine when connecting from local IIS) <add key="ashandrodesConnect" value="Data Source=208.170.aaa.xxx;Network Library=DBMSSOCN;Initial Catalog=mydatabase;User ID=mysqluser;Password=mysqlpass;" />
i also tried the variation with Data Source=XXX.XXX.XXX.XXX,1433 for explicit TCP/IP communication but still the same
Any help will be greatly appreciated Attaching stack info - might be helpful Stack Trace:
[SqlException: SQL Server does not exist or access denied.] System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec tionString options, Boolean& isInTransaction) +372 System.Data.SqlClient.SqlConnection.Open() +384 WebShop._default.AddEarlyBird(String Name, String Email, String ShoeSize) +373 WebShop._default.lnkInformMe_Click(Object sender, EventArgs e) +161 System.Web.UI.WebControls.LinkButton.OnClick(Event Args e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.Rai sePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +138 System.Web.UI.Page.ProcessRequestMain() +1277
Hello Jeff
Thanks.. I did raise a log and they gave me an internal ip. Firewalled.
You probably did guess it right.
"Jeff" <js****@nospam.dls.net> wrote in message
news:u$**************@TK2MSFTNGP11.phx.gbl... My first thought is a firewall is preventing the connection to your SQL Server box. Can you connect to the SQL Server from the production box through anything else running on that box? It might be worthwhile
setting up an ODBC connection just to verify that the connection is working.
Jeff
"Hermit Dave" <he***********@CAPShotmail.com> wrote in message news:%2******************@TK2MSFTNGP11.phx.gbl... Hi, I am getting this SQLException: Sql Server does not exist or access
denied Here is the situation: Build machine: VS 2003, Framework 1.1, Windows XP and SQL Server I have two sets of connection strings, one for local sql server and one for internet sql server. Both connect to the database perfect when i connect through the ASP.NET pages on my local IIS
The moment i copy relevant code to the hosting site, using internet Sql Server gives me the above error
The connection string for internet server (which works fine when connecting from local IIS) <add key="ashandrodesConnect" value="Data Source=208.170.aaa.xxx;Network Library=DBMSSOCN;Initial Catalog=mydatabase;User ID=mysqluser;Password=mysqlpass;" />
i also tried the variation with Data Source=XXX.XXX.XXX.XXX,1433 for explicit TCP/IP communication but still the same
Any help will be greatly appreciated Attaching stack info - might be helpful Stack Trace:
[SqlException: SQL Server does not exist or access denied.] System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec tionString options, Boolean& isInTransaction) +372 System.Data.SqlClient.SqlConnection.Open() +384 WebShop._default.AddEarlyBird(String Name, String Email, String ShoeSize) +373 WebShop._default.lnkInformMe_Click(Object sender, EventArgs e) +161 System.Web.UI.WebControls.LinkButton.OnClick(Event Args e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.Rai sePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +138 System.Web.UI.Page.ProcessRequestMain() +1277
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jay Chan |
last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that
has Windows-2003 Server on it. Now, we cannot get access to that
database server from other computers. Seem like this may be an...
|
by: hooi |
last post by:
I'm new to Visual Studio.NET and Visual Basic.NET. While trying to run the
sample application, it shows an error message as shown below. I have an SQL
Server containing the sample database...
|
by: george r smith |
last post by:
Gentlemen,
I know that this problem has happened before and I searched and tried
all solutions but
problem is not solved.
I install asp.net community starter kit with some help from this...
|
by: Bruce Schechter |
last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each
time I try to execute the application (which is basically empty so far), I
get a dialog box titled "Microsoft Development...
|
by: Olivogt |
last post by:
Hello,
I was just puting an application on the web server but it did not work as
usual...
- I do develop on my notebook and move released applications to the Web server
- both have Sql Server...
| |
by: ssp |
last post by:
G'Day All,
I have a web application sitting on my laptop and a Sql Server 2000
database on our INTRANET server running Windows 2003. Up until recently
I was able to access the database using my...
|
by: Atia Amin |
last post by:
Hi,
I am a new member. Hello to every one. I am new in ASP.NET area. I wrote an ASP.NET web application which was running ok with my old laptop. Currently I have given a new laptop. Now I copied...
|
by: itfetish |
last post by:
I've just upgraded our WIndows 2003 (with SBS server) web server
to .Net framework 2.0
(it had 1.1 before)
As I have been working on a web parts page on my laptop, hosting it
there, working...
|
by: LamSoft |
last post by:
I am not going to write a aspx to connect a SQL Server... but it tries to connect the SQL Server...
Some of the Code..
protected void LoginButton_Click(object sender, EventArgs e)
{
if...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
| |
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...
|
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,...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |