Auto wifi connect with auto vpn

Hello everyone. Problem has been formed when it is automatically connected to WiFi when the option to this connection is selected; automatic connection VPN. Connection Not connected Writes Connection failed, at the same time, when you manually connect the click on WiFi to which you need to connect everything works, I suggest that in an automatic connection, the VPN try to connect forward WiFi and is collapsed with the collapse how to solve this problem?

Sorry, your English is hard to understand. Could you perhaps reformulate it or add screenshots?