0

SharePoint 2010에서 2013으로 업그레이드하는 동안 다음과 같은 문제가 발생합니다.SharePoint 2013 응용 프로그램 페이지에서 Reporting Services API 호출

SSRS API 호출이 보고서의 모든 구독을 가져 오는 응용 프로그램 페이지가 있습니다. 이 코드의 실행 동안

ReportingService2010 rs = new ReportingService2010(); 
rs.Credentials = System.Net.CredentialCache.DefaultCredentials; 
rs.Url = serverUrl + "/_vti_bin/ReportServer/ReportService2010.asmx"; 
try 
{ 
    return rs.ListSubscriptions(reportUrl); 
} 
catch (SoapException ex) 
{ } 

나는

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace: at Microsoft.SharePoint.SPWeb.GetObjectForUrl(String strUrl, Guid& listId)  at Microsoft.ReportingServices.SharePoint.Objects.RSSPImpWeb.GetObject(String strUrl)  at Microsoft.ReportingServices.SharePoint.Server.Utility.GetSPItemMetaDataAndContent(ItemSpecifier itemSpecifier, UserContext userContext, Boolean returnContent, Boolean wrapFileNotFoundOnOpenWeb, Byte[]& content)  at Microsoft.ReportingServices.SharePoint.Server.Utility.GetSharePointItem(ExternalItemPath objectName, UserContext userContext)  at Microsoft.ReportingServices.SharePoint.Server.SharePointDBInterface.GetItemTypeAndId(ExternalItemPath objectName, ItemType& type, Guid& id)  at Micros... 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 
...oft.ReportingServices.SharePoint.Server.SharePointDBInterface.ObjectExists(ExternalItemPath objectName, ItemType& type, Guid& id, Int32& snapshotLimit, Byte[]& secDesc, Int32& execOptions, Guid& snapshotId, Guid& linkID)  at Microsoft.ReportingServices.Library.GetItemTypeAction.PerformActionNow()  at Microsoft.ReportingServices.Library.RSSoapAction`1.Execute()  at Microsoft.ReportingServices.Library.ReportingService2010Impl.GetItemType(String itemPath, Boolean fromStore, String parameterName, Boolean allowEditSessionSyntax)  at Microsoft.ReportingServices.Library.ReportingService2010Impl.ListSubscriptions(String ItemPathOrSiteURL, String Owner, SubscriptionImpl[]& SubscriptionItems)  at Microsoft.ReportingServices.ServiceRuntime.ReportServiceManagement.<>c__DisplayClass5b.<L... 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 
...istSubscriptions>b__5a()  at Microsoft.ReportingServices.ServiceRuntime.ReportServiceBase.ExecuteWithContext[TResult](Func`1 action)  at Microsoft.ReportingServices.ServiceRuntime.ReportServiceManagement.ListSubscriptions(String ItemPathOrSiteURL)  at SyncInvokeListSubscriptions(Object , Object[] , Object[])  at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)  at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)  at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)  at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)  at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationCon... 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 
...textSet)  at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)  at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)  at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)  at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)  at System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)  at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  at Sy... 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 
...stem.Runtime.AsyncResult.Complete(Boolean completedSynchronously)  at System.Runtime.InputQueue`1.AsyncQueueReader.Set(Item item)  at System.Runtime.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)  at System.Runtime.InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)  at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)  at System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.CompleteParseAndEnqueue(IAsyncResult result)  at System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.HandleParseIncomingMessage(IAsyncResult result)  at System.Runtime.AsyncResult.SyncContinue(IAsyncResu... 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 
...lt result)  at System.ServiceModel.Channels.HttpPipeline.EmptyHttpPipeline.BeginProcessInboundRequest(ReplyChannelAcceptor replyChannelAcceptor, Action dequeuedCallback, AsyncCallback callback, Object state)  at System.ServiceModel.Channels.HttpChannelListener`1.HttpContextReceivedAsyncResult`1.ProcessHttpContextAsync()  at System.ServiceModel.Channels.HttpChannelListener`1.BeginHttpContextReceived(HttpRequestContext context, Action acceptorCallback, AsyncCallback callback, Object state)  at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)  at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()  at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()  at Syst... 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 
...em.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)  at System.ServiceModel.AspNetPartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state)  at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequestWithFlow(Object state)  at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)  at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)  at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP) 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 
Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: , Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'NT AUTHORITY\ANONYMOUS LOGON' are insufficient for performing this operation.; 0f35fa9b-1c67-c0b8-f616-d4cac96f7408 

기술 된 행동 2010에서 ASP.NET 가장 계정을 변경 SharePoint의 두 SP 2010 SP 2013 비슷 스택 추적과 UnauthorizedAccessException를 얻을 수 호스트 된 웹 응용 프로그램에 충분한 권한이있는 ID로 기본 설정하면이 문제가 해결됩니다.
불행하게도, SP 2013 그렇게 농장은 내가 익명 인증의 ID를 변경하려하지만 같은 예외를 가지고

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> The security token request cannot be completed. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 

형 SOAPException의 또 다른 예외가 발생합니다. 디버깅을 많이했고 로그를 읽었고이 문제를 해결하는 방법에 대한 단서가 없습니다.
아무도 제안 할 수 있습니까?

다음은 도움이 될만한 추가 정보입니다.
웹 응용 프로그램이 FBA 용으로 구성되었으며 인증을 위해 LDAP 공급자를 사용합니다.

감사합니다.

+0

인증 쿠키를 얻고 해당 쿠키를 rs 연결에 추가하려면 /_vti_bin/authentication.asmx에서 Login 메소드를 호출해야합니다. 이 스레드를보십시오 http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentprevious/thread/230de0e1-0d88-4c54-93a4-f166899873be/ – user1578107

+0

고마워요 !!! 그것은 나를 위해 일했습니다. 그걸 내가 대답 할 수 있도록 추가 할 수 있니? – gev

+0

나는 그것이 기뻤다! – user1578107

답변