473,395 Members | 2,079 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,395 software developers and data experts.

two problems. Can't debug problem I shouldn't have

I just got a new computer. I transfered my web site files
over and setup my access database system ODBC driver.

I've compared settings on both computers. But when I run
my web site code on new machine I get...

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Not a valid
password.

However, I can successfully use this ODBC driver with
other tools such as Microsoft Excel with no problem. It's
the same database and ALL the ODBC driver settings are
correct.

Code in ASP page reads
Set db = Server.CreateObject("ADODB.Connection")
db.open strConn, strUser, strPass

So I decide I would debug. I checked "enable ASP Server
side debugging", but I can't debug. I insert "Stop" in my
code and nothing I do is throwing me into the debugger.
Jul 19 '05 #1
6 3558
Here is a good article for troubleshooting connection problems:
http://www.aspfaq.com/show.asp?id=2009

Here are my recommendations:

1) Stop using ODBC (http://support.microsoft.com/?kbid=222135). Switch to
the newer, more robust, native Jet OLEDB provider. See
www.connectionstrings.com or www.able-consulting.com/ado_conn.htm for
details.

2) Your connection string could be wrong, but we can't know for sure
because, well, um ... you did not show us your connection string. :-)

3) Maybe you shouldn't be supplying a password in your .Open statement - we
just don't know for sure because you did not provide any details about how
your database is set up. If you don't have a password-secured database, then
you shold not be supplying a password in your .Open statement. You should do
some reading about Access security so you can communicate those details to
us better. Here is a link to the MS Access Security FAQ white paper:
http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe
FWIW, I've never supplied a user name or password in my .Open statement when
opening a connection to an Access database.

HTH,
Bob Barrows

Tom D. wrote:
I just got a new computer. I transfered my web site files
over and setup my access database system ODBC driver.

I've compared settings on both computers. But when I run
my web site code on new machine I get...

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Not a valid
password.

However, I can successfully use this ODBC driver with
other tools such as Microsoft Excel with no problem. It's
the same database and ALL the ODBC driver settings are
correct.

Code in ASP page reads
Set db = Server.CreateObject("ADODB.Connection")
db.open strConn, strUser, strPass

So I decide I would debug. I checked "enable ASP Server
side debugging", but I can't debug. I insert "Stop" in my
code and nothing I do is throwing me into the debugger.


Jul 19 '05 #2
1) I'll take a look

2) Sorry. strConn is the name of the System ODBC Driver.
I can assure you there is nothing wrong with the
connection string. This has to be a configuration issue.
The code works on my hosted web server and my old PC. I
copied it to new pc and it doesn't work. I've verified
all the ODBC settings and they are EXACT match to what is
used for functional machines.

3) The Database does have a password. I want to secure it
in case anyone gets lucky and is able to download it from
my site somehow.

4) any hints about debugging?
-----Original Message-----
Here is a good article for troubleshooting connection problems:http://www.aspfaq.com/show.asp?id=2009

Here are my recommendations:

1) Stop using ODBC (http://support.microsoft.com/? kbid=222135). Switch tothe newer, more robust, native Jet OLEDB provider. See
www.connectionstrings.com or www.able- consulting.com/ado_conn.htm fordetails.

2) Your connection string could be wrong, but we can't know for surebecause, well, um ... you did not show us your connection string. :-)
3) Maybe you shouldn't be supplying a password in your .Open statement - wejust don't know for sure because you did not provide any details about howyour database is set up. If you don't have a password- secured database, thenyou shold not be supplying a password in your .Open statement. You should dosome reading about Access security so you can communicate those details tous better. Here is a link to the MS Access Security FAQ white paper:http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe
FWIW, I've never supplied a user name or password in my .Open statement whenopening a connection to an Access database.

HTH,
Bob Barrows

Tom D. wrote:
I just got a new computer. I transfered my web site files over and setup my access database system ODBC driver.

I've compared settings on both computers. But when I run my web site code on new machine I get...

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Not a valid
password.

However, I can successfully use this ODBC driver with
other tools such as Microsoft Excel with no problem. It's the same database and ALL the ODBC driver settings are
correct.

Code in ASP page reads
Set db = Server.CreateObject("ADODB.Connection")
db.open strConn, strUser, strPass

So I decide I would debug. I checked "enable ASP Server
side debugging", but I can't debug. I insert "Stop" in my code and nothing I do is throwing me into the debugger.


.

Jul 19 '05 #3
Tom D wrote:
1) I'll take a look

2) Sorry. strConn is the name of the System ODBC Driver.
I can assure you there is nothing wrong with the
connection string. This has to be a configuration issue.
The code works on my hosted web server and my old PC. I
copied it to new pc and it doesn't work. I've verified
all the ODBC settings and they are EXACT match to what is
used for functional machines.
Different versions of ADO may be causing this. Again. Don't worry about
figuring out why. Simply stop using ODBC. It has been deprecated.

3) The Database does have a password. I want to secure it
in case anyone gets lucky and is able to download it from
my site somehow.
OK, then you need to use the password-secured string from one of the sites I
gave you:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet
OLEDB:Database Password=MyDbPassword;"


