473,396 Members | 1,773 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.

SqlConnection.Open() Hang (Repost at MS Request)

Hi,

I am using .NET 2 (beta2) and are having problems with using a SqlConnection.

I have created a test application that opens a sql connections, gets some
basic data and then closes the connection.

When i run this application as the administrator it works fine. However if
i run the application as a standard user the application hangs indefinatly on
SqlConnection.Open().
I dont get any time out, no exceptions nothing. It just hangs there.

I am using SQL Authentication.

I have tested this on many computers and the same happens.

My main issue is getting this to work on Windows2000 Server (Sp4).

thanks

Arran

Jul 21 '05 #1
4 2620
Hi Arran,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that SqlConnection.Open method hangs when
you login as a standard user. If there is any misunderstanding, please feel
free to let me know.

Since .NET framework 2.0 hasn't been released yet, it's still a beta
version. We are still working to fix problems in it. For .NET framework 2.0
questions, besides posting here, you can also post in the following
newsgroup. It's dedicated in ADO.NET 2.0 questions.

http://forums.microsoft.com/msdn/Sho...spx?ForumID=45

Also, I will help you to report this to the development groups. Thanks for
your feedback!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Yeah thats correct. If the application runs as the administrator then it
connects fine, however if its run as another user the .Open() hangs
indefinatly.

I get the impressing this is not a bug as i have found out that it also
happens with some other services. Such as WebService calls.

Could this be a permission thing? Something new in .NET v2? Something to
do with CAS?
"Kevin Yu [MSFT]" wrote:
Hi Arran,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that SqlConnection.Open method hangs when
you login as a standard user. If there is any misunderstanding, please feel
free to let me know.

Since .NET framework 2.0 hasn't been released yet, it's still a beta
version. We are still working to fix problems in it. For .NET framework 2.0
questions, besides posting here, you can also post in the following
newsgroup. It's dedicated in ADO.NET 2.0 questions.

http://forums.microsoft.com/msdn/Sho...spx?ForumID=45

Also, I will help you to report this to the development groups. Thanks for
your feedback!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hi Arran,

As I stated, the .net framework 2.0 is still in beta version. The features
might change in the future. So we are also not quite sure about it. Thanks
for your understanding.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4
I am getting the same results using .Net Framework 1.1 when the remote server
I'm connecting to is not responding, and I am running as administrator. When
SQL Server is stopped, it times out and I get an exception, but when the
physical server is turned off, the script just hangs at SqlConnection.Open().

Is there a way around that, or do I need to add in a check for the server
before connecting to the database?

Thanks,
Sean

"Kevin Yu [MSFT]" wrote:
Hi Arran,

As I stated, the .net framework 2.0 is still in beta version. The features
might change in the future. So we are also not quite sure about it. Thanks
for your understanding.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #5

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

Similar topics

1
by: Donnie Darko | last post by:
I'm trying to understand SqlConnection(), SqlCommand() For example. I use SqlConnection() as a parameter when I create a new SqlCommand. Then I open SqlConnection(), then I execute the...
2
by: arran.pearce | last post by:
Hi, I am using .NET 2 (beta2) and are having problems with using a SqlConnection. I have created a test application that opens a sql connections, gets some basic data and then closes the...
2
by: Sgt. Sausage | last post by:
New to multi-threading (less than 24 hours at it <grin>) Anyway, it's all making sense, and working fairly well thus far, but I'm having a minor issue I'm not sure how to get around. I've got...
11
by: Bob | last post by:
In our new .NET web applications, we try to limit the use of SqlConnection to just one instance per page, even if there are multiple accesses to various queries. The thinking behind is that this...
10
by: bnob | last post by:
Im my ASP.net project I do a lot of connection to the SQL Server Database. I use a global variabe for my connection declare in a module (VB.Net code behind) All is ok but when I start a form...
4
by: Nevyn Twyll | last post by:
I've been working on an asp.net application and everything's been great. But suddenly, whether I'm tyring to use a database on my own machine, or on my server, I'm getting a timeout when trying to...
2
by: Nils Magnus Englund | last post by:
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection...
5
by: arran.pearce | last post by:
Hi, I am using .NET 2 (beta2) and are having problems with using a SqlConnection. I have created a test application that opens a sql connections, gets some basic data and then closes the...
5
by: fniles | last post by:
I am using VB.NET 2003. When using SQLClient.SQLConnection with SQL 2005 database, 1. connection pooling is automatically used, right ? I mean, in the connection string I do not need to explicitly...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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,...

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.