[Mono-bugs] [Bug 522540] New: Web app root operator (~) doesn't work in web.config

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 16 00:33:15 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=522540


           Summary: Web app root operator (~) doesn't work in web.config
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: rtfm13 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


Using "~" in the web.config file for a connectionString doesn't work with
either xsp2 or mod_mono using SqliteMembershipProvider and "Forms"
authentication.

<?xml version="1.0"?>
<!--
Web.config file for mycode.

The settings that can be used in this file are documented at 
http://www.mono-project.com/Config_system.web and 
http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
-->
<configuration>
  <connectionStrings>
    <add name="MySqlConnection"
connectionString="URI=file:~/App_Data/aspnetdb.sqlite"/>
  </connectionStrings>
  <system.web>
    <compilation defaultLanguage="VB" debug="true">
      <assemblies>
      </assemblies>
    </compilation>
    <customErrors mode="RemoteOnly">
    </customErrors>
    <authentication mode="Forms" >
      <forms loginUrl="Default.aspx"
        name=".ASPXFORMSAUTH" />
    </authentication>
    <authorization>
      <allow users="*" />
    </authorization>
    <membership defaultProvider="SqliteProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear />
        <add 
          name="SqliteProvider" 
          type="System.Web.Security.SqliteMembershipProvider" 
          connectionStringName="MySqlConnection"
          enablePasswordRetrieval="false"
          enablePasswordReset="true"
          requiresQuestionAndAnswer="true"
          requiresUniqueEmail="true"
          passwordFormat="Hashed" />
      </providers>
    </membership>
    <httpHandlers>
    </httpHandlers>
    <trace enabled="false" localOnly="true" pageOutput="false"
requestLimit="10" traceMode="SortByTime" />
    <sessionState mode="InProc" cookieless="false" timeout="20" />
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    <pages>
    </pages>
  </system.web>
</configuration>

Actual Results:

Server Error in '/' Application
Operation aborted due to an exception (see Trace for details).

Description: HTTP 500. Error processing request.

Stack Trace:

System.Configuration.Provider.ProviderException: Operation aborted due to an
exception (see Trace for details).
  at System.Web.Security.SqliteMembershipProvider.ValidateUser (System.String
username, System.String password) [0x00000] 
  at System.Web.UI.WebControls.Login.AuthenticateUser () [0x00000] 
  at System.Web.UI.WebControls.Login.OnBubbleEvent (System.Object source,
System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.RaiseBubbleEvent (System.Object source,
System.EventArgs args) [0x00000] 
  at System.Web.UI.WebControls.Button.OnCommand
(System.Web.UI.WebControls.CommandEventArgs e) [0x00000] 
  at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String
eventArgument) [0x00000] 
  at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
(System.String eventArgument) [0x00000] 
  at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler
sourceControl, System.String eventArgument) [0x00000] 
  at System.Web.UI.Page.RaisePostBackEvents () [0x00000] 
  at System.Web.UI.Page.ProcessRaiseEvents () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000] 

Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433

Expected Results:

Hello user. Welcome to the secret pages.

How often does this happen? 

Every time I don't hardcode "file:/var/www/App_Data/aspnetdb.sqlite".

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list