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

domingo, 8 de julio de 2012

Links útiles #43 Sharepoint

1-Comparación de versiones de Sharepoint 2010 (Foundation, Server, Enterprise)

http://sharepoint.microsoft.com/en-us/buy/pages/editions-comparison.aspx

2-Exclusiones del antivirus para Sharepoint 2010 y SQL Server 2008

http://spinplate.com/2012/02/antivirus-exclusions-for-sharepoint-2010-and-sql-server-2008-r2/

3-SPQuery en Sharepoint 2010

http://extreme-sharepoint.com/2012/06/22/spquery-pagination/

4-Ocultar una lista en Sharepoint 2010

http://geeks.ms/blogs/ciin/archive/2012/07/08/sharepoint-2010-c-243-mo-ocultar-una-lista-de-la-p-225-gina-ver-todo-el-contenido-del-sitio.aspx

5-Azure Service Bus y Sharepoint 2010

http://www.code-magazine.com/article.aspx?quickid=1203021&page=1

6-Guía completa de jobs de Sharepoint 2010

http://www.simple-talk.com/dotnet/.net-tools/a-complete-guide-to-writing-timer-jobs-in-sharepoint-2010/

7-Trabajando con Resources Files en Sharepoint 2010

http://www.fewlines4biju.com/2012/01/working-with-resource-file-in.html

8-Crear un workflow secuencial en Sharepoint 2010

http://www.fewlines4biju.com/2011/09/create-sequential-workflow-using-visual.html

9-Deployando un assembly a la GAC

http://www.fewlines4biju.com/2012/06/deploy-assembly-to-globalassemblycache.html

10-Sharepoint Folders vs Metadata

http://thingsthatshouldbeeasy.blogspot.com.ar/2010/01/sharepoint-folders-vs-metadata.html

miércoles, 27 de junio de 2012

Links útiles #40 Sharepoint 2010

1-Crear custom content type vía Visual Studio 2010

http://www.c-sharpcorner.com/UploadFile/54db21/content-types-in-sharepoint-2010-via-om/

2-Crear lista mediante Visual Studio 2010

http://www.c-sharpcorner.com/UploadFile/54db21/list-creation-in-sharepoint-2010-programmatically-using-vs-2/

3-Aplicar themes mediante una solución

http://www.c-sharpcorner.com/UploadFile/54db21/themes-in-sharepoint-2010-programmatically-using-vs-2010/

http://www.sharepointusecases.com/index.php/2010/09/automatically-apply-theme-to-a-sharepoint-foundation-2010-subsite/

4-Web Services y Business Connectivity Services

http://www.c-sharpcorner.com/UploadFile/Roji.Joy/connecting-to-a-web-service-using-business-connectivity-serv/

5-Deployar assemblies a global assembly

http://www.fewlines4biju.com/2012/06/deploy-assembly-to-globalassemblycache.html

6-Leer items de una lista con ECMA

http://sprider.org/2011/06/12/using-the-ecmascriptjavascript-client-object-model-to-read-lists-in-sharepoint-2010/

7-Ocultar la opción de upload múliplte para una document library particular

http://preachingsharepoint.blogspot.co.nz/2012/06/hide-multiple-upload-option-for.html

http://villpates.wordpress.com/2012/05/24/hide-multiple-upload-link-in-sharepoint-2010/

8-Subir un archivo mediante client object

http://ahujadhiraj.wordpress.com/2012/06/19/upload-a-image-in-the-document-library-and-update-its-metadata-using-client-object-model/

9-SPSecurityTrimmedControl: control que permite segmentar el contenido dependiendo de los permisos.

http://msdn.microsoft.com/en-us/library/ms476454

Algunos miembros útiles:

PermissionsString: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx

PermissionContext :http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.permissioncontext.aspx

PermissionMode: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.permissionmode.aspx

AuthenticationRestrictions: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.authenticationrestrictions.aspx

10-Obtener el último ID de un item creado

