473,395 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Dataset using MySql renders "Parser Error"

Hi All!

I've been developing an ASP.Net 2.0 web application using the Visual
Studio 2005 tools. Currently datagrids on a page are filled with data
from a dataset (a .xsd file in the "project") that, in turn, gets the
data from MySql server.

Locally testing it on my PC (Windows XP SP2, FYI) it works and no
errors appear. However, when I upload it to the webserver (Windows 2003
Web Edit. Server) I get the a parser error on the dataset file. The
server reports parser error on the first line of the dataset file which
reads: <?xml version="1.0" encoding="utf-8"?>

Now, I've installed and repaired the MySql .NET Connector (latest
version downloaded, just to be on the safe side) and tested that my
connection strings are working. The tests indicated that all seems
right and working to me. The MySql server on the W2003 server is filled
with exactly the same data as I have on the local PC.

Can anyone give tips or pointers to what I should do to get the dataset
working on the W2003 server? I don't think this is MySql specific, but
you can try to prove me wrong. :-D

Here is the full error message from the error page:
================================================== ====

Server Error in '/test' 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="DataSet1"
targetNamespace="http://tempuri.org/DataSet1.xsd"
xmlns:mstns="http://tempuri.org/DataSet1.xsd"
xmlns="http://tempuri.org/DataSet1.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: /test/App_Code/DataSet1.xsd Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

================================================== ====
Regards,

Filip Norrgård

Aug 18 '06 #1
3 2972
An update to the problem:

I set the local computer to connect to the server's MySQL database and
the site is working when I am running it locally. I uploaded the whole
website (including the new connection strings and updated datasets) to
the server, but it _still_ doesn't work. I get the exact same parser
error when I try to use the site on the web server.

Is this a problem with the MySql .Net connector installation on the
server, or something more sneaky going on? :-?
Is there any better way of diagnosing the problem? (The parser error
message doesn't help me much...)
Cheers,

Filip Norrgård

Aug 21 '06 #2
Hi again,

After spending too much time looking for the fault, I believe to have
found a possible cause of the problem.

It seems that something (possibly MySql's .Net Connector installer)
installs MySql.Data.dll and MySql.VisualStudio.dll to the .Net
assembly. (You can view them at %windir%\assembly. The version of the
DLL's are 2.0.0.0 and their public keys are both the same --
1c274e146b3988b5 .

Now for the strange part: I can't find the assemblies themselves! I've
searched through the whole hard drive for the file, but none can be
found. The Mysql.Data.dll that resides in the .Net 2.0 folder of the
Mysql .Net Connector directory, is only version 1.0.7.30072 and a whole
other public key.

Futhermore, when running the command "gacutil -lr MySql.Data" in the
Visual Studio command prompt I get the following listing:

MySql.Data, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=1c274e146b3988b5, processorArchitecture=MSIL

MySql.Data, Version=1.0.7.30071, Culture=neutral,
PublicKeyToken=c5687fc88969c44d SCHEME: <WINDOWS_INSTALLER ID: <MSI>
DESCRIPTION : <Windows Installer>

MySql.Data, Version=1.0.7.30072, Culture=neutral,
PublicKeyToken=c5687fc88969c44d SCHEME: <WINDOWS_INSTALLER ID: <MSI>
DESCRIPTION : <Windows Installer>
Notice that the 2.0 version of the MySql.Data assembly has apparently
not been installed by the MySql .Net Connector installer?

The question remains, where did the surprising assembly MySql.Data 2.0
come from, if not the installer? The 2.0 version has not been installed
on the server (by the MySql installer) and hence I believe it is the
reason for why I get the parser error in the first place.

Any tips are warmly welcome! :-)

Regards,

Filip Norrgård

Aug 21 '06 #3

Ah-ha! Found the source of the mystery MySql.Data 2.0 assembly:
http://www.skakkinostri.it/mysql/

Somehow, I had managed to forget that I had installed it earlier this
year (must have been during those days when the temperature rose close
to 30 degrees Celsius here) and it remained working too nicely for me
to remember ever installing it. *oops*

Anyways, case closed. :)

Aug 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: MLH | last post by:
If this is what MySQL is set to... SELECT DISTINCTROW qryVehiclesNowners5.SerialNum, qryVehiclesNowners5.VDescr, qryVehiclesNowners5.Owner, qryVehiclesNowners5.VehicleJobID ,...
6
by: Tony | last post by:
Dear All, When I run an example program on the http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/data/datagrid1.src&file=VB\datagrid1.aspx&font=3 ...
3
by: ADavidson | last post by:
I'm getting a {"Parser Error: The Runat attribute must have the value Server." } error when I try to get the Server.GetlastError() in the Global.asax codebehind. Why am I getting this? I...
1
by: marknewbery | last post by:
Hi, I have been trying to get a php, mySQL install to work and talk together on Windows XP SP2 with IIS. So far I installed and received a responce from php(V5 - manual install) though the ...
0
by: dalaeth | last post by:
I have searched Google high and low and haven't found anything that works. Here's my problem, hopefully someone will be able to help! I'm using 1.1 Framework, and ODP.NET 9.5.0.7 on a Windows...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
0
by: Harshpandya | last post by:
Hi I am using MYSQL and ASP.Net. to build the Data Reader Page. when i define my connection Key - it gives me this error.Keyword not supported: 'dsn'. MY PAGE Data Reader <%@ Page Language="C#"...
1
by: Carmine [www.thetotalsite.it] | last post by:
Hi, I am using ASP.Net 2.0 with the MySQL Connector .Net 5.1.2.2. I added these lines to the web.config to make the connector.net able to handle the SqlConnection object (and so to bind it to a...
6
by: Bobby Edward | last post by:
Using ASP.NET 3.5 and MySQL (thru DevArt MyDirect.NET)... On the production server I get a "Parser Error" for every XSD dataset. It works perfect on my dev machine. But, on the production...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.