Solved

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

Posted on 2014-02-14
3
738 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
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…

744 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

18 Experts available now in Live!

Get 1:1 Help Now