2010-07-29 10 views
1

다음 코드는 VS2010 업그레이드 이전했다 ...DataServiceConfiguration에 액세스 할 수 없습니까?

using System.Data.Services; 
namespace Nla.Dashboard.Web.Services 
{ 
public class DashboardDataService : DataService<NlaPrimaryEntities> 
{ 
    // This method is called only once to initialize service-wide policies. 
    public static void InitializeService(DataServiceConfiguration config) 
    { 
     etc... 

문제는 내가 이러한 오류를 얻을 ... 지금

'System.Data.Services.DataServiceConfiguration' 는 점이다 액세스의 보호 수준

하고 ... 때문에

일관성 접근성 : 매개 변수 유형 'System.Data.Services.DataServiceConfiguration' 이 방법보다 접근 ... 내가 잘못 라이브러리를 참조하고있다

이 서비스는 asp.net입니다 3.5에서 VS2010 호스팅 코드가 원래 ado.net 데이터 서비스 1.5 ctp2에 대해 vs2008에 내장되었습니다.

도움이되었습니다.

답변

1

VS 2010에서 실행할 때 대상 프레임 워크는 무엇입니까? 내 생각 엔 VS 2010에서 실행 중일 때 3.5 버전의 프레임 워크를 대상으로하고 있으며 "3.5 SP1 용 데이터 서비스 업데이트"RTM이 설치되어 있지 않습니다.

블로그의 링크 (http://blogs.msdn.com/b/astoriateam/archive/2010/01/27/data-services-update-for-net-3-5-sp1-available-for-download.aspx)에서 RTM 버전의 업데이트를 설치할 수 있습니다.

희망이 도움이됩니다.

감사 Pratik

게으른 들어
+0

- 최대 Windows 7 및 [다운로드 여기 (http://www.microsoft.com/downloads/details.aspx?familyid=79d7f6f8-d6e9-4b8c-8640-17f89452148e&displaylang = en) – wilsjd

관련 문제