| Bug #48081 | Unable to use DataSet with MySQL NET Connector without installation | ||
|---|---|---|---|
| Submitted: | 15 Oct 14:54 | Modified: | 19 Oct 14:35 |
| Reporter: | Tomáš Polák | ||
| Status: | Verified | ||
| Category: | Connector/Net | Severity: | S2 (Serious) |
| Version: | 5.2.7 | OS: | Microsoft Windows (Windows 7 Professional) |
| Assigned to: | Reggie Burnett | Target Version: | |
| Tags: | connector, provider, NET, factory, no, install, dataset | ||
| Triage: | D3 (Medium) | ||
[15 Oct 14:54]
Tomáš Polák
[15 Oct 15: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 11: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 13: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 13: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 13: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 14: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.
