jump to navigation

sorry, this site hasn’t been shared with you : SharePoint OnLine January 18, 2016

Posted by juanpablo1manrique in SharePoint.
add a comment

Buen día Amigos,

Al intentar modificar uno de los archivos de diseño de un sitio de sharePoint online se recibe el siguiente error

sorry, this site hasn’t been shared with you
Lo sentimos, este sitio no ha sido compartido con usted
Esto sucede al intentar modificar cualquier archivo de la librería

https://sitio/_catalogs/masterpage/Forms/AllItems.aspx

La solucion

Entrar a la administración de Office 365

Administrador GLOBAL -> sharePoint -> configuracion -> Script Personalizado

Mover a: Permitir que los usuarios ejecuten scripts …
Mover a: Permitir que los usuarios ejecuten scripts … en ambos casos

Esperar 24h
y listos

Get mail and manager from user profile December 4, 2015

Posted by juanpablo1manrique in SharePoint.
Tags:
add a comment

ServerContext serverContext = ServerContext.GetContext(web.Site);
UserProfileManager myUserProfile = new UserProfileManager(serverContext);
UserProfile currentUserProfile = myUserProfile.GetUserProfile(userName);

string managerUserName = (string)currentUserProfile[“manager”].Value;

string workerEmail = (string)currentUserProfile[“WorkEmail”].Value;

Unhandled Exception: System.IO.FileNotFoundException: The Web application at http://sdf.com could not be found. Verify that you have typed the URL correctly. June 10, 2015

Posted by juanpablo1manrique in SharePoint.
Tags:
add a comment

Una solucion, es agregar el usuario con el que se esta corriendo el comando, como admin de la base de datos,

Get-SPContentDatabase -identity 3383b594-d55d-488b-8ca4-4f16a695b9d6 | Add-SPShellAdmin -UserName CONTOSO\User1

‘center’ is an unexpected token. The expected token is ‘”‘ or ”’. Line X, position X April 10, 2015

Posted by juanpablo1manrique in SharePoint.
Tags:
add a comment

Hola

Este error me paso ejecutando este código en SharePoint Online:

ClientContext clientContext = new ClientContext(mysiteUrl);
List myList = clientContext.Web.Lists.GetById(new Guid(“XXXX-XXXX-XXX-XXXXX”));

clientContext.Load(myList);

clientContext.ExecuteQuery(); //aqui sale el error

Un mes antes el tema funcionaba perfecto, pero un día cualquiera fallo al revisar el error, inicie la búsqueda con Fiddler, y descubri que llama a una URL,

http://msoid.%5BTenant%5D/FPUrl.xml

Pero esta arrojaba el siguiente error

Error. Page cannot be displayed. Please contact your service provider for more details.

Cuando debería contestar un XML con la inforación de los Tokens de Autenticación,

La solucion:

1. La rápida: crear un registro en el archivo de host

157.56.58.43 msoid.[Tenant]

2. La lenta: Poner el caso de soporte a microsoft para que arregle ese CNAME,

 

Saludos

 

 

Project Server – Custom Field Formula Samples April 8, 2015

