简体   繁体   English

Silverlight端口

[英]Silverlight port

当我使用开发人员服务器运行silverlight 4应用程序时,它似乎使用默认端口作为localhost端口1091.如何更改为其他端口?

You can set this in the web project settings. 您可以在Web项目设置中进行设置。

Right click over the project to bring up the settings. 右键单击项目以显示设置。 Go to the Web tab and there under "Servers" is an option to either Auto-assign the port or set a specific port. 转到Web选项卡,“服务器”下的选项可以自动分配端口或设置特定端口。 Select "Specific port" and enter the value you want. 选择“特定端口”并输入所需的值。

In VS2008: 在VS2008中:

设置特定端口

In VS2010 the tabs have been reordered: 在VS2010中,选项卡已重新排序:

替代文字

but all the actual settings are the same 但所有实际设置都是一样的

In the properties window on the website, there is an option to assign it as dynamic or choose a fixed port called "Use dynamic port", set this to false and then choose your port number. 在网站的属性窗口中,有一个选项可将其指定为动态或选择一个名为“使用动态端口”的固定端口,将其设置为false,然后选择您的端口号。

Or take a look here: 或者看看这里:

How to: Specify a Port for the ASP.NET Development Server 如何:为ASP.NET Development Server指定端口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM