We configure ibatis in the Application_Start method of the website and
have the configuration files reside in the root of the website.

Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

        Dim applicationBase As String =
System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase

        Dim log4netPath As String = Path.Combine(applicationBase, 
"Web.log4net.config")
        Dim sqlConfigPath As String = Path.Combine(applicationBase,
"Web.SqlMap.config")

        If File.Exists(log4netPath) Then
                'Configure log4net
        Else
                Throw New System.InvalidOperationException("Unable to find 
logging
configuration file at " & log4netPath)
        End If

        If File.Exists(sqlConfigPath) Then
                'Configure ibatis
        Else
                Throw New System.InvalidOperationException("Unable to find sql 
map
configuration file at " & sqlConfigPath)
        End If

        ...

End Sub


On Tue, Nov 17, 2009 at 8:15 AM, Juliana Machado
<juliana.machado...@hotmail.com> wrote:
>
> Michael,
>
> Files: sqlmap.config, Providers.config (xxx.xml, yyy.xml) are all within the
> persistence project, in the root of this project.
>
> and the error that appears is: Unable to load file via resource
> "SqlMap.config" as resource. Cause : Could not find file
> --
> View this message in context: 
> http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26390593.html
> Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org
> For additional commands, e-mail: user-cs-h...@ibatis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-cs-h...@ibatis.apache.org

Reply via email to