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

Problem with connection

Hello, I have website in asp.net and mysql database. There is some
pages on site that have connections to database created trough c# code
(with connection strings, database adapters, datareaders..etc).

Problem is strange: it works fine for a while, then every few days
just stops by itself, visitors got message "error, access denied for
user....." Solution is actually simple I just go to Control panel and
retype same password for user and after that works fine again ...
but of course I want to stop this happening every 5-10 days. Strange,
isn't it ?

I would like to know what causes of this problem, but now I just have
no idea where to look?

Anybody had similar experience?

Thanks

Feb 2 '07 #1
5 945
"Aahz" <ju*******@hotmail.comwrote in message
news:11**********************@q2g2000cwa.googlegro ups.com...
"error, access denied for user....."
It that the *precise* error message? I.e. it doesn't specify for which user
access is being denied...?

If so, sounds like your app has recycled, which has caused it to forget its
connection string...

How / where are you specifying this...? E.g. Application_Start or somewhere
else...?
Feb 2 '07 #2

Mark Rae je napisao:
"Aahz" <ju*******@hotmail.comwrote in message
news:11**********************@q2g2000cwa.googlegro ups.com...
"error, access denied for user....."

It that the *precise* error message? I.e. it doesn't specify for which user
access is being denied...?

If so, sounds like your app has recycled, which has caused it to forget its
connection string...

How / where are you specifying this...? E.g. Application_Start or somewhere
else...?
I have only one user that web application use to access database, and
when it happens it clearly tells access denied for THAT user.
All OdbcConnections, OdbcCommands ,etc ...are stored in C# code of
every page so when compiled it goes to dll file, right?

I appreciate any help.

Feb 2 '07 #3
"Aahz" <ju*******@hotmail.comwrote in message
news:11********************@p10g2000cwp.googlegrou ps.com...
I have only one user that web application use to access database, and
when it happens it clearly tells access denied for THAT user.
All OdbcConnections, OdbcCommands ,etc ...are stored in C# code of
every page so when compiled it goes to dll file, right?
Hmm - OK... Do you have access to the webserver's EventLog? If so, is there
anything obvious in that e.g. a networking issue, the MySQL service
recycling etc...?

Also, I'm curious as to why you're using ODBC...? There are perfectly
serviceable native .NET providers available for MySQL, including from MySQL
themselves: http://www.connectionstrings.com/?carrier=mysql

Is there any reason why you don't use one of these or, at the *very* least,
OleDb...?
Feb 2 '07 #4

Mark Rae je napisao:
"Aahz" <ju*******@hotmail.comwrote in message
news:11********************@p10g2000cwp.googlegrou ps.com...
I have only one user that web application use to access database, and
when it happens it clearly tells access denied for THAT user.
All OdbcConnections, OdbcCommands ,etc ...are stored in C# code of
every page so when compiled it goes to dll file, right?

Hmm - OK... Do you have access to the webserver's EventLog? If so, is there
anything obvious in that e.g. a networking issue, the MySQL service
recycling etc...?

Also, I'm curious as to why you're using ODBC...? There are perfectly
serviceable native .NET providers available for MySQL, including from MySQL
themselves: http://www.connectionstrings.com/?carrier=mysql

Is there any reason why you don't use one of these or, at the *very* least,
OleDb...?
Reason would be: my lack of knowledge ;)
I don't have access to my servers EventLog but perhaps my hosting
provider does

Feb 2 '07 #5
"Aahz" <ju*******@hotmail.comwrote in message
news:11*********************@m58g2000cwm.googlegro ups.com...
>Is there any reason why you don't use one of these or, at the *very*
least,
OleDb...?

Reason would be: my lack of knowledge ;)
See the following page from the mySQL website:
http://dev.mysql.com/tech-resources/articles/dotnet/ and scroll right down
to the bottom - you will almost certainly find that you will get a major
performance boost by using their native .NET data provider...
I don't have access to my servers EventLog but perhaps my hosting
provider does
Your ISP will certainly have access to it - whether they will give you
access to it, or even just extract it and mail it to you, is another matter
entirely... :-)
Feb 2 '07 #6

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

Similar topics

0
by: Refky Wahib | last post by:
Hi I need Technical Support I finished a Great project using .Net and SQL Server and .Net Mobile Control My Business case is to implement this Program to accept about 1 Million concurrent...
1
by: Refky Wahib | last post by:
Hi Actually I need Technical Support I finished a Great project using .Net and SQL Server and .Net Mobile Control My Business case is to implement this Program to accept about 1 Million...
4
by: Rahul Anand | last post by:
Getting SQL Exception when trying to implement Connection based Trasaction using SQL Helper class. I am using the follwing function to execute my stored procs: -=-=-=- ExecuteScalar(ByVal...
8
by: BBC1009 | last post by:
I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with...
0
by: mortenol | last post by:
Hi, I am trying to connect a MS SSIS package to an AS400/DB2 database, and I experience problem when I hit the "Create Package" button in the "Data Link properties window". I have understood that...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
22
by: b_r | last post by:
Hi, I'm trying to make a simple operation (insert into DB) in VB 2005 and SQL Server. The code is as follows: Dim sConnectionString As String = _ "Data...
5
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
1
by: Ryan Liu | last post by:
Hi, I have a 100 clients/ one server application, use ugly one thread pre client approach. And both side user sync I/O. I frequently see the error on server side(client side code is same, but...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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
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
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.