User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 391,551 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,602 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 2429 | Replies: 4
Reply
Join Date: Jul 2006
Posts: 3
Reputation: code_guru is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
code_guru code_guru is offline Offline
Newbie Poster

Help Asp,ms Access,iis

  #1  
Jul 27th, 2006
I am using asp and ms access in iis, server. my problem is when i am testing it in my pc it working fine but when i upload the page in server it is not working.
[asp]
<%
Dim adoCon
Dim rsAddComments
Dim strSQL
adoCon = Server.CreateObject("ADODB.Connection")adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("guestbook.mdb")

Set rsAddComments = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT tblComments.Name, tblComments.Comments FROM tblComments;"
rsAddComments.CursorType = 2
rsAddComments.LockType = 3
rsAddComments.Open strSQL, adoCon
rsAddComments.AddNew
rsAddComments.Fields("Name") = Request.Form("name")
rsAddComments.Fields("Comments") = Request.Form("comments")
rsAddComments.Update
rsAddComments.Close
Set rsAddComments = Nothing
Set adoCon = Nothing
Response.Redirect "guestbook.asp"
%>
[/asp]

can any1 help me where is the error in this code?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Location: Sydney, Australia
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: Asp,ms Access,iis

  #2  
Jul 28th, 2006
What error are you getting? That will narrow down the range of possible answers we need to give you.
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote  
Join Date: Jul 2006
Posts: 3
Reputation: code_guru is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
code_guru code_guru is offline Offline
Newbie Poster

Help Re: Asp,ms Access,iis

  #3  
Jul 29th, 2006
Originally Posted by Lafinboy
What error are you getting? That will narrow down the range of possible answers we need to give you.

its not showing any error msg. just showing a msg that
"There is a problem with the page you are tring to reach, cannot display the page":rolleyes:
Reply With Quote  
Join Date: Jul 2004
Location: Sydney, Australia
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: Asp,ms Access,iis

  #4  
Jul 29th, 2006
You need to change the settings in your browser so that the entry for 'Show Friendly HTTP Error Messages' is unchecked.

In IE navigate to:
Tools > Internet Options > Advanced : scroll down to the Browsing section and uncheck the checkbox for 'Show friendly HTTP error messages'.

Apply that, reload the page and you should get a much more meaningfull error message.
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote  
Join Date: Jul 2006
Posts: 3
Reputation: code_guru is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
code_guru code_guru is offline Offline
Newbie Poster

Solution Re: Asp,ms Access,iis

  #5  
Jul 29th, 2006
Originally Posted by Lafinboy
You need to change the settings in your browser so that the entry for 'Show Friendly HTTP Error Messages' is unchecked.

In IE navigate to:
Tools > Internet Options > Advanced : scroll down to the Browsing section and uncheck the checkbox for 'Show friendly HTTP error messages'.

Apply that, reload the page and you should get a much more meaningfull error message.

thanks buddy the problem is solved.:lol:
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 9:23 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC