views:

57

answers:

1

i try to use subsonic 3.0 but i can not do that. i decided to use subsonic.2.0. So i try to make it i can not :(

my Web Config :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="SubSonicService"
             type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/>
  </configSections>
  <connectionStrings>
    <add name="AdventureWorks"
      connectionString="Data Source=.;Database=eticaret;
                          Integrated Security=true; User ID=sa; Password=123456;"/>
  </connectionStrings>
  <SubSonicService defaultProvider="eticaret">
    <providers>
      <clear/>
      <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic"
        connectionStringName="eticaret"
        generatedNamespace="eticaretDAL"/>
    </providers>
  </SubSonicService>
</configuration>

also look this article: what is error? http://www.codeproject.com/KB/database/SubsonicDAL.aspx

A: 

Change your connectionStringName in "AdventureWorks" in the add element. Like so:

<SubSonicService defaultProvider="eticaret">
<providers>
  <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic"
    connectionStringName="AdventureWorks"