Solved

What's XSD for in ASP.NET?

Posted on 2007-12-03
9
4,326 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
  • 5
  • 3
9 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 150 total points
Comment Utility
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
Comment Utility
Should they be placed in the app_data folder?
0
 

Author Comment

by:ksfok
Comment Utility
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
 
LVL 37

Assisted Solution

by:samtran0331
samtran0331 earned 350 total points
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:ksfok
Comment Utility
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 350 total points
Comment Utility
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
Comment Utility
To a Web Site.
0
 
LVL 37

Assisted Solution

by:samtran0331
samtran0331 earned 350 total points
Comment Utility
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
Comment Utility
I finally deployed the site with "Publish Web Site". Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now