Solved

Invalid connection string in web.config

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Binding a check box in an Asp.net DataGrid 4 40
CheckboxList Object reference not set to an instance of an object. 16 33
ASP.NET reading ATOM 2 52
ASP.NET 5 Templates 2 66
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now