ado.net dataServices beginexecutebatch 콜링 개발에서 작동하지 않음 생산 서버에서 객체가 대상 유형과 일치하지 않습니다.

StackOverflow https://stackoverflow.com/questions/2439515

문제

BeginexeCutebatch를 통한 배치로 [WebGet] 서비스 작업에 전달되는 ADO.NET DataServices 1.0 호출이 있습니다.

개발 서버에서 모든 것이 완벽하게 작동합니다. Cassini 웹 서버 대신 IIS를 사용하여 최대한 생산 서버에 가깝게 만들도록 프로젝트가 구성되어 있습니다.

프로덕션 서버에 게시 할 때 배치 호출을 제외한 모든 서비스 운영이 완벽하게 작동합니다. 객체는 대상 유형과 일치하지 않습니다. . 나는 이것에 대한 원인을 찾을 수 없었습니다.

배치에 사용 된 URL을 복사하고 브라우저에 붙여 넣어 [WebGet] 서비스에 대해 단일 비 배치 스타일을 실행할 수도 있습니다.

나는 이것을 해결하는 데 도움이되는 정보를 찾을 수 없었습니다. 모든 지침은 가장 감사 할 것입니다.

감사합니다, Mike M.

피들러의 오류 메시지 :

HTTP/1.1 500 내부 서버 오류 컨텐츠 유형 : 응용 프로그램/XML DataServiceVersion : 1.0;

이 요청을 처리하는 동안 오류가 발생했습니다. 객체는 대상 유형과 일치하지 않습니다. System.Reflection.TargetException at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection .runtimemethodinfo.invoke (객체 obj, bindingflags invokeattr, binder binder, object [] 매개 변수, cultureinfo culture) system.data.services.requesturiprocessor.createfirstsegment (idataservice service, 문자열, 부울 체크 맞춤) .data.services.requesturiprocessor.createsegments (system.data.services.requesturiprocessor.requesturiprocessor.processrequesturi의 system.datarevices.DataService`11.batchDate -hongervice.dataService.DataServiceS (uri AbsoluteRequesturi)의 system.services (string [] segments, idataservice service). ResponseStream)

도움이 되었습니까?

해결책

배치에서 기능 호출을 할 수 없다는 것을 알았습니다. 엔티티 쿼리 만 수행 할 수 있습니다. 가장 성가신. 이후 버전에서 수정되었을 수 있습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top