ReportingService2010 could not be found

后端 未结 4 802
盖世英雄少女心
盖世英雄少女心 2020-12-14 23:18

I have:

private readonly ReportingService2010 _rs = new ReportingService2010();

Error:

The type or namespace name \'ReportingSer         


        
4条回答
  •  一个人的身影
    2020-12-15 00:00

    Change this;

    private readonly ReportingService2010 _rs = new ReportingService2010()
    

    to

    private readonly ReportingService2010SoapClient _rs = new ReportingService2010SoapClient()
    

    You are attempting to create an instance to a class that does not exists and adding the reference creates a corresponding *Client class for you to instantiate.

提交回复
热议问题