Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Membership Provider deployment/App_Data directory just wont die!!! :-)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeppe Jespersen - 10 Jul 2007 20:18 GMT
I'm deploying a web app that uses the Membership API. Great stuff. Until
deployment :-(

On my development maching, i run everything from a database registered in
the SQL Server Management Studio. That is, my aspnetdb and a "homebrew"
database for other purposes. In my web.config, I have set up a
connectionstring, and have defined a new provider that uses this
connectionstring. Like this:

<connectionStrings>
   <add name="aspnetConnectionString"
connectionString="Server=.;database=aspnetdb;Integrated Security=True;" />
</connectionStrings>

My provider is defined as follows:

<membership defaultProvider="AspNetSqlMembershipProvider" >
  <providers  >
      <clear/>
       <add name="AspNetSqlMembershipProvider"
           connectionStringName="aspnetConnectionstring"
           enablePasswordRetrieval="true"
           enablePasswordReset="true"
           requiresQuestionAndAnswer="true"
           applicationName="/[APPLICATIONNAME-FRA-DIN-VELKOMST-EMAIL]"
           requiresUniqueEmail="false"
           passwordFormat="Clear"
           maxInvalidPasswordAttempts="5"
           minRequiredPasswordLength="6"
           minRequiredNonalphanumericCharacters="0"
           passwordAttemptWindow="10"
           passwordStrengthRegularExpression=""
           type="System.Web.Security.SqlMembershipProvider,System.Web,
Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
   </providers>
</membership>

What I was hoping, was that this configuration would completely bypass the
App_Data folder. On my dev machine, this seems to work, except that it DOES
create the database files in App_Data - but it still uses my "original"
aspnetdb database that is registered on the SQL Server (not Express).

I coult live with that if it only worked on my production server - but it
doesn't.

So.... how do I use ONLY the registered database on my non-express SQL
Server without ASP.Net creating App_Data folders (and contents) when I don't
want or need it?

Jeppe Jespersen
Denmark
sloan - 10 Jul 2007 22:13 GMT
I think what you're looking for is:

<remove name="AspNetSqlRoleProvider" />

See
http://technet2.microsoft.com/Office/en-us/library/23b837d1-15d9-4621-aa0b-9ce3f
1c7153e1033.mspx?mfr=true


or do some googling

> I'm deploying a web app that uses the Membership API. Great stuff. Until
> deployment :-(
[quoted text clipped - 49 lines]
> Jeppe Jespersen
> Denmark
sloan - 10 Jul 2007 22:17 GMT
Maybe that didn't help:

Here is another link:
http://www.devx.com/asp/Article/29256/1954?pf=true

which talks about using Access.

Of course you don't care about Using Access.
You care about "not using the default".

>I think what you're looking for is:
>
[quoted text clipped - 60 lines]
>> Jeppe Jespersen
>> Denmark
Jeppe Jespersen - 10 Jul 2007 22:58 GMT
Sloan,

I'll check those out. Thank you.

Jeppe

> Here is another link:
> http://www.devx.com/asp/Article/29256/1954?pf=true
[quoted text clipped - 3 lines]
> Of course you don't care about Using Access.
> You care about "not using the default".

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.