Tuesday, September 24, 2013

Connect to sharepoint webservices

Webservice url :  /en/news/_vti_bin/Lists.asmx Code:
Lists ws = new WS.Lists();
 NetworkCredential credential = new NetworkCredential("username","password","domain.com");
ws.Credentials = credential;

ws.Proxy = System.Net.WebProxy.GetDefaultProxy();

//ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
// myProxy.Credentials = new NetworkCredential("username", "password", "mof.ae");
// ws.Proxy = myProxy;
// XmlNode node = ws.GetView("Pages", "{C3F92D7E-9CD2-41C3-8D1C-EC3874E67E3F}");
 
XmlNode node = ws.GetListItems("{3CB1772E-3A70-419C-XXXX-1DBA9710B8CB}", "{C3F92D7E-XXXX-41C3-XXXX-EC3874E67E3F}",null,null,"5",null,"");

Tuesday, September 17, 2013

Solution Deployment Error SP A feature with ID xx-xxx has already been installed in this farm


Solution Deployment Error Sharepoint
A feature with ID bc0648f7-4a72-4c7e-890e-94311191dd44 has already been installed in this farm.  Use the force attribute to explicitly re-install the feature

Solution:
  1. Go to your Features in your project.
  2. Open the feature.template.xml file
add AlwaysForceInstall="TRUE" to the below tag
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" AlwaysForceInstall="TRUE">