2011-08-23 25 views
1

Azure 서비스 관리 API를 사용하여 흥미로운 문제가 발생했습니다. 특히, 어떤 작업을 시도하면 "/ '응용 프로그램의 서버 오류가 발생합니다. 'httpRequest '라는 이름의 속성이 없습니다."이름이 'httpRequest'인 속성이 없습니다.

이것은 프로젝트 중 하나 인 프로젝트에서만 발생하며 다른 프로젝트를 만들 때 재현 할 수 없습니다.

어셈블리 버전에 문제가 있다고 생각했기 때문에 퓨전 로그를 읽으려고했지만 실제로 그렇지 않습니다. 나는 또한 참고 문헌을 읽으려고 노력했다.

내가 막혔습니다. 아무도 단서가 있습니까?

<InnerException i:nil="true"></InnerException> 
    <Message>A property with the name 'httpRequest' is not present.</Message> 
<StackTrace> 
Server stack trace: 
    at System.ServiceModel.Channels.MessageProperties.get_Item(String name) 
    at Microsoft.Toolkit.WindowsAzure.ServiceManagement.ClientOutputMessageInspector.BeforeSendRequest(Message& request, IClientChannel channel) 
    at System.ServiceModel.Dispatcher.ImmutableClientRuntime.BeforeSendRequest(ProxyRpc& rpc) 
    at System.ServiceModel.Channels.ServiceChannel.PrepareCall(ProxyOperationRuntime operation, Boolean oneway, ProxyRpc& rpc) 
    at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin() 
    at System.ServiceModel.Channels.ServiceChannel.BeginCall(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, TimeSpan timeout, AsyncCallback callback, Object asyncState) 
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 
Exception rethrown at [0]: 
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 
</StackTrace> 

답변

1

이 솔루션은 here에 자세히 설명되어 있습니다. 그러나 옳은 방향으로 조금 움직여야합니다. 이것은 찾기가 어렵습니다. 잠시 전에 같은 문제가 있었으므로 about httpRequest not being present exception (WCF)이라는 블로그 게시물을 작성했습니다.

, 요약의 코드에 전화를 포장하기 :

using (new OperationContextScope((IContextChannel)channel)) 
    { 
     // ... my code 
    } 
+0

이 "채널"이란 무엇입니까? SOAP 호출을 시도 할 때 동일한 오류가 발생했습니다 – Crasher

+0

솔루션에서 참조한 원래 링크를 참조하십시오. http://blogs.msdn.com/b/pedram/archive/2008/07/19/webchannelfactory- inside-a-wcf-service.aspx 더 자세한 정보를 제공해야합니다. –

+0

귀하의 블로그 게시물 링크가 죽었습니다. 그래서 여기에 전체 답변을 게시하는 것이 더 좋습니다. – MonkeyWrench

관련 문제