473,499 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Server Does not exist or access denied

Hello all,

I'm having the following error dump from an ASP.net application. The program
is to calculate MRP and it involves complex queries looping thru hundreds of
records in an few SQL 2000 table. After running for 2~3 minutes, the below
error is shown. I've search high and low, but can't find anything close to
solving this problem.

The same ASP page, with less data however works without any issue and is
still on test on our local LAN.

Any help is much appreciated.
SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: SQL Server does not
exist or access denied.
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.SqlInternalConnection.OpenAn dLogin() +139
System.Data.SqlClient.SqlInternalConnection..ctor( SqlConnection
connection, SqlConnectionString connectionOptions) +84
System.Data.SqlClient.SqlConnection.Open() +384
ERP_xxx.ERP_xxx.ExecuteNonQuery(String SQL) +56
ASP.xxxx_aspx.GetBOMList(String xxxxx, String xxxxxxx, DateTime xxxxxxx,
Decimal xxxxxxxx, String xxxxx, String xxxxxxxx in x:\xxx\MRP4.aspx:227
ASP.xxxx_aspx.cmdProceed_Click(Object sender, EventArgs e) in
x:\xxx\MRP4.aspx:52
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
--
Steve
Nov 18 '05 #1
9 2113
How are you actually connecting to the SQL database? Via trusted connection,
or using user credentials or is it hidden in a Webservice???

Ian

"Steven Ung" <st****@nodomainname.com> wrote in message
news:30*************@uni-berlin.de...
Hello all,

I'm having the following error dump from an ASP.net application. The program is to calculate MRP and it involves complex queries looping thru hundreds of records in an few SQL 2000 table. After running for 2~3 minutes, the below
error is shown. I've search high and low, but can't find anything close to
solving this problem.

The same ASP page, with less data however works without any issue and is
still on test on our local LAN.

Any help is much appreciated.
SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: SQL Server does not
exist or access denied.
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.SqlInternalConnection.OpenAn dLogin() +139
System.Data.SqlClient.SqlInternalConnection..ctor( SqlConnection
connection, SqlConnectionString connectionOptions) +84
System.Data.SqlClient.SqlConnection.Open() +384
ERP_xxx.ERP_xxx.ExecuteNonQuery(String SQL) +56
ASP.xxxx_aspx.GetBOMList(String xxxxx, String xxxxxxx, DateTime xxxxxxx, Decimal xxxxxxxx, String xxxxx, String xxxxxxxx in x:\xxx\MRP4.aspx:227
ASP.xxxx_aspx.cmdProceed_Click(Object sender, EventArgs e) in
x:\xxx\MRP4.aspx:52
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

-------------------------------------------------------------------------- ------ Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
--
Steve

Nov 18 '05 #2
It is connected using the username and password stored in web.config file
not using any impersonation.

--
Steven Ung
"Ian Frawley" <ch****@away.com> wrote in message
news:cd***************@news-1.opaltelecom.net...
How are you actually connecting to the SQL database? Via trusted
connection,
or using user credentials or is it hidden in a Webservice???

Ian

"Steven Ung" <st****@nodomainname.com> wrote in message
news:30*************@uni-berlin.de...
Hello all,

I'm having the following error dump from an ASP.net application. The

program
is to calculate MRP and it involves complex queries looping thru hundreds

of
records in an few SQL 2000 table. After running for 2~3 minutes, the
below
error is shown. I've search high and low, but can't find anything close
to
solving this problem.

The same ASP page, with less data however works without any issue and is
still on test on our local LAN.

Any help is much appreciated.
SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: SQL Server does
not
exist or access denied.
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.SqlInternalConnection.OpenAn dLogin() +139
System.Data.SqlClient.SqlInternalConnection..ctor( SqlConnection
connection, SqlConnectionString connectionOptions) +84
System.Data.SqlClient.SqlConnection.Open() +384
ERP_xxx.ERP_xxx.ExecuteNonQuery(String SQL) +56
ASP.xxxx_aspx.GetBOMList(String xxxxx, String xxxxxxx, DateTime

xxxxxxx,
Decimal xxxxxxxx, String xxxxx, String xxxxxxxx in x:\xxx\MRP4.aspx:227
ASP.xxxx_aspx.cmdProceed_Click(Object sender, EventArgs e) in
x:\xxx\MRP4.aspx:52
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
+33
System.Web.UI.Page.ProcessRequestMain() +1292

--------------------------------------------------------------------------

------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;

ASP.NET
Version:1.1.4322.2032
--
Steve


Nov 18 '05 #3
Hi Steve,
It must be a connection error!
If you are using web.config can u post how u are connecting to the
database.
Remember Web.config is case sensitive(Its XML).
Hope it helps.
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
Forgive me if I did not explain the situation.

Web.config file

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- application specific settings -->
<appSettings>
<add key="ConnectionString" value="server=g-123server,8960;user
id=erp1234505ConnectionString;password=ERP1234505T hailand;database=erp_123;pooling=false"
/>
<add key="ServerName" value="g-123server,8960" />
<add key="DatabaseName" value="erp_123" />
<add key="UserID" value="ReportsUser" />
<add key="Password" value="ReportsUser213" />
</appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="IBuySpyStoreAuth" loginUrl="login.aspx"
protection="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="Off" defaultRedirect="ErrorPage.aspx" />
<!-- disable session state for application -->
<sessionState mode="Off" />
<compilation debug="false">
<assemblies>
<add assembly="CrystalDecisions.CrystalReports.Engine,
Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.0.3300.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource,
Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.0.3300.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</assemblies>
</compilation>
</system.web>
</configuration>

More info:
Web server is temporarily running on IIS 5.1 (lockdown enabled) on a Windows
XP SP2 and the SQL is running on another Compaq Proliant ML370 SQL 2000 Std
Edition SP3a

--
Steven Ung
"Patrick Olurotimi Ige" <pa*********@crazyjohns.com.au> wrote in message
news:er**************@tk2msftngp13.phx.gbl...
Hi Steve,
It must be a connection error!
If you are using web.config can u post how u are connecting to the
database.
Remember Web.config is case sensitive(Its XML).
Hope it helps.
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #5
Hi Steve:

Looks like you are trying to connect to g-123server on port 8960. What
kind of database are you using?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 26 Nov 2004 15:37:00 +0800, "Steven Ung"
<st****@nodomainname.com> wrote:
Forgive me if I did not explain the situation.

Web.config file

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- application specific settings -->
<appSettings>
<add key="ConnectionString" value="server=g-123server,8960;user
id=erp1234505ConnectionString;password=ERP1234505 Thailand;database=erp_123;pooling=false"
/>
<add key="ServerName" value="g-123server,8960" />
<add key="DatabaseName" value="erp_123" />
<add key="UserID" value="ReportsUser" />
<add key="Password" value="ReportsUser213" />
</appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="IBuySpyStoreAuth" loginUrl="login.aspx"
protection="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="Off" defaultRedirect="ErrorPage.aspx" />
<!-- disable session state for application -->
<sessionState mode="Off" />
<compilation debug="false">
<assemblies>
<add assembly="CrystalDecisions.CrystalReports.Engine,
Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.0.3300.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource,
Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.0.3300.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</assemblies>
</compilation>
</system.web>
</configuration>

More info:
Web server is temporarily running on IIS 5.1 (lockdown enabled) on a Windows
XP SP2 and the SQL is running on another Compaq Proliant ML370 SQL 2000 Std
Edition SP3a


Nov 18 '05 #6
I also wonder Scott!:(
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #7
Hello Scott,

It is mentioned below that we're using SQL 2000 Std. We changed the port
from 1433 to 8960 as suggested by some websites during the Slammer
outbreaks.

Do you think that is the problem?

--
Steven Ung
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:cr********************************@4ax.com...
Hi Steve:

Looks like you are trying to connect to g-123server on port 8960. What
kind of database are you using?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 26 Nov 2004 15:37:00 +0800, "Steven Ung"
<st****@nodomainname.com> wrote:
Forgive me if I did not explain the situation.

Web.config file

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- application specific settings -->
<appSettings>
<add key="ConnectionString" value="server=g-123server,8960;user
id=erp1234505ConnectionString;password=ERP123450 5Thailand;database=erp_123;pooling=false"
/>
<add key="ServerName" value="g-123server,8960" />
<add key="DatabaseName" value="erp_123" />
<add key="UserID" value="ReportsUser" />
<add key="Password" value="ReportsUser213" />
</appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="IBuySpyStoreAuth" loginUrl="login.aspx"
protection="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="Off" defaultRedirect="ErrorPage.aspx" />
<!-- disable session state for application -->
<sessionState mode="Off" />
<compilation debug="false">
<assemblies>
<add assembly="CrystalDecisions.CrystalReports.Engine,
Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared,
Version=10.0.3300.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource,
Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.0.3300.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</assemblies>
</compilation>
</system.web>
</configuration>

More info:
Web server is temporarily running on IIS 5.1 (lockdown enabled) on a
Windows
XP SP2 and the SQL is running on another Compaq Proliant ML370 SQL 2000
Std
Edition SP3a

Nov 18 '05 #8
This article may be our solution as we're setting the polling = "false"

http://support.microsoft.com/kb/328476

--
Steven Ung
"Patrick Olurotimi Ige" <pa*********@crazyjohns.com.au> wrote in message
news:e%****************@TK2MSFTNGP09.phx.gbl...
I also wonder Scott!:(
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #9
Changing the port is a good idea from a security perspective. I think
the connection string just had me confused a bit, having
"ConnectionString" in the user id makes it look a little odd.

I don't think it is actually a connectivity issue. But just in case,
you might want to run through the following to see if it gives any
clues:
http://support.microsoft.com/kb/827422

If you execute the heavy duty query on the server in a tool like Query
analyzer does it exhibit any problems?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 29 Nov 2004 07:36:57 +0800, "Steven Ung"
<st****@nodomainname.com> wrote:
Hello Scott,

It is mentioned below that we're using SQL 2000 Std. We changed the port
from 1433 to 8960 as suggested by some websites during the Slammer
outbreaks.

Do you think that is the problem?


Nov 18 '05 #10

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

Similar topics

2
2133
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...
2
3266
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...
6
467
by: Bob | last post by:
Having trouble getting started. I created an instance of MSDE called VSDOTNET on a computer with the name of sysdev. Using MS SQL Web Adminstrator I created a database called temp with a...
3
2503
by: Matthew Louden | last post by:
I attempt to connect ASP.NET application with SQL Server using ADO.NET. I just open a connection, and it had run-time error in line 34: cn.open(): SQL Server does not exist or access denied....
3
567
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...
1
2053
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...
2
3123
by: Johan Johansson (Sweden) | last post by:
I can't connect to our database (seperate database server) from within my webservice. I cannot understand why.!!! * I have configured IIS not to allow anonymous access and to use "windows...
1
4176
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...
1
4611
by: vamshika | last post by:
hi, I got a serious Problem. I get "Server does not exist or access denied" with 80004005 as the error code. the win2003 server uses all the latest components(like iis6,jet..etc) and is upto date....
0
7014
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...
0
7229
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
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
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,...
1
4921
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...
0
4609
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...
0
3108
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...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.