インターネット上で Web サービスを使用したい。ポート 4501 を開き、モデムと Windows でファイアウォールを無効にしました。グローバル IP を書き込み、モデム制御インターフェイスを開くことができます。しかし、アドレスがxx.xx.xx.xx:4501/Products.svcのiisに接続したい
localhost (http://localhost:4501/Product.svc) で動作しますが、インターネット上の svc に接続できません..
どこに問題があるのかわからない。
参照サービスの追加として自分のサービスリンクアドレスを追加すると、このエラーが発生しました
There was an error downloading 'http://xx.xx.xx.xx:4501/Products.svc'.
Unable to connect to the remote server
Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı xx.xx.xx.xx:4501
Metadata contains a reference that cannot be resolved: 'http://xx.xx.xx.xx:4501/Products.svc'.
There was no endpoint listening at http://xx.xx.xx.xx:4501/Products.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Unable to connect to the remote server
Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı xx.xx.xx.xx:4501
If the service is defined in the current solution, try building the solution and adding the service reference again.
そしてもう一点、
IIS を起動すると、localhost でも wcf サービスが機能しません。Visual Studioで起動すると(asp.net開発サービスが機能することを意味します)、機能します..
IIS のバージョンは 7.5.7600 で、アプリケーション プールを Asp.net 4.0 として追加しました。