Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1049251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:35:10+00:00 2026-05-16T16:35:10+00:00

I am working on ASP.NET application. I try to connect to database in Adaptive

  • 0

I am working on ASP.NET application. I try to connect to database in Adaptive Server Enterprise using Sybase.Data.AseClient dll. Connection string that I am using is ‘Data Source=’host’;Port=’5000′;UID=’user’;PWD=’password’;Database=’database’;’. When Application tries to connect to database exception is thrown. ‘Client can not establish connection’.

I tried connecting to database by trying to create ODBC Data Source. When I try to create DSN using ASE driver. DSN creation also fails.

What should I check ? Do I need to do some settings in database server? I am using all developer editions and my database and application are on the same machine.

I can connect to database Using Sybase Central. I can run queries on same database using Interactive SQL tool.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:35:10+00:00Added an answer on May 16, 2026 at 4:35 pm

    Check if the problem is not with you connection string. I have this in my config

    <add name="Staging" connectionString="Data Source='ash-pc';Port='9100';UID='foo';PWD='bar';Database=db_name" providerName="System.Data.AseClient" />
    

    Verify this with the sybase center browser’s host and port number. Check UID and Password and spelling of your Database name.

    Let me know if it still does not work . Also why dont you try loggin the error . To be it looks like you can see the message but have not seen the complete error. That might be useful
    For example I have named the database in my app.config to FOO. Now this DB does not exist. So the Exception is “Client Cannot establish Connection” but my full error is


    ERROR 2010-08-31 16:07:32,321 500ms SybaseDBHelper ingStoredProcedure – Error Inserting Data into Database Sybase.Data.AseClient.AseException: Attempt to locate entry in sysdatabases for database ‘foo’ by name failed – no entry found under that name. Make sure that name is entered properly.

    at Sybase.Data.AseClient.AseConnectionPool.GetConnection(AseConnection conn)
    at Sybase.Data.AseClient.AseConnectionPoolManager.GetConnection(String connectionString, AseConnection conn)
    at Sybase.Data.AseClient.AseConnection.Open()
    at LiabilitiesMI.Common.Database.SybaseDBHelper.InsertDataUsingStoredProcedure(String storedProcedureName, DatabaseEnum dbName, List`1 parameters) in C:\Documents and Settings\c001334\My Documents\Visual Studio 2008\Projects\text\Test.Common\Database\SybaseDBHelper.cs:line 73

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been building my sample asp.net application using VWD2008 and the development virtual server
I'm working on an ASP.NET application that uses VB. I'm using a SQLReader/SQLCommand/SQLConnection within
I am working on a ASP.net application written in C# with Sql Server 2000
I am working on a web application using C# and ASP.NET. I am binding
I am working on asp.net application and I have generated entity model (edmx) from
I am working on asp.net application and I have an update panel like this:
When working with an ASP.NET application in Visual Studio 2008, my errors window often
When working with an ASP.Net application, when I rebuild the solution, I would like
i'm working on asp.net web application. please guide me for url rewriting in asp.net:
I am working on an asp.net application which errors only during the first time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.