Here is the code of my Azure function created in Azure portal:
#r "D:\home\site\wwwroot\TimerTriggerCSharp1\bin\MobileWebAPI.dll"
using System.Net;
using MobileWebAPI.Controllers;
public static void Run(TimerInfo myTimer, TraceWriter log)
{
PayslipListController.NotifyUsersWithNewPayroll();
}
Error:
Exception has been thrown by the target of an invocation. System: Unable to connect to the remote server. System: An attempt was made to access a socket in a way forbidden by its access permissions to IP host.
The method NotifyUsersWithNewPayroll is calling a POST API.
NotifyUsersWithNewPayrollmethod? I am not sure it's Function's problem. - kamil-mrzyglod