私はWCFを初めて使用し、サービスを作成しようとしています。URLをサーバーパスに変換する必要があります。例:Gets-> "www.sample.com/client1" Returns-> "c:// samplefolder / sampleproject / client1"
私はこのコードを試しています:
string realPath = HostingEnvironment.MapPath(URL);
しかし、私は得るThe relative virtual path 'http://localhost:5353' is not allowed here
誰かが私が間違っていることを知っていますか?ありがとう