4) any hints about debugging? The aspfaq article.

-----Original Message-----
Here is a good article for troubleshooting connection problems:
http://www.aspfaq.com/show.asp?id=2009

Here are my recommendations:

1) Stop using ODBC (http://support.microsoft.com/? kbid=222135).
Switch to the newer, more robust, native Jet OLEDB provider. See
www.connectionstrings.com or www.able-

consulting.com/ado_conn.htm for
details.

2) Your connection string could be wrong, but we can't know for sure
because, well, um ... you did not show us your connection string. :-)

3) Maybe you shouldn't be supplying a password in

your .Open statement - we
just don't know for sure because you did not provide any details
about how your database is set up. If you don't have a password-
secured database, then you shold not be supplying a password in your
.Open statement. You should do some reading about Access security so
you can communicate those details to us better. Here is a link to
the MS Access Security FAQ white paper:
http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe FWIW, I've
never supplied a user name or password in

my .Open statement when
opening a connection to an Access database.

HTH,
Bob Barrows

Tom D. wrote:
I just got a new computer. I transfered my web site files
over and setup my access database system ODBC driver.

I've compared settings on both computers. But when I run
my web site code on new machine I get...

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Not a valid
password.

However, I can successfully use this ODBC driver with
other tools such as Microsoft Excel with no problem. It's
the same database and ALL the ODBC driver settings are
correct.

Code in ASP page reads
Set db = Server.CreateObject("ADODB.Connection")
db.open strConn, strUser, strPass

So I decide I would debug. I checked "enable ASP Server
side debugging", but I can't debug. I insert "Stop" in my
code and nothing I do is throwing me into the debugger.


.


Jul 19 '05 #4
<<
4) any hints about debugging?


Of course Response.Write's are a good way to do some debugging.

For example in a login page where the user's access level is assigned to
a session variable one could do something like the following:
Response.Write objRST("UserName") & "<br>"
Response.Write objRST("UserPassword") & "<br>"
Response.Write objRST("UserAccess") & "<br>"
Response.Flush
Response.End

The second of the last line above is often required if buffering is set
on (Response.Buffer = True) which it perhaps usually would be.
The last line above is optional for if you need to stop the code from
running after that point (i.e. to avoid a page redirect or something).

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5

"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:O5*************@TK2MSFTNGP10.phx.gbl...
3) The Database does have a password. I want to secure it
in case anyone gets lucky and is able to download it from
my site somehow.


Just don't put it in the Web Path and you won't have to worry about
that. The Connection String can find it anywhere on the machine as
long as the File Permissions are correct,...it doesn't need to be
(shouldn't be) within the Website's "tree".

--

Phillip Windell [CCNA, MVP, MCP]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com
Jul 19 '05 #6
My choices for Database is limited by my web hosting
company.

Problem turned out to be the temp directory didn't have
the right permissions.

I've got a priority support call opened with Microsoft at
the moment to figure out the debugging issues.

10 hours later, they still don't know. but they are
working on it.

thanks.

-----Original Message-----

"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:O5*************@TK2MSFTNGP10.phx.gbl...
3) The Database does have a password. I want to secure it in case anyone gets lucky and is able to download it from my site somehow.
Just don't put it in the Web Path and you won't have to

worry aboutthat. The Connection String can find it anywhere on the machine aslong as the File Permissions are correct,...it doesn't need to be(shouldn't be) within the Website's "tree".

--

Phillip Windell [CCNA, MVP, MCP]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com
.

Jul 19 '05 #7

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

Similar topics

2
by: Razzie | last post by:
Hey all, I'm working on this project where I'm dynamically loading an assembly. Basically what I want is that I can just replace my old dll file with a new one without having to do anything...
4
by: Michael Augustine | last post by:
I am having problems debugging an Web form app in .net. I am getting the following error message "Unable to Start Debugging on the Webserver. Catostrophic Failure." I think the problem has to...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
6
by: Don | last post by:
I'm having problems working with a streamwriter object. After closing the streamwriter and setting it to Nothing, I try to delete the file it was writing to, but I always get the following error...
12
by: antoan | last post by:
Hi, I am looking for C# practice/interview programming problems and NOT general framework explanatory questions. The ones I've come across I find a wee bit easy. I'd like to find material...
5
by: Richard J Foster | last post by:
Hi there, I have a pair of C# projects in VS2003. The first project, a dll, is referenced in the second via a project reference. The assemblies in question are delay-signed during a...
1
by: Swincher | last post by:
Hey - - -- --- --- - -- - Any data folks out there? I have started investigating the use of MDB2 for a data object. So far, it is winning the struggle... I am just trying to connect to a...
8
by: mickey22 | last post by:
Hi all, I am trying to compile a VC++ project and it is win32 console application.When I try to compile it I get a lot of linking problems.I have included all the header files needed for the...
19
by: desktop | last post by:
When I write code I use a lot of: std::cout << "TEST1\n"; .... .... <some code> .... ....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.