2011-01-18 26 views
0

アプリケーションプールが特定のドメインユーザーとして実行されているときに効果的なWCFサービスを展開しましたが、別のユーザーとして実行するようにアプリケーションプールを変更すると、エラーと私のサービスはメタデータを返しません。私は困惑しています。私の新しいユーザーは、すべてのサービスファイル(設定ファイルを含む)へのアクセス権を持ち、アプリケーションプールのIDとして正常に動作し、データベースのアクセス権は問題にはなりません。特定のユーザーとしてWCFサービスを実行しているときにメタデータエラーが発生しました

誰かがこれについていくつか光を当てることができますか? WCFテストクライアントを使用して接続しようとすると、エラーのテキストが添付されました。最初のユーザーとして実行するようにアプリケーションプールを変更し、テストクライアントが契約リストをプルアップすると、問題なしでメソッドを呼び出すことができます。私を救ってください!

Error: Cannot import wsdl:portTypeDetail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporterError: Schema with target namespace 'http://UsBankRtSvc.Model/2010/Service' could not be found.XPath to Error Source: //wsdl:definitions[@targetNamespace='http://UsBankRtSvc.Model/2010/Service']/wsdl:portType[@name='UsBankRealTimeServiceContract']Error: Cannot import wsdl:bindingDetail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://UsBankRtSvc.Model/2010/Service']/wsdl:portType[@name='UsBankRealTimeServiceContract']XPath to Error Source: //wsdl:definitions[@targetNamespace='http://UsBankRtSvc.Model/2010/Service']/wsdl:binding[@name='DefaultEndpoint']Error: Cannot import wsdl:portDetail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://UsBankRtSvc.Model/2010/Service']/wsdl:binding[@name='DefaultEndpoint']XPath to Error Source: //wsdl:definitions[@targetNamespace='http://UsBankRtSvc.Model/2010/Service']/wsdl:service[@name='UsBankRealTimeSvc']/wsdl:port[@name='DefaultEndpoint']Warning: No code was generated.If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or servicesor because all contracts/services were discovered to exist in /reference assemblies. Verify that you passed all the metadata documents to the tool.Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.

答えて

2

同様の問題がありました。 IIS_WPGグループにサーバーのc:\ windows \ tempフォルダへのフルアクセス権を与えることで修正しました。

関連する問題