2011-01-13 31 views
0

iis 5.1を持つWindows XPでこのサービスをホストすると、WCFサービスとSilverlightクライアントが開発されました。iis 5.1でWCFサービスが動作していますが、iis 6で動作していません。

私は、IIS 6を持つのWindows Server 2003 R2でホストする場合、それは動作を停止し、その後、それは数分の最初のカップル(約20分)のために働いてます。..

私がサービスにアクセスしたとき、私はHTTP 500を得ています。

私が使用した設定は、

です。匿名アクセスと統合認証の両方がチェックされています。

<system.serviceModel> 
<behaviors> 
    <serviceBehaviors> 
    <behavior name=""> 
     <serviceMetadata httpGetEnabled="false"/> 
     <serviceDebug includeExceptionDetailInFaults="false"/> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 
<bindings> 
    <customBinding> 
    <binding name="SilverlightApplication1.Web.GetData.customBinding0"> 
     <binaryMessageEncoding/> 
     <httpTransport/> 
    </binding> 
    </customBinding> 
</bindings> 
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/> 
<services> 
    <service name="SilverlightApplication1.Web.GetData"> 
    <endpoint address="" binding="customBinding" bindingConfiguration="SilverlightApplication1.Web.GetData.customBinding0" contract="SilverlightApplication1.Web.GetData"/> 
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> 
    </service> 
</services> 

私のSilverlightクライアントの設定が

<client> 
     <endpoint address="----/InternalBorrow/GetData.svc" 
      binding="customBinding" bindingConfiguration="CustomBinding_GetData" 
      contract="ServiceReference1.GetData" name="CustomBinding_GetData" /> 
    </client> 

で次のように私のサービスの設定がある

すべてのボディは、私の問題を撃つトラブルに私を助けることができますか?

私は取得しています例外は、Webサービスは、.NETの低いバージョンを使用するように構成されたとして、我々は同じアプリケーションプールで.NET 4.0のWebアプリケーションを実行していたとき、私は同様の問題を経験した

System.ServiceModel.Activation.HostedAspNetEnvironment.ValidateHttpSettings(String virtualPath, Boolean isMetadataListener, Boolean usingDefaultSpnList, AuthenticationSchemes& supportedSchemes, ExtendedProtectionPolicy& extendedProtectionPolicy, String& realm)at System.ServiceModel.Channels.HttpChannelListener.ApplyHostedContext(String virtualPath, Boolean isMetadataListener) 

at System.ServiceModel.Activation.HostedAspNetEnvironment.ApplyHostedContext(TransportChannelListener listener, BindingContext context) 

at System.ServiceModel.Channels.HttpTransportBindingElement.BuildChannelListener[TChannel](BindingContext context) 

at System.ServiceModel.Channels.BindingContext.BuildInnerChannelListener[TChannel]() 

at System.ServiceModel.Channels.MessageEncodingBindingElement.InternalBuildChannelListener[TChannel](BindingContext context) 

at System.ServiceModel.Channels.BinaryMessageEncodingBindingElement.BuildChannelListener[TChannel](BindingContext context) 

at System.ServiceModel.Channels.BindingContext.BuildInnerChannelListener[TChannel]() 

at System.ServiceModel.Channels.Binding.BuildChannelListener[TChannel](Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode listenUriMode, BindingParameterCollection parameters) 

at System.ServiceModel.Description.DispatcherBuilder.MaybeCreateListener(Boolean actuallyCreate, Type[] supportedChannels, Binding binding, BindingParameterCollection parameters, Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode listenUriMode, ServiceThrottle throttle, IChannelListener& result, Boolean supportContextSession) 

at System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode listenUriMode, Boolean supportContextSession, IChannelListener& result) 

at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) 

at System.ServiceModel.ServiceHostBase.InitializeRuntime() 

at System.ServiceModel.ServiceHostBase.OnBeginOpen() 

at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) 

at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) 

at System.ServiceModel.Channels.CommunicationObject.Open() 

at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) 

at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) 

--- End of inner exception stack trace --- 

at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) 

at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) 
+0

どのような例外がありますか? –

+0

あなたは既にこの質問をしています:http://stackoverflow.com/questions/4670029/wcf-service-is-working-only-for-initial-couple-of-minutes-in-iis-6 –

+0

例外の詳細を追加.. – karthik

答えて

0

です。 ASP .NETバージョンをサーバー上の同じアプリケーションプールに混在させないようにしてください。

Webサーバーのイベントビューアログにエラーまたは警告が表示され、問題に関する詳細情報が表示されますか。

+0

ウェブサーバーのイベントビューアのログはどこにありますか教えてください。 – karthik

+0

このリンクはあなたにそれらを指し示すはずです... http://support.microsoft.com/kb/308427 – TKTS

+0

スタート>コントロールパネル>管理ツール>コンピュータの管理の下にある必要があります – TKTS

関連する問題