Obtener Datos de Servicio REST con RestSharp

Este fragmento de código nos permite hacer una llamada a un Web Service REST mediante la librería RestSharp. var client = new RestClient("REST_SERVICE_URL"); client.Authenticator = new HttpBasicAuthenticator("USER", "PASSWORD"); var request = new RestRequest(Method.GET); request.RequestFormat = DataFormat.Json; IRestResponse response = client.Execute(request); var content = response.Content;

Forzar el Stop de los Crawls por Power Shell

Este comando detiene todos los Crawls que no estén en estado "Idle": Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object { if ($_.CrawlStatus -ne "Idle"){ $_.StopCrawl() } } Con este comando podemos ver el estado de los Content Source: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | select Name, CrawlStatus

Crear SPSubscription Settings Service Application (5 Pasos)

1. Abrir SharePoint Management Shell. 2. Crear el Pool: $AppPool = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account DOMAINuser 3. Crear la App: $App = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $appPool -Name SettingsServiceApp -DatabaseName SettingsServiceDB 4. Crear el Proxy: $proxy = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $App 5. Iniciar la instancia: Get-SPServiceInstance | where{$_.TypeName -eq "Microsoft SharePoint Foundation Subscription Settings Service"} | Start-SPServiceInstance

Workflows en SharePoint 2013

1. Instalar y configurar Workflow Manager: http://ranaictiu-technicalblog.blogspot.com.es/2013/02/sharepoint-2013-workflow-manager.html 2. Crear App Management Service Application + Proxy: http://www.c-sharpcorner.com/UploadFile/anavijai/error-app-management-shared-service-proxy-is-not-installed/ 3. Crear State Service Application + Proxy: http://www.codeproject.com/Articles/710271/State-Service-configuration-in-SharePoint-for

Borrar DLL de la GAC sin GACUTIL

En ocasiones podemos encontrarnos con situaciones en las que no se nos actualizan las DLL de la GAC y no podemos borrarlas. Nuestro primer intento sería utilizar el comando GACUTIL: http://idttechblog.wordpress.com/2014/09/25/borrar-dll-de-la-gac/ El problema es que si estamos en un entorno de producción no deberíamos tener instalado Visual studio (ante todo, buenas prácticas) por lo que no …

Sigue leyendo Borrar DLL de la GAC sin GACUTIL

Activar State Service Application en SharePoint 2013

Es posible que al intentar iniciar un workflow (o también al intentar publicar una página) os aparezca el siguiente error: The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator. Esto es porque falta por activar el servicio State …

Sigue leyendo Activar State Service Application en SharePoint 2013

¿Qué versión de SharePoint tengo instalada?

Para saber qué versión de SharePoint tenemos instalada en nuestro servidor tan solo debemos ir a:   1. Central Administration / Administración Central 2. Upgrade and Migration / Actualización y migración 3. Check product and path installation status / Verificar el estado de la instalación de productos y revisiones.   Aquí veremos al detalle lo …

Sigue leyendo ¿Qué versión de SharePoint tengo instalada?

Add WebService to my project (ASMX + CS) in Visual Studio

I've never found on my Visual Studio an option to directly add a new WebService file so I looked for a solution and I got this one, I hope it'll help you:1. From anywhere in your Solution Explorer (where you want to add the WebService), create a "New Item".2. In the "New Item" Window, select …

Sigue leyendo Add WebService to my project (ASMX + CS) in Visual Studio

Restart Distributed Cache Service

If you have a server dedicated to the Distributed Cache of SharePoint, its memory can increase until 100% because of the DistributedCache process. If you look at the Task Manager you can see if that happens: In order to solve this, you’ve to restart the service through the SharePoint Central Administration following this steps: 1. …

Sigue leyendo Restart Distributed Cache Service