[Mono-bugs] [Bug 549917] New: Build failes with invalid cast to IServiceProvider.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Oct 25 09:02:40 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=549917
Summary: Build failes with invalid cast to IServiceProvider.
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: x86-64
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Mono.Data.Sqlite
AssignedTo: mhabersack at novell.com
ReportedBy: jan at tjoener.be
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3
When compiling Mono.Data.Sqlite from SVN the C# compiler halts with the error
"Cannot convert type 'Mono.Data.Sqlite.SqliteFactory' to
'System.IServiceProvider'".
This is because neither "SqliteFactory" nor "DbProviderFactory" from which it
extends, implements IServiceProvider.
Reproducible: Always
Steps to Reproduce:
1. Checkout the latest mono from SVN, and put all the Mono.Data.Sqlite_2.0
classes in a VC# project.
2. Allow unsafe code in the project. (Or there will be more errors)
3. The build fails.
Actual Results:
The build failed with the following error on line 294 of SQLite3.cs:
Error: "Cannot convert type 'Mono.Data.Sqlite.SqliteFactory' to
'System.IServiceProvider'"
Expected Results:
Assemble
This was done using Visual Studio 2010. But the assemblies referenced were
still 2.0 so that shouldn't be the problem.
--
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