'Send two Way SMS(both SEND and RECEIVE) using Twilio console

I am using local host for this, my question is replying to incoming SMS is not working within my current code.

I have checked the API using postman and I get a 200 Ok message.

[HttpPost]
public TwiMLResult Index()
{
    var messagingResponse = new MessagingResponse();
    messagingResponse.Message("The Robots are coming! Head for the hills!");
    
    return TwiML(messagingResponse);
}

[HttpPost]
public TwiMLResult Index()
{
    var messagingResponse = new MessagingResponse();
    messagingResponse.Message("The Robots are coming! Head for the hills!");

    return TwiML(messagingResponse);
}
  1. Reply to incoming message from mobile phone is Not working
  2. Even I tried to test "http://localhost:52096/SMSi/ReceiveSMS" via Postman is is working, but when I put same URL from running local host (browser) it says "cannot find resource"

Looking forward for your help and answers!

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source