2012-05-21 32 views
-1

我正在使用ServiceModelEx的服務總線部分。 (並使用AppFabric來自動啓動WCF服務)。我收到一些奇怪的行爲...使用WCF和ServiceModelEx服務總線的奇怪行爲

基本上,我第一次調入服務總線,所有適當的事件觸發環比下滑(通過查看數據庫,看到記錄的值驗證)。

但在隨後的通話,沒有任何反應。這就像事件永遠不會觸發...

的.svclogs不顯示任何幫助,事實上,他們甚至不登記的後續事件。然而

Windows事件日誌確實顯示以下錯誤每個訂閱到總線上的服務:

WebHost failed to process a request. 
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/777031 
Exception: System.ServiceModel.ServiceActivationException: The service '/AcmeWidgets.WidgetFactory.Subscribers.WidgetBuilder/BuildService.svc' cannot be activated due to an exception during compilation. The exception message is: The type 'AcmeWidgets.WidgetFactory.Subscribers.WidgetBuilder.BuildService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.. ---> System.InvalidOperationException: The type 'AcmeWidgets.WidgetFactory.Subscribers.WidgetBuilder.BuildService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found. 
    at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) 
    at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath) 
    at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) 
    at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) 
    --- End of inner exception stack trace --- 
    at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) 
    at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) 
Process Name: w3wp 
Process ID: 3052 

我知道服務的屬性值是正確的,顯然是因爲它正確運行的第一次。

任何想法???

編輯1:要添加到這種奇怪的行爲,如果我重建「在Visual Studio中的解決方案,在第一次調用到總線作品,環比下跌火災中的所有事件,然後將所有後續調用失敗,再

回答

1

的代碼路徑,你在這裏展示的堆棧跟蹤不是特定於服務總線。這是一個激活錯誤。它看起來好像在這裏有一個類型加載錯誤。我會試着先看看那個先用fuslogvw