Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What happened IIS used to have no problem with this ASP

Status
Not open for further replies.

other3

Programmer
Jul 30, 2002
92
US
// open connection to the database

objConn = Server.CreateObject("ADODB.Connection");
objConn.ConnectionString = "DSN=pb";

objConn.Open();

// create a recordset object

datePublished = this.month + this.year;

objRS = Server.CreateObject("ADODB.Recordset");
strSQL = "SELECT * FROM Magazine WHERE DatePublished = '" + datePublished + "'";
objRS.Open(strSQL, objConn);

this.datePublished = objRS("DatePublished").value;
this.yearPublished = objRS("YearPublished").value;
this.MonthPublished = objRS("MonthPublished").value;
this.Volume = objRS("Volume").value;
this.editionNumber = objRS("EditionNumber").value;
this.cover = objRS("Cover").value;
this.condition = objRS("Condition").value;
this.miscellanous = objRS("Miscellanous").value;
this.personOnCover = objRS("PersonOnCover").value;
this.needsReplaced = objRS("NeedsReplaced").value;

This is the error IE is giving me.

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
/currentMag.asp, line 56

Line 56 is objConn.Open();


Then I had a crash of sorts and had to reinstall Win2K and IIS. All of my other programs, one in Visual C++ and one in Java have no trouble at all with the DSN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top