Solved

ASPState Database

Posted on 2004-03-30
4
290 Views
Last Modified: 2012-06-27
what do I change the sqlconnectionstring to be in web.config to make the user that access the ASPState database to always be machinename/ASPNET.  Right now it is using my domain user, but I don't want to add permissions for every domain user.

<sessionState
    mode="SQLServer"
    stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1; integrated security=true"
    cookieless="false"
    timeout="20"
/>

Thanks
0
Comment
Question by:barnetjeb
4 Comments
 
LVL 35

Accepted Solution

by:
YZlat earned 500 total points
ID: 10715516
add the following coe to your web.config file in between <configuration> tags and right after </system.web> tag:


 </system.web>
<appSettings>
 <add key="connStr" value="Provider=Microsoft.Jet.OLEDB.4.0;Password='';User ID=Admin;Data Source=\\myPath\db1.mdb;" />

</appSettings>

</configuration>

Then from your code you can access your connection string as

ConnStr=ConfigurationSettings.AppSettings("connStr")
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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

19 Experts available now in Live!

Get 1:1 Help Now