none
Error despliegue WebPart RRS feed

  • Pregunta

  • Buenas tardes,

    tengo un problema al desplegar mi webpart y no se si es debido a los permisos de la base de datos. les agradecería que me ayudaran con este error.

    El error es el siguiente:

    miércoles, 17 de julio de 2013 17:21

Todas las respuestas

  • Hola,

    ¿Qué tipo de solución es: granja o sandbox? ¿Qué hace la WebPart? ¿Has intentado depurarla? Mejor que el error en el visor de eventos, adjunta la información que se está registrando en los logs en relación a tu webpart. Mientras tanto, entra en la página de mantenimiento de WebParts para poder eliminar la WebPart de tu página y qué esté accesible.

    Saludos


    ------------------------------------------------------------
    Juan Carlos González Martín MVP de SharePoint Server
    Director revista CompartiMOSS: http://www.compartimoss.com
    Blog: http://geeks.ms/blogs/ciin
    Twitter: @jcgm1978
    ------------------------------------------------------------

    miércoles, 17 de julio de 2013 18:19
  • - Qué tipo de solución es:? granja

    - Qué hace la WebPart? Migra información de listas a una BD y posteriormente elimina el item de la lista. Tambien realiza consulta a BD

    - Si se ha depurado la webpart se encuentra en funcionamiento, este inconveniente es al realizar le paso a producción

    - No se puede adjuntar pero lo envío por código error de Identificador de correlación: a3432343-6690-45b4-86e1-2612ff9138e9.

    El cual informa que posee varias categorías.

    07/17/2013 13:45:29.15 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Logging Correlation Data      	xmnv	Medium  	Name=Request (POST:http://srvwpuapspstr01:8014/sites/templates/Formularios/_layouts/ManageFeatures.aspx)	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.15 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Logging Correlation Data      	xmnv	Medium  	Site=/sites/templates	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.19 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	General                       	88jb	Medium  	Feature Activation: Activating Feature 'WSPMigracion' (ID: 'f305097c-21ec-47b1-8796-30ced37fde79') at URL http://srvwpuapspstr01:8014/sites/templates/Formularios.	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.19 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	General                       	75fb	Medium  	Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'WSPMigracion' (ID: 'f305097c-21ec-47b1-8796-30ced37fde79').	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Feature Infrastructure        	88jm	High    	Feature receiver assembly 'WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e', class 'WSPMigracion.EventHandlers.Features.WSPMigracionReceiver', method 'FeatureActivated' for feature 'f305097c-21ec-47b1-8796-30ced37fde79' threw an exception: System.ArgumentException: No se pudo cargar el ensamblado del receptor "WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e" para la característica "WSPMigracion" (identificador: f305097c-21ec-47b1-8796-30ced37fde79).: System.IO.FileNotFoundException: Could not load file or assembly 'WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e' or one of its dependencies. The system cannot find the file specified.  File name: 'WSPMigracion, Version=1.0.0.0, Culture=neutral, Pu...	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20*	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Feature Infrastructure        	88jm	High    	...blicKeyToken=2c243a56e1e58e9e'     at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.Load(String assemblyString)     at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()    WRN: Assembly binding logging is turned OFF.  To enable assembly bind failure logging, set the registry ...	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20*	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Feature Infrastructure        	88jm	High    	...value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.  Note: There is some performance penalty associated with assembly bind failure logging.  To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].       at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()     at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	General                       	72by	High    	Feature Activation: Threw an exception, attempting to roll back.  Feature 'WSPMigracion' (ID: 'f305097c-21ec-47b1-8796-30ced37fde79').  Exception: System.ArgumentException: No se pudo cargar el ensamblado del receptor "WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e" para la característica "WSPMigracion" (identificador: f305097c-21ec-47b1-8796-30ced37fde79).: System.IO.FileNotFoundException: Could not load file or assembly 'WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e' or one of its dependencies. The system cannot find the file specified.  File name: 'WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e'     at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence asse...	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20*	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	General                       	72by	High    	...mblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.Load(String assemblyString)     at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()    WRN: Assembly binding logging is turned OFF.  To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.  Note: There is some performance penalty associated with assem...	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20*	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	General                       	72by	High    	...bly bind failure logging.  To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].       at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()     at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)     at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Runtime                       	tkau	Unexpected	System.ArgumentException: No se pudo cargar el ensamblado del receptor "WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e" para la característica "WSPMigracion" (identificador: f305097c-21ec-47b1-8796-30ced37fde79).: System.IO.FileNotFoundException: Could not load file or assembly 'WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e' or one of its dependencies. The system cannot find the file specified.  File name: 'WSPMigracion, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2c243a56e1e58e9e'     at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)     at System.Reflection.Ass...	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20*	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Runtime                       	tkau	Unexpected	...embly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.Load(String assemblyString)     at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()    WRN: Assembly binding logging is turned OFF.  To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.  Note: There is some performance penalty associated with assembly bind failure logging.  To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].      at Microsoft.ShareP...	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20*	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Runtime                       	tkau	Unexpected	...oint.Administration.SPFeatureDefinition.get_ReceiverObject()     at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)     at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)     at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)     at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScop...	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.20*	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Runtime                       	tkau	Unexpected	...e featdefScope)     at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force, SPFeatureDefinitionScope featdefScope)     at Microsoft.SharePoint.WebControls.FeatureActivator.ActivateFeature(Guid featid, SPFeatureDefinitionScope featdefScope)     at Microsoft.SharePoint.WebControls.FeatureActivatorItem.BtnActivateFeature_Click(Object objSender, EventArgs evtargs)     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)	a3432343-6690-45b4-86e1-2612ff9138e9
    07/17/2013 13:45:29.27 	w3wp.exe (0x194C)                       	0x0230	SharePoint Foundation         	Monitoring                    	b4ly	Medium  	Leaving Monitored Scope (Request (POST:http://srvwpuapspstr01:8014/sites/templates/Formularios/_layouts/ManageFeatures.aspx)). Execution Time=127.877984492442	a3432343-6690-45b4-86e1-2612ff9138e9



    miércoles, 17 de julio de 2013 19:06
  • Hola,

    Por lo que veo,el ensamblado no se está registrando correctamente en la GAC...¿has comprobado si está disponible en la GAC? Te digo lo mismo con la correspondiente entrada en el web.config.

    Un saludo


    ------------------------------------------------------------
    Juan Carlos González Martín MVP de SharePoint Server
    Director revista CompartiMOSS: http://www.compartimoss.com
    Blog: http://geeks.ms/blogs/ciin
    Twitter: @jcgm1978
    ------------------------------------------------------------

    miércoles, 17 de julio de 2013 19:19
  • Se me presentan 2 inconvenientes:

    En el servidor de desarrollo: No aparecen las dlls registradas en el GAC

    En el servidor de Producción: Si aparecen las dlls registradas.

    Sin embargo se presenta el mismo inconveniente en el servidor de producción.

    miércoles, 17 de julio de 2013 20:16
  • Buenas, añadiendo a las preguntas que a hecho Juan Carlos, el error del WebPart te lo da nada más lo añades o cuando empiezas a realizar las acciones con las listas?

    Yo pienso que es algo del proceso que has comentado en el que estarás intentando acceder a un valor nulo o que no exista en la lista. Mi primera recomendación es que la depures (tal y como te ha dicho Juan Carlos) además que en el procedimiento que estas realizando las operaciones con las listas pongas un manejador de errores y como estas en deputarción pues mostrar los errores por pantalla para saber donde esta fallando. Los logs que hay dentro de SharePoint son más genericos que uno que nos podamos generar nosotros mismos.

    Saludos,


    MCPD SharePoint 2010 Mi blog: http://blogs.encamina.com/desarrollandosobresharepoint Twitter: @AdrianDiaz81

    jueves, 18 de julio de 2013 5:43