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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:33:10+00:00 2026-06-04T08:33:10+00:00

When installing a .net application on terminal server, this exception is thrown when starting

  • 0

When installing a .net application on terminal server, this exception is thrown when starting the app :

System.Configuration.ConfigurationErrorsExceptionMessage = Index 1 is out of range.FullText=
 System.Configuration.ConfigurationErrorsException: Index 1 is out of range.
   at System.Configuration.ConfigurationElementCollection.BaseGet(Int32 index)
   at System.Configuration.ConnectionStringSettingsCollection.get_Item(Int32 index)

The connection string, which is in AppName.exe.config, can not be found. However, the config file is placed at the correct location, next to the .exe file, and the connection string is present in the .config file.
This error only happens on terminal server, on XP, Vista, win7 everything runs fine …

Appname.exe.config :

<?xml version="1.0"?>
<configuration>
    <configSections>
        ...
    </configSections>
    <connectionStrings>
        <add name="..."
            connectionString="..." />
        <add name="..."
            connectionString="..." />
    </connectionStrings>
...

What’s going on ??

  • 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-04T08:33:12+00:00Added an answer on June 4, 2026 at 8:33 am

    As you probably also found out, the error you get is related to the application not being able to read/write from your xml file.

    http://msdn.microsoft.com/en-us/library/system.configuration.configurationerrorsexception(v=vs.80).aspx

    I faced a similar issue when running an application in a citrix client and on a terminal server, the app itself ran fine from a client OS and a VHD.

    As for troubleshooting this, I would suggest the following..

    • Right click your executable and if you have the option, run it as administrator. If that works then you are certain that you are lacking the correct rights on the location where it is stored with your standard user profile. (even if you have admin rights on your TS, this might still give a difference.)
    • Another option you could test, if it isn’t already there, store the application in a location where you have the most access. This will most likely be your userprofile and see if it runs from there.
    • As a third and final option, if possible, have someone with elevated rights on your TS try and run the app.

    All of the above steps are related to rights as this was the issue with my app. But ofcourse that is just one way to start troubleshooting it.. hope this helps.

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

Sidebar

Related Questions

After installing .NET 4.0, I am now getting an exception on this statement: if
What are the basic system requirement for installing asp.net mvc 2 application. Edited:- If
I'm installing an ASP.NET application (which works ok in local server) in a shared
We have created a beautifully designed .NET WPF desktop application. We are installing the
I want to make an installing application using vb.net(not asp.net) where i can login
I'm currently stuck with an Installshield project for installing our ASP.Net Application and need
i downloaded mysql-installer-5.5.17.0 for installing MySQL in my system,but when i run this i
I am installing a .NET (C#) application that is 100% managed code. The installer
How can I deploy .NET v4.0 application to some target servers where installing .NET
Is there any way that without installing SQL Server on a machine, a .NET

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.