If you get Microsoft.sharepoint.soap exception like below while using Share Point services to get the List
<errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/"> List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user. </errorstring> <errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000006</errorcode>
For this we have to check two things
- First one check host header it should be same as mentioned in central admin, means if central admin maintains host name instead of localhost or alias name then we should use same one or need to configure alternate access mapping in Central Admin –> Application Management to use localhost or alias name.
- Second one, keep in mind before consuming Does the list exist in main site collection or sub site. If the list exist in main site collection or root then you can use http://hostname:port/_vti_bin/Lists.asmx. If its sub site not in root means then you need to call web service url like http://hostname:port/subsite/_vti_bin/Lists.asmx
Please follow and like us: