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.O pen().
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 4 2678
Hi Arran,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that SqlConnection.O pen method hangs when
you login as a standard user. If there is any misunderstandin g, 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."
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.O pen method hangs when you login as a standard user. If there is any misunderstandin g, 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."
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."
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.O pen().
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."
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 SqlCommand().
At that point I cannot use SqlConnection() again. Unless I .Close() it and
then .Open it right?
Then what is 'connection pooling' ?
Can't I run multiple SqlCommand()s on the same SqlConnection() somehow ?
|
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 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().
|
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 a form that uses SqlDataAdapter. It fires off
a thread to fill a DataSet. Not a big deal, this works.
I've also got a requirement that the Thread that's going
off to do the work -- if it takes too long, it has to
|
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 reduces the need to
getting and returning connections to the pool repeatedly if a page has
multiple calls to the DB, and each one manages its own connection. However,
this does requires more deliberate coding, like calling the...
|
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 from the default page it takes 30
seconds to show the resultat of a select request
And when, during this 30 seconds, a another user want open a another
forms from the default page, I have an error : "Connection are already
open"
| |
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 open a database connection.
The error seems to happen regardless of what ASP.NET app I'm working
with/trying to debug.
It will open a few connections,
Here's the error:
|
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 connection = new
SqlConnection(ConfigurationSettings.AppSettings))
{
|
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 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().
|
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 write Pooling=true ?
2. What is the default Max Pool size ? After I open the connection, how can
I check what is the max pool size ?
3. I always open the db right before I fill dataset or open a reader, then
close it right away, but sometimes I...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |