472,338 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,338 software developers and data experts.

using ASP in web with database Access

10
Hi, I need help on this...

This code is working on my IIS server but when I uploaded it to the web, it wont run anymore, why? Please help.

Thanks!

set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("cartoon.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
Dec 5 '06 #1
7 1382
sashi
1,754 Expert 1GB
Hi, I need help on this...

This code is working on my IIS server but when I uploaded it to the web, it wont run anymore, why? Please help.

Thanks!

set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("cartoon.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
Hi there,

"Won't run anymore" doesn't provide much details to be able to help you out. Please provide more details such as the error message / error number / code being prompt or thrown while executing this code.

Providing more details would ease in providing help in return. Good luck & Take care.
Dec 5 '06 #2
jhaek19
10
Ahm, actually there is no error, cause it simply "wont run/execute" in my web server, unlike in my own computer where I developed the asp file, it executes the way it should be on my IIS virtual directory...but when I uploaded it for users to browse in the www, my commands wont execute; access database, etc...

Hi there,

"Won't run anymore" doesn't provide much details to be able to help you out. Please provide more details such as the error message / error number / code being prompt or thrown while executing this code.

Providing more details would ease in providing help in return. Good luck & Take care.
Dec 6 '06 #3
So you open the web page, and nothing happens? There HAS to be an error somewhere.

Do you have a global.asa file that holds variables, and you are running the virtual directory as it's own application, etc.?

First, I would start by writing out some basic info so you can debug...

Expand|Select|Wrap|Line Numbers
  1. response.write server.mappath("/") & "/whatever/mydb.mdb"
  2. response.end
  3.  
This way, you can step through the code, to see if everything is working.

You should also have a custom 500.asp page which can be configured to show you where errors occur, plus give a nice friendly error page to clients. You can even have it email you the errors, so you can fix the site as quickly as possible. Just a suggestion.

Best regards,

Michael C. Gates
Dec 6 '06 #4
jhaek19
10
I tried it, so it seems my asp doesn't execute on my web server...is there any special headings or commands I should include??

can anyone give me a sample asp file that executes with a database in a web server???please help!


thanks!


So you open the web page, and nothing happens? There HAS to be an error somewhere.

Do you have a global.asa file that holds variables, and you are running the virtual directory as it's own application, etc.?

First, I would start by writing out some basic info so you can debug...

Expand|Select|Wrap|Line Numbers
  1. response.write server.mappath("/") & "/whatever/mydb.mdb"
  2. response.end
  3.  
This way, you can step through the code, to see if everything is working.

You should also have a custom 500.asp page which can be configured to show you where errors occur, plus give a nice friendly error page to clients. You can even have it email you the errors, so you can fix the site as quickly as possible. Just a suggestion.

Best regards,

Michael C. Gates
www.gateshosting.com
Dec 6 '06 #5
sashi
1,754 Expert 1GB
I tried it, so it seems my asp doesn't execute on my web server...is there any special headings or commands I should include??

can anyone give me a sample asp file that executes with a database in a web server???please help!


thanks!
Hi there,

Is ASP supported on the particular web server? Please check this detail. Good luck & Take care.
Dec 6 '06 #6
Are you using windows 2003 or 2000 server?

Regards,

Michael C. Gates
Dec 6 '06 #7
jhaek19
10
Thanks for all your help, I found out that my webhost doesn't support ASP, how sad!!! Anyways Im shifting to PHP programming, hope to hear your help in the future, enjoy programming!
Dec 7 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

38
by: Remco Groot Beumer | last post by:
Hello, I'm trying to decide if the following situation would be workable: Generate an MS Access Front End (which will run localy on client...
5
by: dananrg | last post by:
I've created a small company database where the tables reside in a SQL Server database. I'm using Access 2000 forms for a front end. I've got a...
1
by: Matt Alanzo | last post by:
On another newsgroup an Access knowledgable party posted: >You should be able to connect an Access ADP to an existing SQLExpress >database...
10
by: B Moor | last post by:
Host PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM SQL Server 2000 sp3 (or latest).MS Office 2k3 I have the access 2k3 front end running on...
8
by: Carl | last post by:
Hi, Using MS Access 2000, is it possible to run a UPDATE or INSERT SQL query using some form of conditional IF THEN ?? for example: SELECT...
6
by: Serious_Practitioner | last post by:
Good day all, and thank you in advance for your help. No - MANY thanks in advance for your help - I know nothing about using databases on Web...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application...
10
by: Robert | last post by:
How do you get an accurate count of the number of records returned from a query when using linked tables. I have an access 2003 database as a...
4
by: Bugs | last post by:
Hi everyone. I am trying to open a database which works fine using Access 2003, but when trying to open it on another PC that has Access 2002 I...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

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.