C# using Reporting Services ReportExecution2005 Type or namespace name not found

Hi all!

Whatever I do, I cannot get hold of the ReportExecutionService class from the ReportExecution2005.asmx.

I connect to it with a "Service referance" and I can see alot of elements are suddenly available, but ReportExecutionService is not one of them.
There is ReportExecutionServiceSoapClient, ReportExecutionServiceSoapChannel and ReportExecutionServiceSoap and much more connected to Reporting services.

When I compile i get the following error:
The type or namespace name 'ReportExecutionService' could not be found (are you missing a using directive or an assembly reference?)

Any hints?

Best regards
Jacob

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Net;
using System.Web.Services.Protocols;
using RSTest.ReportExecution;
 
namespace RSTest
{
    class Program
    {
        static void Main(string[] args)
        {
            ReportExecutionService rs = new ReportExecutionService();

Open in new window

jacob-noAsked:
Who is Participating?
 
jacob-noConnect With a Mentor Author Commented:
I found the solution!
I had to chose "add as web reference" from the Service Reference setup.
0
 
jacob-noAuthor Commented:
0
 
Vasu DevCommented:
Add this as a web reference to solve 'ReportExecutionService' issue http://localhost/ReportServer_SQLEXPRESS/ReportExecution2005.asmx?wsdl
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.