I am trying to upload a report from the file system to the report server, but for some reason the report doesn’t appear when I upload it
Here is the section of code:
WebClient reptserv = new WebClient();
File.WriteAllLines(@"C:\HereGoesNothing.rdl", lines);
Uri address = new Uri("http://localhost/reportserver");
reptserv.UploadFileAsync(address, @"C:\HereGoesNothing.rdl");
The report runs in report builder just fine, so I know that’s not the issue, but after that I’m stumped.
Look at the below so question’s answer, this is a better method of achieving what you want to do…
Upload a report file to Report manager via .net application?
Basically you add a service reference to the report server and then upload it via the proxy class, also look at: http://msdn.microsoft.com/en-us/library/aa237438%28SQL.80%29.aspx
}