Adding a second ASP.Net application

I want to add a second web application to our server.

The existing one (ISSVIP) is using a sqlmembership provider, i can see it in my Sql Server management studio, the db is called aspnetdb.

I can see inside the db, in the aspnet_Applications table, there is one row as follows:
ApplicationName = /
LoweredApplicationName = /
ApplicationID = some gibberish text, presuming the id of this particular app
Description = ISSVIP

I tried adding another web app (ROVA) to IIS, and the Default page loads fine.

The problem starts when i try to add users to this new application. When i run the ASP.Net configuration tool, it tells me that I already have users and roles defined in the system.  It's taking the list of users and roles from the first app, ISSVIP.

How do i separate these app while still using the same provider? inside the aspnet_Applications table i still see only 1 application.

i tried changing the following, but the first app stopped working when i made these changes..
1) i edited the applicationName property of <membership><profile> to \ISSVIP
2) i edited the value of ApplicationName inside aspnet_Applications to \ISSVIP

any help is appreciated.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GCCTECHIEAuthor Commented:
hi ged325,

thanks, however, i don't want a single sign on. i wanted the aspnetdb to hold logins for different applications.

I tried adding the machinekey as instructed:
<machineKey decryptionKey="AutoGenerate" validation="SHA1" validationKey="AutoGenerate" />

but that didn't make a difference. when i go into the configuration tool for the 2nd app, it's still showing that i already have 25 users (from the first app)
GCCTECHIEAuthor Commented:

after meddling a bit more, i think i finally got it to work.

here are the settings in web.config for each application.

'in ISSVendorPortal's web.config

  <roleManager enabled="true" />
    <add connectionStringName="LocalSqlServer" 
enablePasswordReset="true" requiresQuestionAndAnswer="true" 
requiresUniqueEmail="false" passwordFormat="Hashed" 
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" 
name="AspNetSql2008MembershipProvider" type="System.Web.Security.SqlMembershipProvider,System.Web,Version=, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
<machineKey decryptionKey="AutoGenerate" validation="SHA1" validationKey="AutoGenerate" />
'in ROVA's web.config
 <roleManager enabled="true" >
   <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/ROVA" type="System.Web.Security.SqlRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  <membership defaultProvider="AspNetSql2008MembershipProvider">
   <add connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/ROVA" name="AspNetSql2008MembershipProvider" type="System.Web.Security.SqlMembershipProvider,System.Web,Version=, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"/>
  <machineKey decryptionKey="AutoGenerate" validation="SHA1" validationKey="AutoGenerate"/>

Open in new window

i tried to replicate the same settings in both applications, however it won't work with the first one. so i left the first as it is.

but right now, i could get two different web apps using the same aspnetdb. it lists 2 different applications in aspnet_Applications table, and it has separate RoleIDs, and users are also tied to the respective applications.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Amandeep Singh BhullarCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.