http://sharepointkunskap.wordpress.com/2012/06/20/three-ways-to-get-the-id-of-last-created-splistitem/

miércoles, 13 de junio de 2012

Tips/info #30 Sharepoint 2010

1-BeforeProperties/AfterProperties en Event Receiver

Para Listas/Libreria:

List BeforeProperties AfterProperties properties.ListItem
ItemAdding No Value No Value Null
ItemAdded No Value No Value New Value
ItemUpdating Original Value Changed Value Original Value
ItemUpdated Original Value Changed Value Changed Value
ItemDeleting No Value No Value Original Value
ItemDeleted No Value No Value Null

2-Puerto de SQL Server

Por default el puerto que usa SQL Server 2008 R2 es el TCP 1433, se puede cambiar por cuestiones de seguridad: http://highscalability.wordpress.com/2012/06/11/make-your-sharepoint-farm-more-secure-changing-the-default-sql-server-port/

3-Denegar el acceso al directorio virtual /_vti_bin/

Ir al directorio

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\

y editar el web.config que se encuentra en al carpeta.

En la sección de configuration, agregar lo siguiente:

<!-- Deshabilitar acceso anonimo al directorio _vti_bin -->
<location path="_vti_bin">
    <system.web>                 
        <authorization>
            <deny users="?" />
        </authorization>
    </system.web>
</location>

4-Al abrir una librería en modo explorar nos lanza el siguiente error:

“Some/SharePoint/Folder is not accessible.  You might not have permission to use this network resource. Contact that administrator of this server to find out if you have access permissions”

El valor por defecto que se permite para WebDAV en Windows XP es hasta 1 MB de datos, por lo que una llamada al servidor de más de 1 MB provoca que la información sea truncada y corrompida. Ej: 20000 items ~ 20 MB de información

  1. Ejecutar: regedit,
  2. Ir a la siguiente clave de registro HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\
  3. Agregar una nueva clave DWORD
  4. Escribe FileAttributesLimitInBytes para el nombre de la DWORD
  5. Click derecho sobre FileAttributesLimitInBytes, y  modificala. 
  6. En el campo Value, tipea el valor que deseas usar. Ej, si el Web folder contiene 20,000 files, tipea 20000000 en el campo value.
    El servicio WebClient no pregunta por propiedades específicas WebDAV. El Microsoft Office integrated Webfolders redirector pregunta por las propiedades específicas de WebDAV.
  7. Salir de regedit
  8. Detener y reinicar el servicio de WebClient.Pasos:
    1. Inicio, click Run, escribe cmd.
    2. Tipea los siguientes comandos:
      • net stop webclient
      • net start webclient

5-Error al cargar un formulario de infopath

Activation could not be completed because the InfoPath Forms Services support feature is not present. / There has been error while loading the form

Hay que deshabilitar y habilitar la feature oculta con el nombre “IPFSSiteFeatures”
Disable-SPFeature "IPFSSiteFeatures" -URL http://site collection URL

Enable-SPFeature "IPFSSiteFeatures" -URL http://site collection URL

6-Error al editar un master page: The security validation for this page is invalid.

La primer solución es revertir la master page a la default.

7-Los módulos de Sharepoint son firmados con una clave de Strong Name, porque supuestamente son deployados en la GAC.

Recuerde esto al deployar una solución de Sharepoint que contenga módulos.

8-Error al borrar un sandboxed solution: "Unable to access web scoped feature Id: GUID because it references a non-existent or broken web..."

Esto se debe a que una instancia de la sandboxed puede ser que se haya borrado y haya quedado en la papelera de reciclaje del Site collection.

Site Actions > Site Settings > Recycle Bin

Borrar el elemento correspondiente a la sandboxed, y probar de nuevo.

9-Autentificación via formularios (forms) y Client Object

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using Microsoft.SharePoint.Client;

