jump to navigation

System.UnauthorizedAccessException Anonymous JSOM October 12, 2016

Posted by juanpablo1manrique in SharePoint2013.
Tags:
add a comment

Para solucionar esto

1.Paso

Central Administration ->
Application Management ->
Manage web applications ->
Select : Authentication Providers ->
Default ->

Uncheck Require Use Remote Interfaces permission:

2.Paso

$web = Get-SPWebApplication -Identity http://myserver:myport
$web.ClientCallableSettings.AnonymousRestrictedTypes.Remove([Microsoft.SharePoint.SPList],”GetItems”)
$web.Update()

Purge WSS_Logging July 11, 2016

Posted by juanpablo1manrique in Best Practices, SharePoint2013, SQL SERVER, SQL SERVER 2008.
Tags: ,
add a comment

Hola,

Liberar espacio de WSS_Logging
Set-SPUsageDefinition -Identity “Analytics Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “App Statistics.” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Bandwidth Monitoring” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Content Export Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Content Import Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Feature Use” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “File IO” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Page Requests” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “REST and Client API Action Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “REST and Client API Request Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Sandbox Request Resource Measures” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Sandbox Requests” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “SQL Exceptions Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “SQL IO Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “SQL Latency Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “SQL IO Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Task Use” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Tenant Logging” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Timer Jobs” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “User Profile ActiveDirectory Import Usage” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Definition of usage fields for Education telemetry” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Definition of usage fields for microblog telemetry” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Definition of usage fields for service calls” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Definition of usage fields for SPDistributedCache calls” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “Definition of usage fields for workflow telemetry” -DaysRetained 1 -Enable
Set-SPUsageDefinition -Identity “User Profile to SharePoint Synchronization Usage” -DaysRetained 1 -Enable
Como lo supe

Get-SPUsageDefinition | select Name

 

AND
Sharepoint Central Administration -> Monitoring -> Configure Usage and health data collection-> Log Collection Schedule.

Execute 2 timer jobs “Run Now”

  • Microsoft SharePoint Foundation Usage Data Import
  • Microsoft SharePoint Foundation Usage Data Processing

Saludos

Real Root URL March 3, 2016

Posted by juanpablo1manrique in SharePoint2013.
Tags:
add a comment

Hola,

Algo muy util … para cuando se trabaja con SharePoint, y sitecollections

string rootURL = SPContext.Current.Site.RootWeb.Url;
Regex regexObj = new Regex(@”^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)”);
var match = regexObj.Match(rootURL);
rootURL = match.Value;

Saludos

Hemos tenido un pequeño problema para obtener su licencia. Si vuelve al Almacén de SharePoint e intenta adquirir esta aplicación de nuevo, no se le volverá a cobrar. July 7, 2015

Posted by juanpablo1manrique in SharePoint2013.
Tags:
add a comment

El error en español
Hemos tenido un pequeño problema para obtener su licencia. Si vuelve al Almacén de SharePoint e intenta adquirir esta aplicación de nuevo, no se le volverá a cobrar.

el error en Ingles
Everything is fine, but we had a small problem getting your license. Please go back to the SharePoint Store to get this app again and you won’t be charged for it

La solucion, ademas de no usar un usuario farmAdmin ni uno del pool de aplicaciones de sharepoint,

solution23

always return deferred resolved July 28, 2014

Posted by juanpablo1manrique in SharePoint2013.
Tags: , ,
add a comment

En jquery existen las promesas,

Te prometo que te llevo a miami .. jejeje

ante dudas con el tema
http://joseoncode.com/2011/09/26/a-walkthrough-jquery-deferred-and-promise/

function getPrintingStatus(){
var deferred = $.Deferred();
if {isNecesaryPrint}
{
$.post(
“/echo/json/”,
{
json: JSON.stringify( {status: Math.floor(Math.random()*8+1)} ),
delay: 2
}
).done(function(s){
deferred.resolve(s.status);
}).fail(deferred.reject);
return d.promise();
}
else {
return null;
}
}

Es decir si no es necesario imprimir no me prometa nada, digame que no,

si se envia un null y la capa superiro esperaba un deferred se arroja un error o se estanca el proseso porque la promesa nunca se cumplio, entonces hay que decir que si.

return $.when()

or

var deferred = $.Deferred().resolve();
return deferred.promise();

es decir queda como

function getPrintingStatus(){
var deferred = $.Deferred();
if {isNecesaryPrint}
{
$.post(
“/echo/json/”,
{
json: JSON.stringify( {status: Math.floor(Math.random()*8+1)} ),
delay: 2
}
).done(function(s){
deferred.resolve(s.status);
}).fail(deferred.reject);
return d.promise();
}
else {
return $.when()
}
}

