473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Membership connection string

Hi,

My web application was poitning to a cal instance of Sql 2005.
Connection string setup in the web.config and is working fine.
I know need it to point to a security Database on a remote Sql Server
2005, so the connection string is updated and using ASP.NET
configuration shows me the new settings (I create some new users here).
The problem is, when I attempt to login, my application keeps using the
local Database and not the remote.
Is the connection string cached somewhere?

Any help is appreciated.

Steven

*** Sent via Developersdex http://www.developersdex.com ***
Aug 16 '06 #1
2 2392
Steven,

When you changed the web.config file, a new instance of your web app
should have been started (assuming that it was already running). The
original instance will still run, until it finishes servicing the current
sessions (I believe it is sessions, not just current requests, I could be
wrong).

The info in web.config is not cached when you change it.

Have you tried restarting the web app?

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Steven Blair" <st**********@btinternet.comwrote in message
news:OD**************@TK2MSFTNGP04.phx.gbl...
Hi,

My web application was poitning to a cal instance of Sql 2005.
Connection string setup in the web.config and is working fine.
I know need it to point to a security Database on a remote Sql Server
2005, so the connection string is updated and using ASP.NET
configuration shows me the new settings (I create some new users here).
The problem is, when I attempt to login, my application keeps using the
local Database and not the remote.
Is the connection string cached somewhere?

Any help is appreciated.

Steven

*** Sent via Developersdex http://www.developersdex.com ***

Aug 16 '06 #2
Tried restarting the app from the IDE several times.
We fixed the problem by restarting the IDE. However, I suspect the
ASP.NET Development server was still running and maybe that was the
thing that should be stopped.

Thanks for the help.

*** Sent via Developersdex http://www.developersdex.com ***
Aug 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
9
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
3
by: Dan Sikorsky | last post by:
Can I use SQLServer 2000 with ASP.NET 2.0 instead of SQLServer 2005, and use the .Net 2.0 Membership functionality? I've setup my Login page, controls, etc., and now it's time to use the Web...
3
by: jan82 | last post by:
Hi all I'm developing a website with Visual web developer in C#. Everything works fine when testing using ctrl+F5. Also, IIS runs ASP.NET pages without any problems. The problem I'm facing...
3
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is...
3
by: jason | last post by:
I've been playing around with new (for 2.0) membershp functionality. I was able to build a simple login form that secures a directory on a project I built locally on my development desktop. ...
4
by: thomas | last post by:
Hello All, How to change the default Membership Provider during the runtime? I know I can reference any provider I want, e.g.: provider = Membership.Providers but the question is how to...
1
by: =?Utf-8?B?Tmljaw==?= | last post by:
Hi all, i am new to membership, what i am trying to do is that. my asp pages data are from server 1, and the membership data are from server 2. so can i write do different connection string in...
1
by: Rusty Hill | last post by:
I am creating a web app to be shared amongst companies. Each user's credentials will be in the common ASP.NET membership database. Each company will have their own data base. I need to be able...
5
by: Mahernoz | last post by:
Hi Everyone! I have a problem here. I have used the latest asp.net membership & profiles functionality in my site. I have 2 roles admin and user. I also have a user named admin. Now, my...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.