Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
ASPBanner Unlimited Version 8.0
 CJWSoft Support Info : ASPBanner Unlimited Version 8.0
Subject Info: Invalid connection A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
Boneoh
New User
New User


Joined: December/08/2007
Online Status: Offline
Info: 3
Added: December/08/2007 at 3:14pm | IP Logged Quote Boneoh

Hi!

I am getting the following error message:

Database connection error

[Microsoft][ODBC SQL Server Driver][DBNETLIB]Invalid connection.

Running version 8.1, here is my environment:

Windows Server 2003 - Standard x64 Edition - Service Pack 2
SQL Server Express Edition

Here is my connection string:

Driver={SQL
Server};UID=aspbanneruser;password=temp;DATABASE=AspBanner;S ERV
ER=127.0.0.1

I believe that the folder permissions have been set properly. The settings
are being stored in the aspbanner_unlimited_config.asp file.

I am not seeing any errors in the event viewer under system, security, or
application logs.

I have searched the forums, but have not seen this error or anything
similar to it.

I was able to install and test this on my laptop without any major issues. I
am now installing this on our production server. It is a dedicated server,
so I have complete access to this machine.

Any pointers will be appreciated.

Regards,

Pete
Back to Top View Boneoh's Profile Search for other info by Boneoh
 
Boneoh
New User
New User


Joined: December/08/2007
Online Status: Offline
Info: 3
Added: December/08/2007 at 3:15pm | IP Logged Quote Boneoh

Not sure why the connection string is displayed funny in my first post, but it
is correctly formatted in the asp page. Something strange about my cut and
paste there...

Pete

Back to Top View Boneoh's Profile Search for other info by Boneoh
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: December/08/2007 at 3:25pm | IP Logged Quote cwilliams

humm, that is a low level error saying there is a problem with he connection string.. really before any sugnificant asp even gets to run..


I understand what your saying about the forum messing up what you pasted too.

But something must be wrong with the connection string info your using..

I'd start with the 127.0.0.1 part...  try other things like the true named instance of the SQL Server or an IP... 127.0.0.1 won't always work on a real server like it will locally... all depends on the setup really..

On my SQL Server I connect to the Data Source something like this..
Data Source=CJWXXX,53XX

Of course I specify the port number because I changed it from the default for security reasons..

The named instance thing is somewhat mentioned here..
http://www.derkeiler.com/Newsgroups/microsoft.public.sqlserv er.security/2002-06/0843.html

Also try a connection string more like this...

Provider=sqloledb;Data Source=poseidon;Initial Catalog=aspbanner;User Id=asppbanneruser;Password=temp;

I am not sure if the 64 bit thing is a factor or not.. I do know you cant connect to access databases on 64 bit IIS because of there being no drivers... there is some command you run to put iis into 32bit mode which solves that particular issue

Personally I have had a ton of problems with my own servers that I ran 64bit 2003 on.. I eventually went to back to 32 bit versions of the OS as I got sick of the problems..

Regardless, that is another story... you should be able to connect to a sql database ok.. but you have something wrong there .. not sure what..



You might want to try getting your connection string working with very simple code like this before you try to sort it out in ASPBanner..
http://www.codetoad.com/asp_query_displayer.asp




__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
Boneoh
New User
New User


Joined: December/08/2007
Online Status: Offline
Info: 3
Added: December/08/2007 at 5:29pm | IP Logged Quote Boneoh

I found the solution.

I changed 127.0.0.1 to 127.0.0.1\U15243104

It appears that the connection thinks there is a named instance of SQL.
Interesting that none of my other applications on this server needed this.
They are all asp.net, I am sure that there are many other differences.

Thanks!

Pete
Back to Top View Boneoh's Profile Search for other info by Boneoh
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area


Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.powerasp.com,www.aspclassifieds.com,www.aspphotogallery.com,www.codewanker.com