0
Line 10: 
Line 11:      <asp:SqlDataSource ID="ac210db6" runat="server" 
Line 12:      ConnectionString="<%$ ConnectionStrings:ac210db6ConnectionString %>" 
Line 13:      SelectCommand="SELECT [cid] FROM [customers]"></asp:SqlDataSource><br />

The connection name ac210db6ConnectionString was not found in the applications configuration or the connection string is empty. Description: An unhandled exception occurred during the execution of the current web request.

Exception Details:

System.InvalidOperationException: The connection name 'ac210db6ConnectionString' was not found in the applications configuration or the connection string is empty.

Any ideas?

1
  • 4
    Check your web.config for the connection string name? Commented Mar 19, 2010 at 18:13

1 Answer 1

1

You should have something like this in your web.config file.

<connectionStrings>
  <add name="ac210db6ConnectionString" connectionString="server={YOUR-SERVER-NAME-OR-IP};database={DATABASE-NAME};Integrated Security=True;"/>
</connectionStrings>

Go here for a full reference on your connection string.

http://connectionstrings.com/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.