Last post Jul 08, 2013 02:54 PM by raghu1
Aug 30, 2012 09:27 PM|lesponce|LINK
Following this example:
I can't reference the .xsd file on my class. I'm getting "Error 1 The type or namespace name 'dsCheck' could not be found (are you missing a using directive or an assembly reference?) C:\Users\TEST\documents\visual studio 2010\Projects\DIR\DIR\check.aspx.cs 21 13 projectname"
What am I missing? The .xsd file is in my app_code directory.
rptCheck = new
dsCheck ds =
.xsd file name <-- ERROR
Aug 30, 2012 10:39 PM|subhash.sheladia|LINK
If you working with Web Application project then app_code directory will not work. App_code directory work only website project only.
also verify below points...
right click on .xsd file and check property - Build should content not any other.
right click on aspx page which u use and check property - build should be compile.
Also try to rename app_code folder with some new name.
Aug 30, 2012 10:42 PM|lesponce|LINK
Thank you. Actually, I did move the .sxd file out othe app_data folder and it worked. I meant app_data, not app_code.
Thanks for your response. It's just one of those. :P
Jul 08, 2013 02:54 PM|raghu1|LINK
I am in the same situation. Moved the .xsd outside the App_data. Have the XSD /RPT and relevant ASPX/Cs in the same folder. Sitll get the error:
I tried what is suggested, simply does not work!
Must be something very simple I am missing.