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.De sign.InternalEx ception' 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="ht tp://tempuri.org/DataSet1.xsd"
xmlns="http://tempuri.org/DataSet1.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata"
xmlns:msprop="u rn:schemas-microsoft-com:xml-msprop"
attributeFormDe fault="qualifie d" elementFormDefa ult="qualified" >
Line 3: <xs:annotatio n>
Source File: /test/App_Code/DataSet1.xsd Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.42
=============== =============== =============== =========
Regards,
Filip Norrgård 3 2995
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
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.VisualStu dio.dll to the .Net
assembly. (You can view them at %windir%\assemb ly. The version of the
DLL's are 2.0.0.0 and their public keys are both the same --
1c274e146b3988b 5 .
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= 1c274e146b3988b 5, processorArchit ecture=MSIL
MySql.Data, Version=1.0.7.3 0071, Culture=neutral ,
PublicKeyToken= c5687fc88969c44 d SCHEME: <WINDOWS_INSTAL LER ID: <MSI>
DESCRIPTION : <Windows Installer>
MySql.Data, Version=1.0.7.3 0072, Culture=neutral ,
PublicKeyToken= c5687fc88969c44 d SCHEME: <WINDOWS_INSTAL LER 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
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. :) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MLH |
last post by:
If this is what MySQL is set to...
SELECT DISTINCTROW qryVehiclesNowners5.SerialNum,
qryVehiclesNowners5.VDescr, qryVehiclesNowners5.Owner,
qryVehiclesNowners5.VehicleJobID , tblVehicleJobs.Reclaimed,
tblVehicleJobs.VSaleID, tblVehicleJobs.ENF262Written FROM
qryVehiclesNowners5 INNER JOIN tblVehicleJobs ON
qryVehiclesNowners5.VehicleJobID = tblVehicleJobs.VehicleJobID WHERE
(tblVehicleJobs.Reclaimed=No AND tblVehicleJobs.VSaleID Is Null...
|
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
I received an error message:
"The ConnectionString property has not been initialized.
|
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 tried to remove the code-behind and add the <script language="C#"
runat="server"> but that fails as well.
The code is simply:
|
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
<?php phpinfo(); ?>
command which prints out the current settings of the php install.
I then installed mySQL complete setup (V5) and ran the server instance
|
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 2003 Server.
I have a cached DataSet that I fill using an OracleDataAdapter. Changes
are made to that dataset in memory and as rows are changed, they are
updated back to the database using OracleDataAdapter.Update(DataRow).
Every few minutes, I...
| |
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 OleDbParameterCollection" whenI try to write a new record.
Delete and Modify work fine its just the add record function causes the
error.
|
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#" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
|
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 grinview/formview
etc.):
<DbProviderFactories>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
description=".Net Framework Data Provider for MySQL"
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data,
|
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 server I get the
error.
To troubleshoot the issue I went back to my dev machine and changed all the
connectionstrings from localhost to the remote/production server db and made
sure everything works fine. I then uploaded all the files to the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |