I have a action method which receives IP as parameter.
[HttpGet]
[Route("lookup/{ipAddress}")]
public string Get(string ipaddress)
{
return ipaddress;
}
Problem is when the api is called with IPV6 Compact in parameter ending with :
(colon), the call doesn't reach the action and getting 500 internal server error with no detail.
Works fine with local machine Using VS 2013 but when deploy to Azure as AppService IPV6 gives Internal Server Error.
Already added the requestPathInvalidCharacters
<system.web>
<compilation debug="true" targetFramework="4.5" />
<customErrors mode="Off" />
<httpRuntime targetFramework="4.5" requestPathInvalidCharacters="<,>,*,%,&,\,?" />
</system.web>
And also set the
<modules runAllManagedModulesForAllRequests="true">
Works fine on local IIS and IIS express but when deployed to Azure Website api is not working.