0

昨日、最初の Silverlight アプリケーションを完成させました。このアプリケーションは、エンティティ モデルとドメイン サービス クラスを介してデータベース (別のリモート サーバー上の SQL サーバー) と通信します。私のPCでテストすると、すべてうまくいきます。そのため、このプロジェクトを最初にローカルの場所に展開し、その後、リモート サーバーに移動します。

問題は、このサーバーへの移動後、WCF RIA がサーバーと通信しないことです (コールバックは、サーバーが見つからないというエラーをスローします。それ以上はありません)。

このエラーの原因を特定するにはどうすればよいですか。IIS を使用したことがないので、少し絶望的です。Web Deploy オプションを試しましたが、リモート サーバーに接続できません。ローカル PC には IIS 8 Express があり、Web サイトを移動する必要があるリモート サーバーには IIS 7 (MS Server 2008) があります。

私の Web.Config ファイル

<configuration>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </modules>
    <validation validateIntegratedModeConfiguration="false"/>
  </system.webServer>
  <system.web>
    <httpModules>
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </httpModules>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
      </assemblies>
    </compilation>
    <httpRuntime/>
  </system.web>
  <connectionStrings>
    <add name="ISPRSWebFormTestEntities" connectionString="metadata=res://*/EntityModel.csdl|res://*/EntityModel.ssdl|res://*/EntityModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=sql.fce.cz\\MSSQL2012,1433;initial catalog=testDB;user id=reviewer;password=xxxxxxxxxx;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"/>
  </connectionStrings>
  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>
</configuration>
4

1 に答える 1

0

Pls は診断のためのより多くのエラー情報を提供します。さらに、次の設定を再確認する必要があります。1.接続文字列。接続文字列が正しく、リモート サーバーに接続できることを確認してください。2. Web サービス。IE で svc ファイルにアクセスして、Web サービスが正常に動作していることを確認してください。

于 2013-08-16T13:53:57.553 に答える