Solved

Invalid connection string in web.config

Posted on 2006-06-26
2
338 Views
Last Modified: 2012-06-27
Why doesn't it like this in my VS 2003 web project web.config:

  <connectionStrings>
    <add name="DashboardConn"
         connectionString="Data Source=BG-22SQL;Initial Catalog=Apex_ReportingServer; integrated security=SSPI;persist security info=False; Trusted_Connection=Yes"
         providerName="System.Data.SqlClient" />
  </connectionStrings>


Unrecognized Configuration Section "ConnectionStrings"

I need my app to imperonate the logged in user...local user

I have also tried it using this syntax: <appSettings><add key..
but it says it's looking at a null user when it tries to use my connecting
0
Comment
Question by:dba123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
ibost earned 500 total points
ID: 16985757
I think the connectionStrings section is only supported in VS2005 asp.net 2.0

You probably need to switch back to something like this:
      <appSettings>
            <add key="Dashboard_DSN" value="packet size=4096;integrated security=SSPI;server=LCNWSQLCLSTVS01\PRODUCTION;database=HospitalDashboard;app=HospitalDashboards" />
      </appSettings>


Also, I suspect the null user part is because you are running your IIS website with anonymous access enabled.  Try disabling anonymous access and only allowing windows integrated security.
0
 
LVL 1

Author Comment

by:dba123
ID: 16986349
you are right, I tried shoving ConnectionStrings into 1.1 just to try getting it to work..no go.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question