Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

problems accessing data through ASP.NET (no replies)

$
0
0
Hi, I have mysql running locally on my machine, and I just started building an ASP.NET website using data from a database on this machine. The application currently only queries the database; it doesn't modify it. When the application starts up, multiple connections get made to the database (both in serial and in parallel), and queries in the form of simple statements and stored procedures get called. Each connection should result in a disconnection, although I'm not positive.

I'm debugging through the Visual Studio IDE. The first time I run (after having restarted the mysql daemon), everything seems to work fine. All of the data is correctly returned from the database.
But if I stop and restart the debugger, I can no longer access the data from the database. I don't get any errors in Visual Studio when I attempt to open the connection, but when I do "DbCommand.ExecuteReader(...)" thereby executing my stored procedure, I get an error that a stored procedure of this name is not in my database.

Likewise, if I do a "DbCommand.ExecuteReader(...)" on a simple SQL statement like "select * from Room", no results are returned.
Any thoughts on why? I'm new to this, so it could be something dumb.
I don't know if it will provide any clues, but here's what the end of my General Query Log looks like:

120609 14:37:40 1 Init DB wheresmysh_t
1 Query call GetAllContainers ()
1 Init DB wheresmysh_t
1 Query SELECT * FROM Room
120609 14:37:41 1 Init DB wheresmysh_t
1 Query SET SQL_SELECT_LIMIT=1
1 Query call GetPerson ('larrychan1@yahoo.com')
1 Query SET SQL_SELECT_LIMIT=-1
1 Init DB wheresmysh_t
1 Query call GetPersons ()
120609 14:38:51 1 Init DB wheresmysh_t
1 Query call GetAllContainers ()
1 Init DB wheresmysh_t
1 Query SELECT * FROM Room
1 Init DB wheresmysh_t
1 Query SET SQL_SELECT_LIMIT=1
1 Query call GetPerson ('larrychan1@yahoo.com')
1 Query SET SQL_SELECT_LIMIT=-1
1 Init DB wheresmysh_t
1 Query call GetPersons ()
120609 14:39:07 1 Init DB wheresmysh_t
1 Query call GetAllContainers ()
1 Init DB wheresmysh_t
1 Query SELECT * FROM Room
120609 14:39:08 1 Init DB wheresmysh_t
1 Query SET SQL_SELECT_LIMIT=1
1 Query call GetPerson ('larrychan1@yahoo.com')
1 Query SET SQL_SELECT_LIMIT=-1
1 Init DB wheresmysh_t
1 Query call GetPersons ()

I couldn't find any help online on how to interpret this file. So, I have no idea whether it looks right or not. Like what does the number identify? And should there be a "Close DB" statement or something?

I noticed it says "SQL_SELECT_LIMIT=-1". Is that right?

Here's what's in the Error log:

120609 14:37:20 [Note] Plugin 'FEDERATED' is disabled.
120609 14:37:20 InnoDB: Initializing buffer pool, size = 76.0M
120609 14:37:20 InnoDB: Completed initialization of buffer pool
120609 14:37:20 InnoDB: Started; log sequence number 0 44233
120609 14:37:20 [Note] Event Scheduler: Loaded 0 events
120609 14:37:20 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: ready for connections.
Version: '5.1.63-community-log' socket: '' port: 3306 MySQL Community Server (GPL)
120609 14:39:20 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: Normal shutdown

Any ideas? Thank you!

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>