Posts

Showing posts with the label Sharepoint 2013

Deployment of Provider-Hosted App Package on Azure

Image
Provider-Hosted App on Azure  Step 1: In windows, search for Developer Command Prompt of VS2012 . Right click the icon and click on Run as administrator . Here use the msbuild command with the below parameters and values, which will build the solution and create a package. msbuild ".sln file path" /p:DeployOnBuild=true /p:DeployTarget=Package /p:Configuration=Release /p:PublishProfile=" FTP.pubxml file path"   /p:Password="usrPWD value” /p:AllowUntrustedCertificate=true /p:VisualStudioVersion=12.0 o    msbuild : path to .sln file of your solution o    DeployOnBuild : true o    DeployTarget : Package o    Configuration : Release o    PublishProfile : path to .pubxml file of FTP settings in ‘Profiles/PublishProfiles’ folder of AppWeb path in solution o    Password : value of userPWD from .publishSettings file that you have downloaded from azure web app ...

SharePoint Content Search

Content searching in documents write this code snippet in ASP.NET WCF service. public MethodResponse<ClientResult<ResultTableCollection>> SearchDocuments( string text, string token) { MethodResponse<ClientResult<ResultTableCollection>> response = new MethodResponse<ClientResult<ResultTableCollection>>(); UserCredential userCredential = new UserCredential(); try { userCredential = VerifyToken(token); if (userCredential != null ) { _ctx = GetClientContext(userCredential); if (_ctx != null ) { KeywordQuery keywordQuery = new KeywordQuery(_ctx); keywordQuery.QueryText = Convert.ToString(text); SearchExecutor searchExecutor = new SearchExecutor(_ctx); ClientR...