Solved

ASE ADO.NET Error: Unable to load DLL (sybdrvado11.dll).

Posted on 2004-09-14
5
2,542 Views
Last Modified: 2007-12-19
Hi,

I get the above error message when running an ASP.NET web application, using Sybases ASE ADO.NET.  The sample that comes with the installer for ASE ADO.NET (called TableViewer), running in Windows forms (not web) runs fine.  But when I use the same connection string in an ASP.NET page, it fails.   I set up Sybase.Data.AseClient in References.  Here is the VB code I'm trying to run:
____________________________________________________________________

Imports Sybase.Data.AseClient

Public Class WebForm1
    Inherits System.Web.UI.Page
    Private _conn As AseConnection

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

connect_to_mars()

End Sub

Private Sub connect_to_mars()
       
 Try
  'connect to the Mars database
   _conn = New AseConnection("Data Source='xxx.xxx.xxx.xxx'; Port='4102';UID='username';PWD='password';Database='mars';")
   _conn.Open()

 Catch ex As AseException
    lbMarsError.Text = (ex.Source + " : " + ex.Message + " (" + ex.ToString() + ")" & " Failed to connect")
       
 End Try
End Sub
______________________________________________________________________________


It throws this error:

Server Error in '/ASPdotNET/pa' Application.
--------------------------------------------------------------------------------

Unable to load DLL (sybdrvado11.dll).

Version Information:
Microsoft .NET Framework Version:1.1.4322.573
ASP.NET Version:1.1.4322.573
Sybase ASE 12.5.2
Sybase.Data.AseClient 1.1.327.0

Big thanks for any help with this.

Mirek
 
0
Comment
Question by:drozdzowski
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 29

Accepted Solution

by:
leonstryker earned 500 total points
ID: 12064916
0
 

Expert Comment

by:racole41
ID: 12654900
I'm having the same issue.  Setting the path does not work.
0
 

Expert Comment

by:huynhpv
ID: 14064907
I'm having the same issue.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read  the original post  on Monitis Blog. Hi.  My name is Erik Dietrich, and this is the first time I’ve posted on the Monitis blog.  By way of introduction, I thought it would make sense to talk about my initial experience with Monitis.   Befo…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question