?
Solved

What's XSD for in ASP.NET?

Posted on 2007-12-03
9
Medium Priority
?
4,363 Views
Last Modified: 2012-05-05
I am trying to convert an ASP.1x project to ASP.NET 2 site. I found a few .XSD files and couldn't open them up to view. What are they for? Can I exclude them? They are causing errors at build time. Thanks.
0
Comment
Question by:ksfok
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 600 total points
ID: 20400422
XSD files are used for schema definitions.For example if you are creating or using an XML file in your application then this xsd files will define the structure in which those xmls should be.So for example if you are getting an xml from another client or you are sending xml to another application you need to create the xml as the structure mentioned in the XSD
0
 

Author Comment

by:ksfok
ID: 20400431
Should they be placed in the app_data folder?
0
 

Author Comment

by:ksfok
ID: 20400518
There are tons of errors. Here's a couple at at the top:
Error      3      'Public Sub New()' has multiple definitions with identical signatures.      C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\po\1d5910ef\7537a9bd\Sources_App_Code\cartsr.xsd.72cecc2a.vb      33      16      C:\zDev\PO\
Error      4      'Protected Sub New(info As System.Runtime.Serialization.SerializationInfo, context As System.Runtime.Serialization.StreamingContext)' has multiple definitions with identical signatures.      C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\po\1d5910ef\7537a9bd\Sources_App_Code\cartsr.xsd.72cecc2a.vb      44      19      C:\zDev\PO\
Error      5      'Public ReadOnly Property CartSR() As CartSRDataTable' has multiple definitions with identical signatures.      C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\po\1d5910ef\7537a9bd\Sources_App_Code\cartsr.xsd.72cecc2a.vb      80      30      C:\zDev\PO\


0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 37

Assisted Solution

by:samtran0331
samtran0331 earned 1400 total points
ID: 20402418
In .Net, an *.xsd file also represents a strongly typed dataset and should have an accompanying *.xss file, so if your old app had them, no, don't exclude them(!)
0
 

Author Comment

by:ksfok
ID: 20407616
In the ASP.NET 1.x project those XSD/XSS files were under the same folder with all the other pieces. Now in ASP.NET 2.0 should they be placed in App_Data on their own or in App_Code together with the .VB files that use them?
0
 
LVL 37

Assisted Solution

by:samtran0331
samtran0331 earned 1400 total points
ID: 20410753
It really shouldn't matter.
What I have is a folder named "Datasets" under the App_Code folder; and I keep all the datasets there.
The migration tool for ASP.Net is not that great.
If you have problems, I would try deleting them from the new project and then using "Add existing" to
re-add them to the project.

Also, a really key question is, when you did the migration, did you migrate it to a "Web Site" or a "Web Application"?
0
 

Author Comment

by:ksfok
ID: 20416598
To a Web Site.
0
 
LVL 37

Assisted Solution

by:samtran0331
samtran0331 earned 1400 total points
ID: 20419066
if you're not too far along into the migration (and haven't made too many changes), I would recommend you try migrating the project again using a Web Application Project.
I've done some migrations on large web apps, and the "web site" model...just isn't any good.

http://webproject.scottgu.com/
under both "tutorials" section, there are migration walkthroughs, and you will need to have VS2005 sp1 installed first.
0
 

Author Comment

by:ksfok
ID: 20431632
I finally deployed the site with "Publish Web Site". Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question