[Mono-bugs] [Bug 637169] New: SqlClient doesn't support Type System Version in connection string

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Sep 4 03:17:54 EDT 2010



           Summary: SqlClient doesn't support Type System Version in
                    connection string
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: abatishchev at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:
Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)

If I have next connection string in my Web.config:

<add name="My" providerName="System.Data.SqlClient" connectionString="Data
Source=server;Initial Catalog=database;User Id=login;Password=password;Type
System Version=SQL Server 2008;" />

then System.Data.SqlClient.SqlConnection.ctor throws next error:

System.ArgumentException: Keyword not supported : 'type system version'.
  at System.Data.SqlClient.SqlConnection.SetProperties (System.String name,
System.String value) [0x00000] in <filename unknown>:0 
  at System.Data.SqlClient.SqlConnection.SetConnectionString (System.String
connectionString) [0x00000] in <filename unknown>:0 
  at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String
value) [0x00000] in <filename unknown>:0 
  at System.Data.SqlClient.SqlConnection..ctor (System.String connectionString)
[0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check)
System.Data.SqlClient.SqlConnection:.ctor (string)

if remove Type System Version - all works fine.

Reproducible: Always

Steps to Reproduce:
1. Add Type System Version to connection string
2. Call SqlConnection constructor
Actual Results:  

Expected Results:  
Determining supported version and current

Mono Runtime Version: 2.8.1 (master/cdf1247 Sat Sep 4 01:22:04 MSD 2010);
ASP.NET Version: 4.0.30319.1

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

More information about the mono-bugs mailing list