Saludos

Open HTML, FLASH, PDF files in SharePoint Library try Download July 15, 2013

Posted by juanpablo1manrique in SharePoint, SharePoint2013.
Tags:
2 comments

Hola
En estos días tuve el impedimento de poder desplegar archivos HTML, PDF, FLASH desde una librería de SharePoint, al dar click sobre un archivo HTML que estaba en una librería, me lo intentaba descargar en vez de abrirlo de una vez,

Untitled2
Una de las soluciones fue ir al central administrator y en los settings del webApplication decirle “permissive”, pero la idea no era darle “permissive” ya que esto abría un poco la seguridad del web application, así que seguí buscando y encontré la función AllowedInlineDownloadedMimeTypes (Realmente es un vector), el cual permite agregar los tipos de application que quiero que se desplieguen sobre SharePoint, el script completo quedo de la siguiente manera.

$webApp=Get-SPWebApplication http://webapplicationurl:90
$webApp.BrowserFileHandling = “strict”
$webApp.AllowedInlineDownloadedMimeTypes.Add(“application/octet-stream”)
$webApp.AllowedInlineDownloadedMimeTypes.Add(“text/html”)
$webApp.AllowedInlineDownloadedMimeTypes.Add(“application/pdf”)
$webApp.AllowedInlineDownloadedMimeTypes.Add(“application/x-shockwave-flash”)
$webApp.Update()

Para poder ver que tipo de application que quiero desplegar, me recomendaron RESTClient de Firefox el cual me dice que tipo de application es el que necesito

https://addons.mozilla.org/en-us/firefox/addon/restclient/Untitled1

PD. los archivo de tipo “application/octet-stream” igualmente no se abren en modo permissive sino que toca, colocarlo strict y agregar el tipo de application correspondiente.

Happy SharePoint,

Register-SPWorkflowService : The underlying connection was closed January 17, 2013

Posted by juanpablo1manrique in SharePoint2013.
Tags:
2 comments

Este error me aparecio instalando Workflow 2013 SharePoint.

Register-SPWorkflowService : The underlying connection was closed: An unexpected error occurred on a receive. Client ActivityId : ee2de3e9-3f96-4a6f-96b9-321e126cc37f.

Este sucedia cuando se ejecutaba mal el commando, se arreglo utilizando la direccion completa del dominio.

Incorrecto.

Register-SPWorkflowService –SPSite “http://devPC:90/TeamSite” –WorkflowHostUri “https://devPC:12290” –AllowOAuthHttp

Correcto.
Register-SPWorkflowService –SPSite “http://devPC:90/TeamSite” –WorkflowHostUri “https://devPC.mydomain.loc:12290” –AllowOAuthHttp

Aqui puedes observer todos los detalles de la instalación

Installing and configuring workflow for SharePoint Server 2013, Step by Step

Saludos

 

Installing and configuring workflow for SharePoint Server 2013, Step by Step January 17, 2013

Posted by juanpablo1manrique in SharePoint2013.
2 comments

Hola Amigos

En estos dias estuve revisando el tema del nuevo WebApplication de Workflow de SharePoint 2013, y la configuracion del mismo es bastante diferente. cuando se intenta realizer un WF desde Designer solo se observa SharePoint 2010 disponible.

WFSharePoint2013-1

Cuando se navega en el central administrator -> Application Management -> Manage Service Applications -> Workflow Service Application se obtiene un error como:

SharePoint 2013 workflow requires a compatible workflow service configured with SharePoint such as Workflow Manager. The workflow service is either not installed or not configured. Follow this link to find out how to set up workflow.

Entonces estos son los pasos para instalar workflow sharepoint 2013

1. Tener en cuenta las consideraciones de diseño descritas en este pots: http://technet.microsoft.com/en-us/library/jj658588(v=office.15)

