Mohan Kumar
Mohan Kumar

Reputation: 6056

Accessing IIS site information in Silverlight

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

Answers (1)

AnthonyWJones
AnthonyWJones

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

Related Questions