Mostrando entradas con la etiqueta Session. Mostrar todas las entradas
Mostrando entradas con la etiqueta Session. Mostrar todas las entradas

miércoles, 11 de julio de 2012

Tips/Info #48 Sharepoint

1-Error: “The filtering process could not load the item. This is possibly caused by an unrecognized item format or item corruption.”

Reinstala el Microsoft Office 2010 Filter Packs (64 bit): http://www.microsoft.com/download/en/details.aspx?id=17062

2-"Cannot perform this operation.The file is no longer checked out or has been deleted."

Al tratar de hacer un chck in Sharepoint Designer o la UI de Sharepoint nos lanza este error. Deberemos hacer lo siguiente, limpiar las siguientes carpetas:

%APPDATA%\Microsoft\Web Server Extensions\Cache
%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache

3-The solution cannot be removed when a job is scheduled or running.

stsadm -o enumdeployments

Busca el GUID del deployment pendiente y ejecuta los siguiente
stsadm -o canceldeployment –id “GUID”

4-Session State en Sharepoint 2010

SharePoint 2010 usa dos servicios relacionados a la session state, que tienen nombres parecidos pero propósito diferente

  • ASP.NET session state puede ser usado en páginas de SharePoint 2010. Este servicio es deshabilitado por default en instalaciones normales de Sharepoint 2010; y podrá ser habilitado usando algunas instrucciones que aparecen más abajo. Una vez habilitado, aparece en la página de Service Applications un servicio llamado “SharePoint Server ASP.NET Session State Service.”
  • El "State Service service application" es diseñado para y sólo disponible para componentes office internos tales como InfoPath Forms Services y Visio Services. Este servicio es habilitado por default en una tipica instalación de Sharepoint 2010 y no está relacionado a ASP.NET session state. Aparece en la página de Service Applications como “State Service.”

    Para habilitar ASP.NET session state:

    En la ventana de SharePoint 2010 Management Shell escribe lo siguiente:
    Enable-SPSessionStateService –DefaultProvision
    Sobre cada web application sobre el cual deseas usar session state, edita el web.config (previo backup) y setea la propiedad enableSessionState: <pages enableSessionState="true"

    Guía para usar en SharePoint Server ASP.NET Session State:

  • Este session state podría ser usado por custom code en web parts y otras páginas que hosteen controles
  • La información de Session state es almacenado en una base SQL configurable; esto implica lo siguiente:
  • Afinidad para la carga de balanceo no es requerido
  • El uso intensivo de session state debe ser incluído en un planning de capacity/base de datos. Por defautl, la base de datos de session state es creado en el mismo server de SQL que contiene la base de datos de configuración de Sharepoint. Esto puede ser cambiado a otro server. Para moverlo a otro SQL Server, primero deberás deshabilitarlo y habilitarlo de nuevo con una nueva configuración que apunte al server nuevo.
  • Cuando está habilitado, Session state es disponible para toda la granja. Cada web aplication puede elegir si desea usarlo o no mediante la configuración del web config(enableSessionState="true").
  • Session state es particionado usando la root URL. Esto significa que diferentes web applications tendrán diferentes objetos de  session state; un web part puede tener sólo acceso al objeto session state disponible. Si host header de site collection son usados, entonces objetos de session diferentes serán usados para cada site collection(el browser tendrá múltiple session ids en diferentes cookies).

    Para más información sobre el comando SPSessionStateService , ingrese al siguiente link: http://technet.microsoft.com/es-ar/library/ff607857.aspx

    Un ejemplo diferente:

    Enable-SPSessionStateService –DatabaseName “Session State Database” –DatabaseServer “localhost” –SessionTimeout 120
    En este ejemplo se habilita un estado de sesión de ASP.NET en un conjunto de servidores de Microsoft SharePoint Server 2010 que usa un nombre de base de datos personalizada, un servidor de base de datos, un tiempo de espera de sesión de 120 minutos y credenciales de Windows (debido a la falta de un parámetro atabaseCredentials).

  •  2112.image_thumb_5747BCBD

  • 2112.image_thumb_718825E1
    Si desean habilitar session state para Sharepoint Foundation, ingresen al siguiente link: http://www.elumenotion.com/Blog/Lists/Posts/Post.aspx?ID=123

    Más info: http://blogs.msdn.com/b/sowmyancs/archive/2012/07/11/more-information-about-health-analyzer-rules-talking-about-session-expirations.aspx


  • domingo, 12 de febrero de 2012

    Enable ASP.NET Session State on SharePoint 2010 Application

    Hace un tiempo escribí un post del Objeto  Session:

    http://todosharepoint.blogspot.com/2012/01/sharepoint-2010-objecto-session.html

    ASP.NET Session state is disabled by default in SharePoint 2010 installation. Although it may not require in typical SharePoint 2010 installations, there may be need in custom solutions & web parts built on top of SharePoint 2010 framework where developers required persisting information per user session.

    How really ASP.NET Session State works in SharePoint?

    As many of you are aware, ASP.NET allows persisting session states in three different medium – on server memory as a inproc which would require server & load balancer affinity, on SQL Server to persist session in database, or on Session State Server to persist session on dedicated server memory. Both SQL Server and Session State Server would support server farm environment and because SharePoint is the multi-server farm environment based on ASP.NET framework, by default, it can be enabled to use SQL Server and SqlSessionStateStore provider to persist session state.

    Should I really worry if ASP.NET Session State is enabled on my SharePoint farm?

    It depends on many factors like how many concurrent users will be accessing site or heavy vs. average vs. low usage of session objects. If you really need to persist user session information and if you can store them in other mediums like cookies, ASP.NET Session state may not be necessary. Since SharePoint is built on top of ASP.NET framework, ASP.NET Session state would be ideal place to persist user sessions. Since ASP.NET Sessions gets stored in the SQL Server, heavy usage of session state may require detailed database planning, regular truncating/maintenance/cleanup of expired session state data, or fine tuning of default 60 minute session expiration time. Great thing about this service is even though it’s enabled on whole farm, it’s not used unless specific application is activated to use session state and you have full control & visibility of how ASP.NET sessions gets stored in SharePoint.

    How do I enable ASP.NET Session State in SharePoint?

    ASP.NET Session state is available to the SharePoint environment by enabling “SharePoint Server ASP.NET Session State Service” service application on the SharePoint farm. You can’t enable this service application using central administration browser interface. You must enable it using PowerShell command.

    sábado, 28 de enero de 2012

    Sharepoint 2010 - Objecto Session

    Pues bien SharePoint 2010 tiene la capacidad de manejar las sesiones Asp.net con total transparencia para el desarrollador, ya que toda la información de sesiones se almacena en una base de datos SQL.

    Sin embargo esto también quiere decir que el uso intensivo de la sesión debe ser como siempre bien planificado.

    Por defecto en una instalación estándar de SharePoint las sesiones Asp.net se encuentran deshabilitadas. Para habilitarlas en MOSS simplemente:

    En la consola PowerShell ejecute

    • Enable-SPSessionStateService –DefaultProvision

    Este comando establece los atributos por default dejando la base de datos de manejo de sesión en el mismo sitio que la base de configuración de SharePoint, si desea puede usar atributos adiciones para establecer dicha base de datos en otra ubicación.

  • DatabaseName 
  • DatabaseServer 
  • DatabaseCredentials