端口
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
解决方案 »
- System.Web.HttpContext.Current.Server.MapPath("a.txt").ToString(); 报错“未将对象引用设置到对象的实例。”
- 关于ASP.NET批量上传的问题
- 数字问题啊?1M=1024KB HOW?
- <div id=""Layer25"" style="position: absolute; width: 1000px; height: 1000px; z-index: 35; background-color:red
- asp.net 页面中有<frame> 吗 怎么实现
- 求Dotnet2.0 下的Web在线编辑器(最好上传文件管理比较好的)
- 有没有办法让hyperlink上的文字换行??
- 相当难的SQL题 我自己高不定了! 求哥哥姐姐们~我才20帮小弟一下
- 请问Repeater控件中,如何取得当前正在显示的那个Item中某一字段的值?
- 问一个概念问题VS。NEt 是Visual Studio.net的简写吗,
- CheckBox控件默认选中后,就算不选中,获得的结果仍然是选中状态
- 关于sso的问题
{
host.AddServiceEndpoint(typeof(ICalculator), new WSHttpBinding(), "http://127.0.0.1:3721/calculatorservice");
if (host.Description.Behaviors.Find<ServiceMetadataBehavior>() != null)
{
ServiceMetadataBehavior behavor = new ServiceMetadataBehavior();
behavor.HttpGetEnabled = true;
behavor.HttpGetUrl = new Uri("http://127.0.0.1:3721/calculatorservice/metadata");
host.Description.Behaviors.Add(behavor);
host.Opened += delegate
{
Console.WriteLine("CalculatorService已启动服务,按任意键终止服务");
};
host.Open();
Console.Read();
}
}我是看wcf全面解析里面的教程,这个calculatorservice是在类库里面。我怎么能知道那个端口号呢。是不是要把类库发布在IIS,如果是如何发布啊。