How to execute an SSRS .rss script file in IIS/ASP.NET -


i need execute .rss ssrs script file within asp.net application running in iis 7.x. how can that?

do have configure iis apppool running web application have elevated privileges such can start rs.exe console application passing .rss script way otherwise execute .rss script file outside of iis?

or there way? visual studio/.net provide mechanism bootstrapping .rss script file without needing rs.exe console application? option make rs.exe console application available web application running in iis?

so, figured out. if you're wondering how create history snapshot of report on ssrs reports server using reportservices2010 proxy, here's 1 example , 1 way can accomplish (many kyzen sharing insight in directing me soap api):

dim basichttpbinding new basichttpbinding() basichttpbinding.security.mode = basichttpsecuritymode.transportcredentialonly basichttpbinding.security.transport.clientcredentialtype = httpclientcredentialtype.ntlm basichttpbinding.sendtimeout = new timespan(0, 10, 0) dim endpoint new endpointaddress("http://server/reportserver/reportservice2010.asmx") dim instance new reportingservice2010soapclient(basichttpbinding, endpoint) dim itempath string = "/path/to/report" dim warnings() warning dim historyid string = nothing dim values parametervalue() = nothing dim credentials datasourcecredentials() = nothing dim t new trusteduserheader() instance.clientcredentials.windows.allowedimpersonationlevel = system.security.principal.tokenimpersonationlevel.impersonation instance.clientcredentials.windows.clientcredential = new net.networkcredential("userid", "password", "domain") instance.open()  oserverinfoheader = instance.createitemhistorysnapshot(t, itempath, historyid, warnings) 

and in c#:

basichttpbinding basichttpbinding = new basichttpbinding(); basichttpbinding.security.mode = basichttpsecuritymode.transportcredentialonly basichttpbinding.security.transport.clientcredentialtype = httpclientcredentialtype.ntlm basichttpbinding.sendtimeout = new timespan(0, 10, 0)  endpointaddress endpoint = new endpointaddress("http://server/reportserver/reportservice2010.asmx"); reportingservice2010soapclient instance = new reportingservice2010soapclient(basichttpbinding, endpoint); string itempath = "/path/to/report" warning warnings[]; string historyid; parametervalue values[]; datasourcecredentials credentials[]; trusteduserheader t = new trusteduserheader();  instance.clientcredentials.windows.allowedimpersonationlevel = system.security.principal.tokenimpersonationlevel.impersonation; instance.clientcredentials.windows.clientcredential = new net.networkcredential("userid", "password", "domain"); instance.open();  oserverinfoheader = instance.createitemhistorysnapshot(t, itempath, historyid, warnings); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -