CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Dynamic Connection Question

Print topic Send  topic

Author Message
navcan

Posts: 61
Posted: 06/16/2006, 6:39 AM

Hello all,

Using ASP 3.0, CCS 3.0.4.6, SQL 2000 and IIS 6.0

For database Server Connection settings, I am trying to use the Connection String pointing to a UDL file like this:

File Name=" & Server.MapPath(".") & "\DataConn.udl

I get the following error message

Unable to establish connection to database.
Error information:
Microsoft VBScript runtime error (0x1B0)
File name or class name not found during Automation operation

However when I use the complete path of UDL file like below it works:

File Name=C:\inetpub\wwwroot\guestbookapp\DataConn.udl

Any suggestion, idea to use "Server.MapPath" method instead of using the physical path to the UDL file???

Thank you for your valuable info.
View profile  Send private message
navcan

Posts: 61
Posted: 06/18/2006, 6:58 PM

Hello folks,

Any suggestions to use Server.MapPath instead of physical path please...
View profile  Send private message
Edd


Posts: 547
Posted: 06/18/2006, 7:38 PM

Try

File Name=" & Server.MapPath("/") & "guestbookapp\DataConn.udl

where Server.MapPath("/") is your root directory.

Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
navcan

Posts: 61
Posted: 06/19/2006, 12:52 PM

Hey Edd,

It worked using the following:

File Name=" & Server.MapPath("/guestbookapp") & "\DataConn.udl

Fantastic! Appreciate your solution. Thanks Edd.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.