【发布时间】:2016-03-28 15:01:47
【问题描述】:
在我的 web 应用程序上集成 youtube api 时遇到一些问题,我已经使用 Analytics spi 和这项工作,但是当我尝试添加 youtube 服务时出现此错误:
Il tipo 'Google.Apis.Services.BaseClientService' è definito in un assembly di cui manca il riferimento. Aggiungere un riferimento all'assembly 'Google.Apis, Version=1.10.0.25332, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab'.
这里是代码
using Google.Apis;
using Google.Apis.Auth;
using Google.Apis.Services;
using Google.Apis.Analytics.v3;
using Google.Apis.Analytics.v3.Data;
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
public class DashBoard
{
protected ServiceAccountCredential credential = null;
protected AnalyticsService analytics_service = null;
protected YouTubeService youTube_service = null;
.....
产生错误的行是这样的:protected YouTubeService.... 删除所有工作,添加这个我得到错误
我可以检查什么来找出错误?
【问题讨论】: