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
Solved

Invalid connection string in web.config

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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