Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.33k stars 435 forks source link

No connection could be made because the target machine actively refused it. (localhost:7071) #3337

Open AkGupSky opened 1 year ago

AkGupSky commented 1 year ago

We have an integration test for Az Function which uses Azure Function core tools to run the test in Azure Devops Build pipeline. It use to work day before yesterday but suddenly i am getting an error No connection could be made because the target machine actively refused it. (localhost:7071) below are the task that i am using to run the tests

Failed to load the dll from [C:\npm\prefix\node_modules\azure-functions-core-tools\bin\hostpolicy.dll], HRESULT: 0x800700C1

An error occurred while loading required library hostpolicy.dll from [C:\npm\prefix\node_modules\azure-functions-core-tools\bin]** [AzureCoreToolsInstallationLog.txt] (https://github.com/Azure/azure-functions-core-tools/files/11294976/AzureCoreToolsInstallationLog.txt)

Can anyone help me out with this issue ???

htke1 commented 1 year ago

@AkGupSky Use http:127.0.0.1 instead of localhost, worked for me. I faced this issue while upgrading my azure function core tools from V3 to V4.

fabricciotc commented 9 months ago

@AkGupSky Did you find a solution?