Impersonare un utente con ReportViewer Control

Oggi mi sono trovato nella necessità di impersonare un utente per accedere a dei report tramite il ReportViewer control.

Un completo esempio di come fare lo si trova qui: 

Russell Christopher's Semi-Useful BI Musings : Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005

Una nota personale: NON USATE il web server integrato in Visual Studio 2005 perchè l'unica cosa che potrete vedere utilizzando il ReportViewer control è questo bell'errore:

"For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method. "

:-(

Published giovedì 21 giugno 2007 14.01 by dmauri

Comments

No Comments