Reputation: 6056
I need to get the site name and port number of the IIS sites in the Silverlight Application. How to get that?
Upvotes: 1
Views: 197
Reputation: 189457
You should be able to get this info from Application.Current.Host.Source
string server = Application.Current.Host.Source.Host;
int port = Application.Current.Host.Source.Port;
Upvotes: 3