Como yo soy muy clasico, mi manera preferida es a través del stsadm:
•stsadm -o setproperty -pn developer-dashboard -pv on
•stsadm -o setproperty -pn developer-dashboard -pv off
•stsadm -o setproperty -pn developer-dashboard -pv OnDemand
pero se pued hacer también desde Programación:
Console.WriteLine("Configurando el Developer Dashboard...");
SPWebService spwService = SPWebService.ContentService;
spwService.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.Off;
spwService.DeveloperDashboardSettings.Update();
Console.WriteLine("Configuración del Developer Dashboard actualizada....");
Console.ReadLine();
o desde Power Shelll:
$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ddsetting=$svc.DeveloperDashboardSettings
$ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
$ddsetting.Update()
Os dejo algunos links:
http://philwicklund.com/archive/2009/10/19/how-to-enable-the-developer-dashboard-in-sharepoint-2010.aspx
http://sptwentyten.wordpress.com/2009/10/20/how-to-enable-the-developer-dashboard/
http://geeks.ms/blogs/ciin/archive/2009/12/04/sharepoint-2010-habilitando-el-developer-dashboard-ii.aspx
No hay comentarios:
Publicar un comentario