昨日、最初の 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="data source=sql.fce.cz\\MSSQL2012,1433;initial catalog=testDB;user id=reviewer;password=xxxxxxxxxx;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient"/>
</connectionStrings>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
</configuration>