I’ve developed a Web application in ASP.net web Forms (.net v4.0) which uses the REST API. The problem we are facing is that when we run the application on the developer machine everything works great but when we deploy the same application on the Windows Server 2008R2, the process of creating a sub account and buying a new twilio number for the newly created sub account does not completes. Only sub account gets created but no new number. If you could help me to get this problem fixed, I will really appreciate this. The code is as following:
ArrayList AccountInformation = new ArrayList();
var client = new Twilio.TwilioRestClient(this.ParentAccountSid, this.ParentAuthToken);
var subaccount = client.CreateSubAccount(email);
var subaccountClient = new Twilio.TwilioRestClient(subaccount.Sid, subaccount.AuthToken);
var number = subaccountClient.AddIncomingPhoneNumber(new Twilio.PhoneNumberOptions() { AreaCode = "412" } );
AccountInformation.Add(number.PhoneNumber.ToString());
AccountInformation.Add(subaccount.AuthToken.ToString());
AccountInformation.Add(subaccount.Sid.ToString());
AccountInformation.Add(subaccount.Uri.ToString());
Also, any specific changes/installation on the web server machine required, please do tell.
Thanks
The new release fixed our problem