473,898 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URGENT: "Parser error" for all XSD datasets (production server only) - using ASP.NET and MySQL

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
connectionstrin gs from localhost to the remote/production server db and made
sure everything works fine. I then uploaded all the files to the production
server and this is the error I get... (It happens with all my XSD
datasets...)

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.De sign.InternalEx ception' was thrown.

Source Error:
Line 1: <?xml version="1.0" encoding="utf-8"?>
Line 2: <xs:schema id="dsCompanyTy pes"
targetNamespace ="http://tempuri.org/dsCompanyTypes. xsd"
xmlns:mstns="ht tp://tempuri.org/dsCompanyTypes. xsd"
xmlns="http://tempuri.org/dsCompanyTypes. 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: /App_Code/DAL/dsCompanyTypes. xsd Line: 1

Version Information: Microsoft .NET Framework Version:2.0.507 27.3053;
ASP.NET Version:2.0.507 27.3053
Oct 20 '08 #1
6 5372
No ideas? This is really holding up my project...

"Bobby Edward" <bo***@nobody.c omwrote in message
news:OF******** ******@TK2MSFTN GP06.phx.gbl...
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 connectionstrin gs from localhost to the remote/production server db
and made sure everything works fine. I then uploaded all the files to the
production server and this is the error I get... (It happens with all my
XSD datasets...)

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.De sign.InternalEx ception' was thrown.

Source Error:
Line 1: <?xml version="1.0" encoding="utf-8"?>
Line 2: <xs:schema id="dsCompanyTy pes"
targetNamespace ="http://tempuri.org/dsCompanyTypes. xsd"
xmlns:mstns="ht tp://tempuri.org/dsCompanyTypes. xsd"
xmlns="http://tempuri.org/dsCompanyTypes. 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: /App_Code/DAL/dsCompanyTypes. xsd Line: 1

Version Information: Microsoft .NET Framework Version:2.0.507 27.3053;
ASP.NET Version:2.0.507 27.3053


Oct 21 '08 #2
"Bobby Edward" <bo***@nobody.c omwrote in message
news:#M******** ******@TK2MSFTN GP05.phx.gbl...
No ideas? This is really holding up my project...
I have no clue. I don't use Web Sites.

All I have to offer is some diagnostic advice you've probably already taken.
This seems to take place when the DataSet is being "parsed". Exactly when
does it happen? When you view any page? A particular page? Does it only
happen when you access the database?

If it happens without you accessing the database, then I recommend that you
try to create a minimal web site that reproduces the problem. This site, for
instance, would not have any reference to MySQL if that was not necessary to
reproduce the problem.

Such a site will be easy to zip up, either to post here, or on
http://connect.microsoft.com/visualstudio/, or to send to Microsoft Product
Support.
--
John Saunders | MVP - Connected System Developer

Oct 21 '08 #3
Thanks. It happens for any ASPX page, even non data pages.

