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 523863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:30:23+00:00 2026-05-13T08:30:23+00:00

I am getting the below exception when I run my ASP.NET/C#/SQL project on an

  • 0

I am getting the below exception when I run my ASP.NET/C#/SQL project on an XP box:

System.Web.HttpException was unhandled by user code
Message="A field or property with the name 'DisplaySchemaTables()' was not found on the selected data source."
Source="System.Web" ...

Can u advise me on what the problem might be? Here is the code causing this. The exception happens on the DataBind():

protected void Load_GridData()
{
    GridView1.DataSource = ADONET_methods.DisplaySchemaTables();
    GridView1.DataBind();
}

ADONET_methods.cs file:

public static SqlDataReader DisplaySchemaTables()
{
    SqlDataReader dr = null;
    SqlCommand cmd = null;
    SqlConnection conn2 = null;
    string SchemaName = "Person";
    string connString = "Data Source=.;AttachDbFilename=\"C:\\Program Files\\Microsoft...;Catalog=AdventureWorks;Integrated Security=true;Connect Timeout=30;User Instance=False";
    string errorMsg;
    try
    {
        conn2 = new SqlConnection(connString);
        cmd = conn2.CreateCommand();
        cmd.CommandText = "dbo.getTableNames";
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Connection = conn2;
        cmd.Parameters.Add(new SqlParameter("@SchemaName", SchemaName));
        conn2.Open();
        dr = cmd.ExecuteReader();
    }
    catch (Exception ex)
    {
        errorMsg = ex.Message;
    }
    return dr;
}
  • 1 1 Answer
  • 0 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-13T08:30:23+00:00Added an answer on May 13, 2026 at 8:30 am

    Sounds like you have something being databound in the GridView labeled “DisplaySchemaTables()”. Something like <%# Eval(“DisplaySchemaTables()”) %> possibly?

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

Sidebar

Related Questions

I am getting below error for my spring based dynamic web project.I am new
I'm getting the exception listed below when looking at the MainPage.xaml of a newly
I am getting the below error 12-30 05:40:40.484: ERROR/AndroidRuntime(413): Uncaught handler: thread Thread-10 exiting
I wanted to print 100 as output in the below program. I am getting
I have the below code working fine up to 150 consecutive threads. Anything over
When i reset apache and load my website i get the first error below.
Could anybody tell me why I'm getting this error, and how to fix the
I'm getting an issue while using EF4, when I'm trying to verify if object
I created an array sorter to sort arrays like in Win Explorer in a
I have a simple console application that is designed to read a custom Configuration

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.