sql server - Reporting Services access via Management Studio and a C# application -
how grant access select reporting services drop down within management studio per below image.
also, have colleague has full admin access when run below credentials set defaultcredentials seem still getting error:
namespace reportingservicesjobsutility { public class program { public static void main(string[] args) { listjobssrs(); } public static void listjobssrs() { //create instance of reportingservice2010 called server server.reportingservice2010 rs = new server.reportingservice2010(); //user credentials running application used rs.credentials = credentialcache.defaultcredentials; //rs.credentials = new system.net.networkcredential("",""); //create array of jobs job[] jobs = null; try { jobs = rs.listjobs(); listrunningjobs(jobs); } catch (soapexception e) { console.writeline(e.detail.innerxml.tostring()); } console.readline(); } //make void? public static bool listrunningjobs(server.job[] jobs) { int runningjobcount = 0; console.writeline("current jobs"); console.writeline("================================" + environment.newline); server.job job = default(server.job); foreach (var j in jobs) { console.writeline("--------------------------------"); console.writeline("jobid: {0}", job.jobid); console.writeline("--------------------------------"); console.writeline("action: {0}", job.jobactionname); console.writeline("description: {0}", job.description); console.writeline("machine: {0}", job.machine); console.writeline("name: {0}", job.name); console.writeline("path: {0}", job.path); console.writeline("startdatetime: {0}", job.startdatetime); console.writeline("status: {0}", job.jobstatusname); console.writeline("type: {0}", job.jobtypename); console.writeline("user: {0}" + environment.newline, job.user); runningjobcount += 1; } console.write("there {0} running jobs. ", runningjobcount); //returning true no reason return true; } } }
the error message follows , believe down credentials, unless can shed light on this?
edit
if use rs.credentials = new system.net.networkcredential(@"developmentserver\administrator","password");
on our development server runs no problems, seems not using defualtcredentials, either or mine , collegue's ad credentials not sufficient, original question how grant full access our logons.
have tried adding accounts want in report manager , setting role assignment there?
Comments
Post a Comment