When i run silverlight 4 application with the developer server, it seems to use a default port as localhost port 1091. How do i开发者_如何转开发 change to a different port?
You can set this in the web project settings.
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. Select "Specific port" and enter the value you want.
In VS2008:
In VS2010 the tabs have been reordered:
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.
Or take a look here:
How to: Specify a Port for the ASP.NET Development Server
精彩评论