I created a minimal website (one XSD dataset, one BLL class, one aspx page)
and it still happens. :(

I just can't afford MS product support. They are too expensive. Any
further suggestions would be appreciated... There are LOTS of really smart
people in this newsgroup....

"John Saunders" <no@dont.do.tha t.comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
"Bobby Edward" <bo***@nobody.c omwrote in message
news:#M******** ******@TK2MSFTN GP05.phx.gbl...
>No ideas? This is really holding up my project...

I have no clue. I don't use Web Sites.

All I have to offer is some diagnostic advice you've probably already
taken. This seems to take place when the DataSet is being "parsed".
Exactly when does it happen? When you view any page? A particular page?
Does it only happen when you access the database?

If it happens without you accessing the database, then I recommend that
you try to create a minimal web site that reproduces the problem. This
site, for instance, would not have any reference to MySQL if that was not
necessary to reproduce the problem.

Such a site will be easy to zip up, either to post here, or on
http://connect.microsoft.com/visualstudio/, or to send to Microsoft
Product Support.
--
John Saunders | MVP - Connected System Developer

Oct 21 '08 #4
"Bobby Edward" <bo***@nobody.c omwrote in message
news:Oh******** ******@TK2MSFTN GP03.phx.gbl...
Thanks. It happens for any ASPX page, even non data pages.

I created a minimal website (one XSD dataset, one BLL class, one aspx
page) and it still happens. :(

I just can't afford MS product support. They are too expensive. Any
further suggestions would be appreciated... There are LOTS of really
smart people in this newsgroup....
That may be true, but _this_ smart person never uses a Web Site "project",
so would never have experienced this. (I'll leave to the readers the
question of whether the fact that I don't use Web Site "projects" might not
be one of the things that qualifies me as "smart").

How about one XSD, one page, and no BLL?

How about a very simple XSD: one table, with one column?

If that still shows the problem, then it's a bug, and not something that PSS
could help you with anyway. In that case, report the bug at
http://connect.microsoft.com/visualstudio/. That's free, and connects
directly with the product group.

P.S. One option would be to use a Web Application Project instead of a Web
Site "project".
--
John Saunders | MVP - Connected System Developer

Oct 21 '08 #5
"John Saunders" <no@dont.do.tha t.comwrote in message
news:e$******** ******@TK2MSFTN GP04.phx.gbl...
That may be true, but _this_ smart person never uses a Web Site "project",
so would never have experienced this. (I'll leave to the readers the
question of whether the fact that I don't use Web Site "projects" might
not be one of the things that qualifies me as "smart").
No, you definitely are smart! LOL
>
How about one XSD, one page, and no BLL?
Tried that with the same results.
>
How about a very simple XSD: one table, with one column?
Good idea. I did this but it resulted in the same thing.
If that still shows the problem, then it's a bug, and not something that
PSS could help you with anyway. In that case, report the bug at
http://connect.microsoft.com/visualstudio/. That's free, and connects
directly with the product group.
If this is the case, and I call Microsoft, do you know if they will charge
me for support?

I am using VS2008 SP1 with MySQL 5. I'm actually using DevArt's
MyDirect.NET to access the database (http://www.devart.com/mysqlnet/). Do
you think it could be a bug with their product?
P.S. One option would be to use a Web Application Project instead of a Web
Site "project".
Interesting. I never considered that they were different.

Thanks so much for your help. Any further suggestions are very much
welcomed! Take care....
Oct 21 '08 #6
FIX:

Register the data provider in the web.config file. Add this section to it:


<configuratio n>

....

<appSettings/>

<system.data>
<DbProviderFact ories>
<add name="MyDirect .NET" invariant="Core Lab.MySql" description="Co reLab
MyDirect .NET"
type="CoreLab.M ySql.MySqlDirec tFactory, CoreLab.MySql" />
</DbProviderFacto ries>
</system.data>

....

</configuration>


Oct 21 '08 #7

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

Similar topics

1
22772
by: Krusty276 | last post by:
I'm getting this error using sql plus Input is too long (> 2499 characters) - line ignored This is my command line on linux: /home/oracle/product/8.1.6/bin/sqlplus -s loader/loader@ecrmdb @/mp3/generated/listpullmon/sql/5485_de.sql And I set line size in the file: set pagesize 0
1
7482
by: Kevin | last post by:
Help, I am running a pass through query to oracle from SQL server 2000 as follows; select * from openquery(nbsp, 'select * from FND_FLEX_VALUES') I have run this query through both DTS and the query analyzer and get the foloowing error;
9
1966
by: Wally | last post by:
I am trying to display images from an Access 2000 database and I get an error "Invalid Parameter Used" when I execute the code line "picBLOB.Image = Image.FromStream(stmBLOBData)" in my Visual Basic .Net application. I have researched MSDN for help and found the example article 321900 (see below) and set up a test and everything works fine when I use SQL Server 2000 but when I modify the code and use data from Access 2000 using an...
3
6025
by: christianprogrammermilwaukee | last post by:
BASIC Settings PLEASE !! This New Company I'm with Sets their Default WebSite to a local Directory on "D" Yea I've been down the whole route reinstalling XP Pro,,, IIS 5.1 The .NET framework everything. Now I'm just frustrated... What the Heck !! Theres a web project (C# ASP.net) in the solution containing many many some odd 19 or so projects. MSVSS is additionally in the picture to make things a little more complex. (I.E. the non web...
0
2471
by: | last post by:
Hello NG! I try to call a WebService from a mobile device. The WebService should return a DataSet, so the call looks like mDataSet = mWebSrv.GetDataSet(<Params>) but instead of returning a DataSet, that call throws an error: InvalidOperationException
8
2124
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden message, some entry in registry where a log is created (or that enables a log, trace, dump or whatever)... I'm a little bit frustated with this error :-( Tks, Ravi.
1
2009
by: Tom | last post by:
After completing my app, I moved it to the production server. It ran ok for two days on the production server. Then, I made a change to the login process, which forced a dynamic compile(I do not pre-compile). At first, I would get the error only on the page I changed but within a couple hours, now I get the error on any page. IIS lockup is not installed.
0
3593
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.
23
5154
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the solution, and was greeted with the following error: ======================================================================== It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error...
0
1002
by: kbelizabethtan | last post by:
i m using vb.net and mysql to create my project. when i save my data it apear the message that is Error = Only byte array and strings can be serialize by MySqlBinary how do i solve this problem.... help pls very URGENT!!! thanks
0
9993
marktang
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...
0
11256
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10857
jinu1996
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...
1
10946
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,...
0
10481
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 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...
0
7187
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5877
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...
1
4705
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3303
bsmnconsultancy
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...

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.