473,625 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help connection


Hello all,

I am getting 500 Internal Server Error. I have tried disabling the show
friendly error in IE and I have tried it on Firefox. It will not give me the
reason why it will not work, I only get 500 Internal Server Error. I have
tested the code up to the point of Set objConn and it works but when it gets
to the objConn.open dsn that's when I get the error. I wish to find out why
it is not allowing it to get pass this point. I have control of the server
where this is hosted and if there is anything I need to do, I can do it.
Please help!

<!--#include file="dsn.asp"-->
<%

Dim objConn
Set objConn = Server.CreateOb ject("ADODB.Con nection")

objConn.open dsn <======== My Problem Is Here

+++++++++++++++ +++++++++++++++ ++++++++++++
+ file: dsn.asp +
++++++++++

<%
dim dsn
dim Conn
dsn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=C:\Inetp ub\vhosts\mydom ain.com\httpdoc s\_private\data base\books.mdb;
Jet OLEDB:Database; "
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Conn.Open dsn
%>
+++++++++++++++ +++++++++++++++ ++++++++++++
Mar 3 '06 #1
13 1461
"momo" <ma***@seeourwe b.com> wrote:

++++++++++++++ +++++++++++++++ +++++++++++++
+ file: dsn.asp +
++++++++++

<%
dim dsn
dim Conn
dsn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=C:\Inet pub\vhosts\mydo main.com\httpdo cs\_private\dat abase\books.mdb ;
Jet OLEDB:Database; "

VSScript doesn't work like this. Statements end at end-of-line unless
you explicitly say otherwise. This statement should look something
like this:

dsn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data" & _
"Source=C:\Inet pub\vhosts\mydo main.com\httpdo cs\_private\" & _
"database\books .mdb;Jet OLEDB:Database; "

The "&" is a concatenation operator, the trailing "_" tells the
interpreter that the statement continues on the next line

--
Tim Slattery
MS MVP(DTS)
Sl********@bls. gov
Mar 3 '06 #2
Thanks Tim for replying. The statement is on continious line. The strange
thing is that dsn.asp works when used in another .asp page.

dsn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=C:\Inetp ub\vhosts\mydom ain.com\httpdoc s\_private\data base\books.mdb;
Jet OLEDB:Database; "
"Tim Slattery" <Sl********@bls .gov> wrote in message
news:kr******** *************** *********@4ax.c om...
"momo" <ma***@seeourwe b.com> wrote:

+++++++++++++ +++++++++++++++ ++++++++++++++
+ file: dsn.asp +
++++++++++

<%
dim dsn
dim Conn
dsn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=C:\Ine tpub\vhosts\myd omain.com\httpd ocs\_private\da tabase\books.md b;
Jet OLEDB:Database; "

VSScript doesn't work like this. Statements end at end-of-line unless
you explicitly say otherwise. This statement should look something
like this:

dsn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data" & _
"Source=C:\Inet pub\vhosts\mydo main.com\httpdo cs\_private\" & _
"database\books .mdb;Jet OLEDB:Database; "

The "&" is a concatenation operator, the trailing "_" tells the
interpreter that the statement continues on the next line

--
Tim Slattery
MS MVP(DTS)
Sl********@bls. gov

Mar 3 '06 #3
momo wrote:
Hello all,

I am getting 500 Internal Server Error. I have tried disabling the
show friendly error in IE and I have tried it on Firefox. It will not
give me the reason why it will not work, I only get 500 Internal
Server Error.
It sounds as if you have to turn it off at the web site using IIS Manager.
Barring that, you will need to use some error-trapping to find the error

on error resume next objConn.open dsn <======== My Problem Is Here

if err <> 0 then
response.write err.description
response.end
end if

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 3 '06 #4
Thanks Bob,

I tried that and got error "Could not use ''; file already in use." I could
not find where it is in use. Could you help and could you tell me how to
turn it on in IIS Manager.
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:O6******** ******@TK2MSFTN GP14.phx.gbl...
momo wrote:
Hello all,

I am getting 500 Internal Server Error. I have tried disabling the
show friendly error in IE and I have tried it on Firefox. It will not
give me the reason why it will not work, I only get 500 Internal
Server Error.


It sounds as if you have to turn it off at the web site using IIS Manager.
Barring that, you will need to use some error-trapping to find the error

on error resume next
objConn.open dsn <======== My Problem Is Here

if err <> 0 then
response.write err.description
response.end
end if

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Mar 3 '06 #5
momo wrote:
Thanks Bob,

I tried that and got error "Could not use ''; file already in use." I

This is usually a permission problem: all users of an mdb file need Modify
permissions for the folder containing the file, not just the file itself. If
your site uses Anonymous access, then you need to grant this permission to
the IUSR_machinenam e account.

could not find where it is in use. Could you help and could you tell
me how to turn it on in IIS Manager.
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:O6******** ******@TK2MSFTN GP14.phx.gbl...
momo wrote:
Hello all,

I am getting 500 Internal Server Error. I have tried disabling the
show friendly error in IE and I have tried it on Firefox. It will
not give me the reason why it will not work, I only get 500
Internal Server Error.