namespace ConsoleApplicationSharepoint
{
class Program
{
static void Main(string[] args)
{
try
{
using (var contexto = new Clientcontexto(“http://sharepointsitecollection:port))
{
contexto.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;
FormsAuthenticationLoginInfo formularioAuthInfo = new FormsAuthenticationLoginInfo(“user”, “pass");
contexto.FormsAuthenticationLoginInfo = formularioAuthInfo;


var sitio = contexto.Site;
contexto.Load(sitio);
contexto.ExecuteQuery();
Console.WriteLine(sitio.Url);
}
}
catch (Exception ex)
{

}
}
}
}




10-Función “PreSaveAction” de javascript en Sharepoint


Puede utilizar la función PreSaveAction para ejecutar cualquier código JavaScript en los forms de NewForm.aspx o EditForm.aspx.antes de guardar el elemento.


"PreSaveAction" es la función de JavaScript que permite a programadores escribir código en esta función que se ejecutará antes de grabar el item. Los programadores pueden utilizar esta función en NewForm.aspx o EditForm.aspx.


SharePoint utiliza la validación de JavaScript cuando se envía un formulario. El siguiente código aparece al hacer clic con el botón "Guardar":
if (! PreSaveItem ()) si return false;

Sintaxis

PreSaveAction()

{

return false; // Cancela el proceso de guardado del ítem

return true; // OK para el proceso de guardado del ítem

}

domingo, 3 de junio de 2012

Links útiles #28–Sharepoint 2010

1-Instalar dlls en la GAC con proyectos de Sharepoint en Visual Studio 2010

http://sharepoint2010funfacts.blogspot.com.ar/2012/05/copying-additional-dlls-assemblies-to.html

2-Test unit para Sharepoint 2010

http://www.sharepointnutsandbolts.com/2012/04/sharepoint-2010-and-unit-tests-from.html

3-Deployar páginas aspx con Sandbox solution

http://www.akruratechnologies.com/2012/05/14/deploy-custom-aspx-page-with-sandbox-solutions-sharepoint-2010/

4-Amazon AWS y Sharepoint 2010

http://d36cz9buwru1tt.cloudfront.net/AWS_Amazon_SharePoint_Deployment.pdf

5-Algunos operadores para la búsqueda y para el panel de refinamiento

http://office.microsoft.com/en-us/sharepoint-server-help/search-for-content-HA010378166.aspx#BM4

http://www.sharemuch.com/2012/05/30/custom-sharepoint-2010-search-refiner-displaying-range-of-choices/

http://www.sharemuch.com/2012/05/31/more-handy-configurations-for-sharepoint-2010-search-refiners/

6-Agregar una propiedad de metadata al perfil de usuario

http://www.deliveron.com/blog/post/Add-a-Metadata-Property-to-User-Profiles-in-SharePoint-2010.aspx

7-Abrir dialogo modal y refrescar la página padre

http://yalla.itgroove.net/2012/04/open-modal-dialog-and-refresh-the-parent-page-from-custom-form-sharepoint-2010/

8-Remover botones de la ribbon

http://spdailytips.blogspot.ca/2011/10/various-options-to-remove-ribbon.html

9-Deployar un event receiver para una lista específica

http://spdailytips.blogspot.ca/2012/01/deploy-event-receiver-for-specific-list.html

10-JQGrid y Sharepoint 2010

http://praneethmoka.wordpress.com/2012/05/27/using-jqgrid-in-asp-netsharepoint/

http://www.codeproject.com/Articles/343934/jqGrid-Implementation-using-SpServices-in-SharePoi

viernes, 13 de enero de 2012

Web Application Scoped Resources

 

When you try to deploy a solution without Web Application Scoped Resources, you will get the following errors:

The solution contains no Web application scoped resource, and therefore cannot be deployed to a particular Web application. It can only be deployed globally.

If you like to deploy the solution to a web application, you need to set the Assembly Deployment Target to WebApplication instead of GlobalAssemblyCache. You can download a deployment script here.