tags:

views:

704

answers:

3

I am trying to convert an ASP.NET website into a web application project. The conversion has gone ok I think apart from previously I had 2 xsd files in the App_Code folder. I believe this folder is not used in web applications projects, so where would I put xsd files now.

A: 

I don't think you have to put them anyplace in particular. For the purposes of organization you could create a data directory. If the project is small enough, I leave it in the root.

wcm
Weird I changed my using statements to include the StudentRegistersTableAdapters part and removed it from the code below and it worked.
PeteT
A: 

When I try the code below with my dataset in the main directory , I get the type or namespace StudentRegistersTableAdapters could not be found.

StudentRegisters.StudentQueriesDataTable studentDataTable = new StudentRegisters.StudentQueriesDataTable();

StudentRegistersTableAdapters.StudentQueriesTableAdapter studentTableAdapter = new StudentRegistersTableAdapters.StudentQueriesTableAdapter();

studentTableAdapter.FillByQCourseID(studentDataTable, year, aos_code, aos_period);

PeteT
A: 

You can place the files wherever you want, but you have to be careful that your namespace references are still correct.

I would look at your Root Namespace declaration in the project properties to ensure that it is set to what you expect it to be. Also, you will want to look at the location of your TableAdapter objects, as that is where the actual error is, not in the declaration of your StudentQueriesDataTable (Referenced by your xsd as the posted question)

Mitchel Sellers