Solved

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

Posted on 2008-06-13
3
6,119 Views
Last Modified: 2016-09-08
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

0
Comment
Question by:jacob-no
  • 2
3 Comments
 

Author Comment

by:jacob-no
ID: 21777450
0
 

Accepted Solution

by:
jacob-no earned 0 total points
ID: 21777670
I found the solution!
I had to chose "add as web reference" from the Service Reference setup.
0
 

Expert Comment

by:Vasu Dev
ID: 41789565
Add this as a web reference to solve 'ReportExecutionService' issue http://localhost/ReportServer_SQLEXPRESS/ReportExecution2005.asmx?wsdl
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question