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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:27:03+00:00 2026-06-18T07:27:03+00:00

While deploying an ASP.NET application in IIS 7, im getting error: Server Error in

  • 0

While deploying an ASP.NET application in IIS 7, im getting error:

Server Error in '/' Application

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IndexOutOfRangeException: Cannot find table 0.

 Source Error: 
    Line 46:             dsDesignation= GetChartData("select * from LHSDesignation");
    Line 47: 
    Line 48:             if (dsDesignation != null && dsDesignation.Tables[0].Rows.Count > 0)
    Line 49:             {
    Line 50:                 foreach (DataRow dr in dsDesignation.Tables[0].Rows)


    Source File: D:\Raji\LHS\LHS\Chart.aspx.cs    Line: 48 

Stack Trace: 

[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +95
   LHS.Chart.Page_Load(Object sender, EventArgs e) in D:\Raji\LHS\LHS\Chart.aspx.cs:48
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

And the code for Page load is:

protected void Page_Load(object sender, EventArgs e)
        {
            string tmpDesignation = string.Empty;
            conString =Convert.ToString(ConfigurationManager.AppSettings["conString"]);
            strDesignation = Convert.ToString(ConfigurationManager.AppSettings["Designation"]);
            conection = new SqlConnection(conString);

            if (HttpContext.Current.Session["UserLogin"] != null)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "$.prompt('Please login to Update Score')", true);
            }

            dsDesignation= GetChartData("select * from LHSDesignation");

            if (dsDesignation != null && dsDesignation.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow dr in dsDesignation.Tables[0].Rows)
                {
                    dnDesignatin.Add(Convert.ToString(dr["DesignationName"]), Convert.ToString(dr["TargetScore"]));
                }
            }            

Please help me in resolving this error
What need to be done to run in IIS 7?

  • 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-06-18T07:27:05+00:00Added an answer on June 18, 2026 at 7:27 am

    I am now able run the application successfully. I did the following:

    1. Created new login “IIS APPPOOL\LHS” in SQL SERVER

    2. Created a folder named “TempImageFiles” in C:
      Then this ran successfully

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

Sidebar

Related Questions

While deploying WAR file to websphere application server I am getting following error: 1.
I'm getting this error while deploying a workflow in sharepoint 2010 Error occurred in
I am encountering issues while deploying an ASP web application to HostMySite. The application
While deploying my application, I got the error message: Thread 1:Program received signal: EXC_BAD_ACCESS.
While deploying a dwr web app, i'm continuously getting this error. I dont know
I am getting an error while deploying code for the first time. I used
While deploying a GAE application, I get errors like: Uncaught exception from servlet javax.servlet.UnavailableException:
I received this error while deploying a Visual Studio SQL Server DBProject DBProj.dbschema(0,0): Warning
WHILE DEPLOYING aPP IN VISUAL STUDIO 2012 EXPRESS.I AM GETTING THE FOLLOWING ERROR: Error
I do have certain queries while deploying a .net windows application whether we need

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.