How?
I only saw hostHeader in ServiceDefinition.csdef Bindings Section.
Where do I put IP?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not possible to add a binding to 127.0.0.1 in your ServiceDefinition.csdef file. Instead, you’ll have to add a binding node to the appropriate site section of D:\Windows\System32\inetsrv\config\applicationHost.config.
You could do this in two ways:
Use the Microsoft.Web.Administration assembly to alter the applicationHost.config. For example you could add the following code to the OnStart method of your RoleEntryPoint derived class:
Use D:\Windows\System32\inetsrv\appcmd.exe to alter applicationHost.config in a startup task (see this link).
Out of curiosity, why do you want to add the 127.0.0.1 binding to your web role?