473,657 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clasic ASP Connection String

Hi All,

I have BIG Problem in ASP.

I have a ADO Connection that I Want to Connect to DBASE IV Database Located
in a Local Networked System.

The DBASE Database is located in other system then the IIS System in the
same Network.But Both are in the same Local Network

When I Try the Connection String:
ConStr = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source =
\\raddb\dbase\; Extended Properties = DBASE IV; User ID=Admin;Passwo rd="

I get ERROR "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."

But When I Try the DB in same system that works fine. I am Confused If the
way I used to connecto to Networked SYstem is Correct?

Also the Same Connection String WORKS Fine If I run that from a VB
Application. But NOT from a ASP Application.

Please Help
Prabhat
Jul 22 '05 #1
4 1649
Tried Server.MapPath( )'ing the DB path?

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Prabhat" <no********@hot mail.com> wrote in message news:#W******** ******@TK2MSFTN GP15.phx.gbl...
Hi All,

I have BIG Problem in ASP.

I have a ADO Connection that I Want to Connect to DBASE IV Database Located
in a Local Networked System.

The DBASE Database is located in other system then the IIS System in the
same Network.But Both are in the same Local Network

When I Try the Connection String:
ConStr = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source =
\\raddb\dbase\; Extended Properties = DBASE IV; User ID=Admin;Passwo rd="

I get ERROR "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."

But When I Try the DB in same system that works fine. I am Confused If the
way I used to connecto to Networked SYstem is Correct?

Also the Same Connection String WORKS Fine If I run that from a VB
Application. But NOT from a ASP Application.

Please Help
Prabhat



Jul 22 '05 #2
Hi,

The IIS Server and the Dbase DB are in 2 different Systems in a Same
Network.

Thanks

"Steven Burn" <so*******@in-time.invalid> wrote in message
news:ui******** ******@TK2MSFTN GP15.phx.gbl...
Tried Server.MapPath( )'ing the DB path?

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Prabhat" <no********@hot mail.com> wrote in message
news:#W******** ******@TK2MSFTN GP15.phx.gbl...
Hi All,

I have BIG Problem in ASP.

I have a ADO Connection that I Want to Connect to DBASE IV Database Located in a Local Networked System.

The DBASE Database is located in other system then the IIS System in the
same Network.But Both are in the same Local Network

When I Try the Connection String:
ConStr = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source =
\\raddb\dbase\; Extended Properties = DBASE IV; User ID=Admin;Passwo rd="

I get ERROR "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."

But When I Try the DB in same system that works fine. I am Confused If the
way I used to connecto to Networked SYstem is Correct?

Also the Same Connection String WORKS Fine If I run that from a VB
Application. But NOT from a ASP Application.

Please Help
Prabhat

Jul 22 '05 #3
You can't use \\UNC\ unless WEBSERVER\IUSR_ WEBSERVER has local access rights
on \\UNC\ ...

http://www.aspfaq.com/2168

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Prabhat" <no********@hot mail.com> wrote in message
news:#W******** ******@TK2MSFTN GP15.phx.gbl...
Hi All,

I have BIG Problem in ASP.

I have a ADO Connection that I Want to Connect to DBASE IV Database Located in a Local Networked System.

The DBASE Database is located in other system then the IIS System in the
same Network.But Both are in the same Local Network

When I Try the Connection String:
ConStr = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source =
\\raddb\dbase\; Extended Properties = DBASE IV; User ID=Admin;Passwo rd="

I get ERROR "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."

But When I Try the DB in same system that works fine. I am Confused If the
way I used to connecto to Networked SYstem is Correct?

Also the Same Connection String WORKS Fine If I run that from a VB
Application. But NOT from a ASP Application.

Please Help
Prabhat

Jul 22 '05 #4
Hi Aaron,

Thanks for the Link. That is the Solution I was looking for. Thanks
Prabhat

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:OD******** ******@TK2MSFTN GP14.phx.gbl...
You can't use \\UNC\ unless WEBSERVER\IUSR_ WEBSERVER has local access rights on \\UNC\ ...

http://www.aspfaq.com/2168

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Prabhat" <no********@hot mail.com> wrote in message
news:#W******** ******@TK2MSFTN GP15.phx.gbl...
Hi All,

I have BIG Problem in ASP.

I have a ADO Connection that I Want to Connect to DBASE IV Database

Located
in a Local Networked System.

The DBASE Database is located in other system then the IIS System in the
same Network.But Both are in the same Local Network

When I Try the Connection String:
ConStr = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source =
\\raddb\dbase\; Extended Properties = DBASE IV; User ID=Admin;Passwo rd="

I get ERROR "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."

But When I Try the DB in same system that works fine. I am Confused If the way I used to connecto to Networked SYstem is Correct?

Also the Same Connection String WORKS Fine If I run that from a VB
Application. But NOT from a ASP Application.

Please Help
Prabhat


Jul 22 '05 #5

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

Similar topics

17
3236
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy connection string' . When I write the string to the page using response.write(connectionstring) it shows up fine. Is the something else that I need to do? Thanks
0
2620
by: Jay Douglas | last post by:
Hello, I'm trying to create a Data Links Property window that behaves just like the dialog box in Visual Studio .Net for MS Sql Server connections. I've found a lot of examples that use DataLinks classes from "Microsoft OLE DB Service Component 1.0 Type Library" and the Connection object from ADODB. However, when setting the connection string using these classes the connection string always returns a really basic connection string with...
12
1206
by: Prabhat Nath | last post by:
Hi All, I have BIG Problem in ASP. I have a ADO Connection that I Want to Connect to DBASE IV. The DBASE Database is located in anothe system then the IIS System in the Network. When I Try the Connection String:
5
2124
by: Matt | last post by:
Hello, What is the best way to handle the database connection string for a class library project that will be compiled and used as a .dll? This .dll will be accessed via classic ASP and in the future by ASP.NET pages. I have created a constant that contains the connection string (as shown below).
37
8944
by: sam44 | last post by:
Hi, At startup the user log on and chooses the name of a client from a dropdownlist, which then changes dynamically the connection string (the name of the client indicates which database to use). I then change dynamically the connection string by doing : My.Settings.Item("ConnectionString") = "some connection sring" The problem is that if another user loggs in and chooses another client, then obviously it changes the connection string...
1
6052
by: Sankalp | last post by:
Hi, I am using VB 2005. My application has many data bound controls. The connection is stored in the app.config file. I want the application to start with a default connection string and while during the runtime, the user can click on a button and change the connection string without exiting the application. I would really appreciate any sort of help.
3
4885
by: fniles | last post by:
In the Windows application (using VB.NET 2005) I use connection pooling like the following: In the main form load I open a connection using a connection string that I stored in a global variable g_sConnectionString and leave this connection open and not close it until it exits the application. Then on each thread/each subsequent sub that needs the connection I create a local OleDBConnection variable, open the connection using the exact...
6
8156
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql server mobile ce database. Until recently I was synching everything thru a com port serial cable. The devices would connect to the computer thru activesync and are able to acquire an internet connection. The sync for the program occurs thru a website...
0
1971
by: Robert Avery | last post by:
In VBA/VB6, I had a class (incomplete sample below) that watched and displayed for the user all connection events, so that I could easily see what SQL was taking a long time, and when it freezes, I could see what is the SQL that freezes the program. I wanted to replicate this for VB.NET, but the SqlConnection object does not seem to support nearly as rich a set of events as the ADODB.Connection object. Any ideas where these events went,...
0
8305
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,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8730
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
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...
1
6163
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
5632
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
4151
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...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.