No connection could be made because the target machine actively refused it. With TargetFramework (Windows)

Since i have upgraded mu automation from TargetFramwork (windows - legacy) to (Windows) i have problems with Send E-Mail with the unattended robot. I receive the following error:

Microsoft.Graph.ServiceException: Code: generalException
Message: An error occurred sending the request.
—> System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (login.microsoftonline.com:443) —> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.

I use the muipath.microsoftoffice365.activities 2.0.1 package.
I have checked all my settings but i can’t find the solution for this. When i use the automation with the TargetFramework (windows - Lecagy) everything work fine.

@Nuis_Quintus

Welcome to the community…

Can you please chekc if any firewall is blocking …if you turn off the firewall and check it might help…or atleast add exception to the port and the url used…

This might not be the issue as well as it was working in legacy…but as per exception it looks like the exception can be because of firewalls

Hope this helps

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.