This short post shows you a tip of resolving the error “The target principal name is incorrect. Cannot generate SSPI context.”.
The normally happen when you are connecting to SQL Server remotely using Windows Authentication. If you search on the Internet for this error messages then you are very likely to get this link https://support.microsoft.com/en-us/help/811889/how-to-troubleshoot-the-cannot-generate-sspi-context-error-message.
This link explain everything in details but too details till you might not know where to start.
For me to resolve this, I ensure my DNS is pointing to the DNS server that the Domain Controller is pointing to. Well you will say the DNS that the Domain Controller is pointing to may not be able to access to some of the web site. You can either ask your admin to too the sites into the DNS server. Alternatively, you can point to the DNS that you like to till the error reoccur.