Sunday, August 2, 2009

Help me with these ASP Source codes....?

Friends Im having a problem while setting up some asp source codes, can any one help me with this.....





i have kept a file in "includes" folder with name "connections.asp" in my server...... it contains the following source:





%26lt;%'Set the variables for the database connection





Set objConn = Server.CreateObject("ADODB.Connection")


strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\users\username\db\tops...


objConn.connectionstring = strCon


objConn.Open


Set objRS = Server.CreateObject("ADODB.Recordset")


'ON ERROR RESUME NEXT


%%26gt;





and i have stored my *.mdb (DATABASE FILE) In the folder "db" of my server





And Whenever i upload all the file to my server (ASP SERVER) and try to open it by typing the address in the IE address bar then It Shows an Error... Which is Somthing like this....





please click on link below to see i cant add it here because the characters are more than the limit....





http://users2.titanichost.com/cowboy

Help me with these ASP Source codes....?
does the include file work on its own?, i.e. with the code alone?
Reply:Source=C:\inetpub\users\userna...





But your error says





c:\windows\system32\inetsrv\db\topsite...





Try creating the db folder in c:\windows\system32\inetsrv\ instead of =C:\inetpub\users\username.


No comments:

Post a Comment