Solved

ASPState Database

Posted on 2004-03-30
4
330 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
[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
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

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

631 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