Bug #48081 | Unable to use DataSet with MySQL NET Connector without installation | ||
---|---|---|---|
Submitted: | 15 Oct 2009 12:54 | Modified: | 23 Feb 2010 19:54 |
Reporter: | Tomáš Polák | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 5.2.7 | OS: | Windows (Windows 7 Professional) |
Assigned to: | Reggie Burnett | CPU Architecture: | Any |
Tags: | connector, dataset, factory, install, NET, no, provider |
[15 Oct 2009 12:54]
Tomáš Polák
[15 Oct 2009 13:41]
Tonci Grgin
Hi Tomáš and thanks for your report. I believe we have one exactly the same in bugsdb, let me search.
[19 Oct 2009 9:51]
Tonci Grgin
Tomáš, here's what I did... o Primary box: W2K8SEx64 with c/NET 6.1.2 o Build Web site fetching data from remote MySQL 5.1.31 server on OpenSolarisx64 host - Precompile and publish web site in VS2008Pro: ------ Build started: Project: C:\...\Connector612Test\, Configuration: Debug Any CPU ------ Pre-compiling Web Site Building directory '/Connector612Test/App_Code/'. Building directory '/Connector612Test/'. Pre-compilation Complete ------ Publish started: Project: C:\...\Connector612Test\, Configuration: Debug Any CPU ------ Connecting to site C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Connector612Test\PrecompiledWeb\Connector612Test... o *Copy* by hand all three c/NET libraries to BIN folder o Install and configure IIS on Win7 ultimate VM o Copy pre-compiled site onto Windows 7 VM with absolutely no trace of c/NET o Browse site on Win7 VM Now, this works without any problems (ie. data from MySQL server is displayed correctly). Could you please test c/NET 6.1.2 and see if that solves the problem? Also, notice I did not play with Windows config files, I just copied the site.
[19 Oct 2009 11:23]
Tomáš Polák
Sample website with DataSet and connector dll's in Bin folder throwing described errors
Attachment: ConnectorTestWebSite.zip (application/x-zip-compressed, text), 145.75 KiB.
[19 Oct 2009 11:28]
Tomáš Polák
Hi Tonci thanks for your interest. I have made a sample website, which should display content of ENGINES table in MySQL. I made the corresponding DataSet in dataset designer, copied the dll's and tested with Connector not installed. The errors came up again. Please use VS 2008 and try to edit something in DataSet, it will keeps displaying errors. You are right, the connector works in this mode but not with the damn DataSet.
[19 Oct 2009 11:33]
Tomáš Polák
I am using version 5.2.7 because with 6.x branch I was not able to add INNODB tables connected by foreign keys into DataSet.
[19 Oct 2009 12:35]
Tonci Grgin
Ummm, don't really know what to say... Error is thrown way before c/NET comes in play: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown. Source Error: Line 1: <?xml version="1.0" encoding="utf-8"?> Line 2: <xs:schema id="MainDataSet" targetNamespace="http://tempuri.org/MainDataSet.xsd" xmlns:mstns="http://tempuri.org/MainDataSet.xsd" xmlns="http://tempuri.org/MainDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified"> Line 3: <xs:annotation> Source File: /App_Code/DataLayer/MainDataSet.xsd Line: 1 I also can't build your project on my primary box (after removing c/NET) due to same error: App_Code\DataLayer\MainDataSet.xsd(1): Build (web): Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown. So, I'll leave this as verified and let Reggie decide if this is a bug since it could be that you're just missing some reference.
[27 Jan 2010 13:12]
Tomáš Polák
Any progress guys???
[23 Feb 2010 19:54]
Reggie Burnett
What I think we are seeing here is a slight misunderstanding as to how the bin folder works. The bin folder is where assemblies can be drawn from *at runtime*. If you notice when a website is being developed the bin folder is not there even when the site is built. It is only created when the site is *published*. This gives you an idea that the bin folder is not referenced during design. There are two things to fix this: 1. Install the connector in the GAC on your development box. The assembly in the bin folder will still work once you deploy to your remote host. 2. Add a reference to the assembly in the bin folder. Hope this helps.