Solved

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

Posted on 2008-06-13
3
6,021 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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