It sounds as if you have to turn it off at the web site using IIS
Manager. Barring that, you will need to use some error-trapping to
find the error

on error resume next
objConn.open dsn <======== My Problem Is Here

if err <> 0 then
response.write err.description
response.end
end if

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 3 '06 #6
momo wrote:
Could you help and could you tell
me how to turn it on in IIS Manager.


It's in the Application Configuration dialog in the Debugging tab
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 3 '06 #7
Thanks Bob,

That did it. The permission on the folder.
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
momo wrote:
Thanks Bob,

I tried that and got error "Could not use ''; file already in use." I

This is usually a permission problem: all users of an mdb file need Modify
permissions for the folder containing the file, not just the file itself.
If
your site uses Anonymous access, then you need to grant this permission to
the IUSR_machinenam e account.

could not find where it is in use. Could you help and could you tell
me how to turn it on in IIS Manager.
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:O6******** ******@TK2MSFTN GP14.phx.gbl...
momo wrote:
Hello all,

I am getting 500 Internal Server Error. I have tried disabling the
show friendly error in IE and I have tried it on Firefox. It will
not give me the reason why it will not work, I only get 500
Internal Server Error.

It sounds as if you have to turn it off at the web site using IIS
Manager. Barring that, you will need to use some error-trapping to
find the error

on error resume next
objConn.open dsn <======== My Problem Is Here
if err <> 0 then
response.write err.description
response.end
end if

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Mar 3 '06 #8
In the debugging tab "Send detail ASP error messages to clients" is already
selected. But it still does not show me the error. Do I have to check either
of the two boxes under "Debugging flags"?
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:OZ******** ******@tk2msftn gp13.phx.gbl...
momo wrote:
Could you help and could you tell
me how to turn it on in IIS Manager.


It's in the Application Configuration dialog in the Debugging tab
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Mar 3 '06 #9
No.
As long as the browser is configured correctly, you should receive the
detailed errors.

You should probably be using error-trapping anyways. Many users find it very
jarring to be sent to the generic error pages.
momo wrote:
In the debugging tab "Send detail ASP error messages to clients" is
already selected. But it still does not show me the error. Do I have
to check either of the two boxes under "Debugging flags"?
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:OZ******** ******@tk2msftn gp13.phx.gbl...
momo wrote:
Could you help and could you tell
me how to turn it on in IIS Manager.


It's in the Application Configuration dialog in the Debugging tab
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 3 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
297
by: Naren | last post by:
Victor Bazarov <v.Abazarov@comAcast.net> wrote: >Naren wrote: >> MyServer class conatins a list of Mysock class. >> >> class Myserver >> { >> private: >> list<Mysock> L1; >> }; >>
2
4437
by: Jozef | last post by:
Hello, I'm trying to create a central function that runs a connection to an SQL Server database. The connection etc works, but when I try to call it, I get an error saying "Runtime-Error 91: Object variable or with block variable not set". I have pasted the code below. The first section is the function that I'm using, the second function is only the test that calls teh genErrorColl function '***************** Start Code...
2
2291
by: Lior | last post by:
Hi, I have an ASP.NET website that crashes under heavy load. I use a SQL Server DB. I get around 5500 hits per day. I keep getting the timeout expieried connection pool error. Sometimes it even throws and error about a DataReader connection being already open even though I only use Data Sets in my code. Please take a look and see if you can find my leak because I'm going nuts here and am losing hope... I keep blaming the server and the...
2
2424
by: Mahesh Devjibhai Dhola | last post by:
Hi, I want to develop p2p (peer-to-peer) communication connection for chat in ..Net (Lang: c# - preferable) NOTE: if two LAN are behind their own router then also it should work as yahoo, msn messenger works. Let me explain scenario: In yahoo: - We login to yahoo server from yahoo messenger (yahoo server listens at
15
2079
by: DavidS | last post by:
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue ever with web development and SQL connections. Purchased new laptop with XP Professional SP2!!!!!!!! & Visual Studio.NET installed. Nothing but headaches. Continually getting System.Data.SqlClient.SqlException : Timeout expired message - The timeout period elapsed prior to completion of the operation or the server is not responding. Can anyone help with...
6
4983
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a PDF. It works fine so far....
14
7026
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that sql server resides on is not reachable. The error is different depending on the connection string that I use. If I use the following connection string: "server=192.1.1.1; Initial Catalog=master; uid=The_User; password=The_Password; Connect...
2
2660
by: BlackKite | last post by:
I have this script I wrote up as a php backend. But its throwing some errors i dont quite understand. Hope someone can help me fix this. Please Error: Line 52: ftp_fput($connection, $bandle, $file, FTP_ASCII); Whole Code: <?php
0
5557
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
13
5779
by: PinkBishop | last post by:
I am using VS 2005 with a formview control trying to insert a record to my access db. The data is submitted to the main table no problem, but I need to carry the catID to the bridge table CatalogImage where imgID also needs to be placed. Below is my code behind to carry the catID using the Select @@Identity and insert imgID to the bridge table. No data is being entered into the bridge table.
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7178
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.