2A. Para realizar la configuración en un servidor aparte es necesario descargar el Workflow Manager Client [http://go.microsoft.com/fwlink/p/?LinkID=268376].

2B. En el caso en el que se va a configurar Workflow Manager en un servidor que ya posee SharePoint Server 2013, nos ahorramos el paso de descargar el Workflow Manager Client [http://go.microsoft.com/fwlink/p/?LinkID=268376] y lo podrán encontrar en, en el caso de instalarlo en los mismos servidores de la granja se debe asegurar que si se desea balancear el servicio debe estar en todos los WFE, si lo que se desea es instalarlo en un Application Server se debe instalar una sola vez, en el caso de ser un server aparte se debe instalar una sola vez.

Aqui el paso a paso de la instalación, como veran nos pide 2 puertos para sitios principales y las bases de datos que se crearán en SQL. Aqui un resumen de los datos importantes a tener en cuenta.

URL WEB   Finales Bases de Datos   en SQL
http://devPC:90/TeamSite WFInstanceManagementDB
http://DEVPC:12290  WFResourceManagementDB
http://DEVPC:12291 SbManagementDB
 SbGatewayDatabase
 SBMessageContainer01

Paso 1. Descargarlo. WorkflowManager.exe

WFSharePoint2013-2

Paso 2.

WFSharePoint2013-3

WFSharePoint2013-5

WFSharePoint2013-6

WFSharePoint2013-7

Paso 3. Buscar los binarios

x86: C:\Program Files (x86)\Workflow Manager Tools\1.0
x64: C:\Program Files\Workflow Manager Tools\1.0

WFSharePoint2013-9

WFSharePoint2013-10

WFSharePoint2013-11

WFSharePoint2013-12

WFSharePoint2013-13

WFSharePoint2013-14

WFSharePoint2013-15

WFSharePoint2013-16

WFSharePoint2013-17

WFSharePoint2013-18

WFSharePoint2013-19

3. Finalmente se debe registar el servicio desde powershell por medio de este comando

  Register-SPWorkflowService –SPSite “http://devPC:90/TeamSite “ –WorkflowHostUri “https://devPC.mydomain.loc:12290 “ –AllowOAuthHttp

Super importante el https en 12290

 

WFSharePoint2013-21

4. Los certificados digitales se instalan desde el IIS en caso de requerirse.

Despues de estos cuantos pasos ya aparece disponible el tipo de WF para SharePoint 2013

WFSharePoint2013-23

Aqui ya podemos observer una de las nuevas funcionalidades sobre SharePoint 2013, los cuales son el manejo de los estados del flujo y las transiciones entre estados

WFSharePoint2013-24

Bueno como siempre, un placer

Configuration Wizard SharePoint 2010 vs SharePoint 2013 December 10, 2012

Posted by juanpablo1manrique in SharePoint, SharePoint2013.
Tags:
add a comment

Continuando con las comparaciones

SharePoint 2010 SharePoint 2013

Access Services 2010

Allows viewing, editing, and interacting with Access Services 2010 databases in
a browser.

X

Access Services

Allows viewing, editing, and interacting with Access Services databases in a browser.

X X

Application Registry Service

Backwards compatible Business Data Connectivity API.

X

App Management Service

Allows you to add SharePoint Apps from the SharePoint Store or the App Catalog.

X

Business Data Connectivity Service

Enabling this service provides the SharePoint farm with the ability to upload BDC
models that describe the interfaces of your enterprises’ line of business systems
and thereby access the data within these systems.

X X

Excel Services Application

Allows viewing and interactivity with Excel files in a browser.

X X

Lotus Notes Connector

Search connector to crawl the data in the Lotus Notes server.

X X

Machine Translation Service

Performs automated machine translation.

X

Managed Metadata Service

This service provides access to managed taxonomy hierarchies, keywords and social
tagging infrastructure as well as Content Type publishing across site collections.

X X

PerformancePoint Service Application

Supports the monitoring and analytic capabilities of PerformancePoint Services such
as the storage and publication of dashboards and related content.

X X

PowerPoint Conversion Service Application

Enables the conversion of PowerPoint presentations to various formats.

X

Search Service Application

Index content and serve search queries.

X X

Secure Store Service

Provides capability to store data (e.g. credential set) securely and associate it
to a specific identity or group of identities.

X X

State Service

Provides temporary storage of user session data for SharePoint Server components.

X X

Usage and Health data collection

This service collects farm wide usage and health data and provides the ability to
view various usage and health reports.

X X

User Profile Service Application

Adds support for My Sites, Profiles pages, Social Tagging and other social computing
features. Some of the features offered by this service require Search Service Application
and Managed Metadata Services to be provisioned.

X X

Visio Graphics Service

Enables viewing and refreshing of Visio Web Drawings.

X X

Web Analytics Service Application

Web Analytics Service Application

X

Word Automation Services

Provides a framework for performing automated document conversions.

X X

Work Management Service Application

This service provides task aggregation across work management systems.

X

Workflow Service Application

This service connects SharePoint to an external workflow service

X