DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 10 Jul 2007 15:59:39 +0200,    posted on: microsoft.public.dotnet.framework.aspnet.security        back       

Thread Index
  1    Jeppe Jespersen


How do I avoid the App_Data directory?   
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
Date:Tue, 10 Jul 2007 15:59:39 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us