We help IT Professionals succeed at work.

SharePoint List Definition is not being Recognized

danielolorenz
on
Medium Priority
459 Views
Last Modified: 2012-05-11
My SharePoint list definition is not being recognized when I use SPQuery.

Code:
SPList list = webSite.Lists["ListDefinition1"];
                SPQuery query = new SPQuery();

My list definition is on my published SharePoint site.  Why is my list definition not recognized?

Thanks,

Dan
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Synced database fields
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.