Solved

The closed type '' does not have a corresponding '' settable property error

Posted on 2014-02-14
3
764 Views
Last Modified: 2014-02-21
Experts:

I'm trying to deploy a working Visual Studio SharePoint project to a test environment and am receiving the following error when trying to load a page:

The closed type <ListItem> does not have a corresponding <List> settable property.

I've adopted this code so am a little in the dark, but it appears the project is attempting to access a list via Service Reference Web Service.

I've googled the problem and am not sure if any of the response are relevant to my situation as this code works in a production environment. Could it be that there's a difference in the lists in the production and test environments?

Any pointers on what I should be investigating will be much appreciated.

Thanks in advance for any help
0
Comment
Question by:telliot79
3 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39861096
Hi,
just a guess because without the source code its impossible to dig into it:
I think you try to generate a XML string which is passed to the service. This XML is not valid as there is somewhere an unclosed element, missing end tag.
HTH
Rainer
0
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 39863329
In your test environment capture the response using Fiddler and compare it with your production server.
Also check that you use in both machines the same .NET framework. components, OS, IIS configuration (this is very important both web.config and any machine.config must be the same especially foir your web service) and you delete any any temporary files. (especially the asp.net files)
0
 

Author Closing Comment

by:telliot79
ID: 39876723
the problem was the ordering of the columns in the list. I took a copy of the production list and placed it in the test environment and that solved the issue.

thanks for your suggestions, they were very helpful.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

825 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