Posted by juanpablo1manrique in SharePoint.
add a comment
  • [Client Billable Cost] – [Internal cost]
  • ProjectDateAdd([Baseline Estimated Finish],”5d”,”Standard”)
  • ProjectDateDiff([Baseline1 Finish],[Baseline1 Estimated Finish], “Standard”)
  • IIf([Baseline1 Estimate Finish]<>ProjDateValue(“NA”),True, False)IIf([Milestone], 0,
  • IIf([Baseline Estimated Finish] <> ProjDateValue(“NA”), [duration Variance]/[Baseline Duration], 0)
  • IIf([Milestone],”NA”,IIf([Baseline Estimated Finish] <> ProjDAteValue(“NA”), ([Duration Variance]/[Baseline Duration]) * 100 & “%”,”0%”))

Steps implementation

  • Create ECF’s (Enterprise Custom Fields)
  • Create PDP’s (Project Detail Pages)
  • Create workflow phases and stages
  • Create Project Templates
  • Create WorkFlows
  • Create EPT’s (Enterprise Project Types)

 

assembly fill complex type by reflection December 15, 2014

Posted by juanpablo1manrique in SharePoint.
add a comment

The code say everything

string dllName = “Mycomponent.dll”;
string typeEntityName = “Mycomponent.DBEntity”;

Assembly assembly = Assembly.LoadFrom(“C:\\” + dllName);
Type typeEntity = assembly.GetType(typeEntity);

object objByreflection = Activator.CreateInstance(typeEntityName);

//ahora la magia
PropertyInfo pinfoprop1 = typeEntity.GetProperty(“prop1”);
pinfoprop1.SetValue(objByreflection, value1, null);

PropertyInfo pinfoprop2 = typeEntity.GetProperty(“prop2”);
pinfoprop2.SetValue(objByreflection, value2, null);

return objByreflection;

I can’t see “Access Request Settings” December 3, 2014

Posted by juanpablo1manrique in SharePoint.
add a comment

Esta opción se ve en Site setting -> site permissions -> click. En el ribbon en la parte superior.

Hay ocasiones en las que no se observa debido a que no se ha configurado la cuenta de correo saliente en sharepoint.

Central Administrator -> System Settings -> configure outgoing email settings -> click, colocar un correo asi sea de pruebas.

Error: An error occured while trying to fetch data from your Sharepoint site. Unexpected response from the server. The content type of the response is “”. The status code is “OK” February 24, 2014

Posted by juanpablo1manrique in SharePoint.
add a comment

Este error se puede presentar por las siguientes causas:

  • En el IIS -> Autentication -> Windows Authentication -> providers no exite el proveedor NTLM
  • En los bindings del IIS existen varios bindings por diferentes puertos, recomendable tener uno solo
  • El DisableLoopbackCheck no se ha deshabilitado
  • Se agregaron modificaciones sobre el TAG, system.serviceModel los cuales sobreescriben el comportamiento del servicio client.svc, recomendable que vaya vacio, tal cual viene en SharePoint

 <system.serviceModel>
   <serviceHostingEnvironment aspNetCompatibilityEnabled=”true” />
  </system.serviceModel>

  • Site Settings -> Site Collection Administration -> SharePoint Designer Settings esta deshabilitado
  • Se esta intentando ingresar por una URL que no existe en Central Administration -> System Settings -> Configure alternate access mappings
  • La autenticacion Windows del sitio esta deshabilitada

Saludos

window.navigator.geolocation undefined January 29, 2014

Posted by juanpablo1manrique in SharePoint.
add a comment

Cuando se tiene un error de este tipo en SharePoint 2010

Se Deben realizer las siguientes acciones.

En la masterPage verificar que no exista el tag <meta http-equiv=”X-UA-Compatible” content=”IE=8″/>

y en el web.Config agregar

<add name=”X-UA-Compatible” value=”IE=edge” />

En

  • <httpProtocol>      
  • <customHeaders>        
  • <add name=”X-MS-InvokeApp” value=”1; RequireReadOnly” />     
  • <add name=”X-UA-Compatible” value=”IE=edge” />        
  • </customHeaders>    
  • </httpProtocol>

Calentando SharePoint – Warm Up December 3, 2013

Posted by juanpablo1manrique in SharePoint.
Tags:
add a comment

A muchos les a pasado que por la manana SharePoint siempre en el primer request amance super lento. Se puede crear una rutina en power shell que llamada desde el task manager de uno de los WFE de SharePoint, realice una actividad de calentamiento de SharePoint.

Se crea un archivo Calentamiento.ps1 y se agregan las siguientes lineas
$webclient = New-Object System.Net.WebClient
$webclient.Credentials = [System.Net.CredentialCache]::DefaultCredentials
$webclient.DownloadString(http://mymadrugonsharepointsite)

Se crea la tarea programada a eso de las 7:30am y listo

Saludos