Hola compares… sin duda aquí os dejo un pequeño pero más que interesante truquito para poder habilitar la visualización de errores remotos sobre nuestros informes de Reporting Services:
1º Nos creamos un archivo de texto en el que escribimos el siguiente código:
Public Sub Main()
Dim P As New [Property]()
P.Name = «EnableRemoteErrors»
P.Value = True
Dim Properties(0) As [Property]
Properties(0) = P
Try
rs.SetSystemProperties(Properties)
Console.WriteLine(«Remote errors enabled.»)
Catch SE As SoapException
Console.WriteLine(SE.Detail.OuterXml)
End Try
End Sub
Public Sub Main()
Dim P As New [Property]()
P.Name = «EnableRemoteErrors»
P.Value = True
Dim Properties(0) As [Property]
Properties(0) = P
Try
rs.SetSystemProperties(Properties)
Console.WriteLine(«Remote errors enabled.»)
Catch SE As SoapException
Console.WriteLine(SE.Detail.OuterXml)
End Try
End Sub
2º Guardamos
Guardamos el fichero como misErrors.rss
3º Ejecutamos:
Nos vamos al interprete de comandos o cmd, y ejecutamos:
rs -i misErrors.rss. -s http://servername/ReportServer
Y voilá 🙂
Decir que este script ha llegado a mis manos a través del todo poderoso oh gran Luis Miguel Blanco del cual os aconsejo encarecidamente cualquiera de sus libros, en especial el cuaderno técnico nº 2 de DotNetMania: http://www.dotnetmania.com/CTdnm/index.html
Buen aporte Isaac!!!. Lo probaremos a ver que tal [;)].
Un Saludo