Solved

Invalid connection string in web.config

Posted on 2006-06-26
2
337 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
edit .asp files 5 49
using CK editor in iframes 5 28
asp.net mvc 2 35
Images showing on the internet -- asp.net -- VB.net.  Why some do and some don’t. 3 26
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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