SilverLight中的端口号已更改 [英] Port Number Changed in SilverLight

查看:121
本文介绍了SilverLight中的端口号已更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用VB.NET在SilverLight中工作.在运行代码时,通常会更改服务端口号.所以我在运行sevice.svc和AfterWards时已经在ServiceReferences中配置了服务.有没有办法将服务端口号固定为任何更改

Im working in SilverLight with VB.NET .While running the code ,often service port number be changed. So im running the sevice.svc and AfterWards i have configured the service in the ServiceReferences.Is thers any way to fix the service port number not to any change

推荐答案

I假设您的意思是Visual Studio项目中的端口号.如果是这样,则很容易解决(对于VS2010,但2008类似):
I assume you mean the port number in a visual studio project. If so this is easy to fix (For VS2010, but 2008 is similar):

  1. 右键单击宿主项目
  2. 选择属性"
  3. 选择"Web选项卡"
  4. 使用Visual Studio开发服务器"选项将选择,自动分配端口"将选择特定端口"代替

  1. Right-click the host project
  2. Select "Properties"
  3. Select the "Web Tab"
  4. The "Use Visual Studio Development Server" option will be selected, as will "Auto Assign Port" choose "Specific Port" instead



请注意,您必须为要为其分配特定端口的每个主机项目分配一个不同端口,因为它们都不能同时侦听同一端口时间(尽管对于您的问题,该项目的端口将保持不变).此外,这些设置的实际使用将有所不同,因此在此处使用时请记住:)



Note you will have to assign a different port for each host project you want to assign a specific port to as they all can''t listen on the same one at the same time (though the port will stay the same for the project as you wanted in your question). Also, these settings will be different to live so bear that in mind when you use it there :)


这篇关于SilverLight中的端口号已更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