The reason why you are getting this error is because you are using Visual Studio in debugger mode while having chrome debugging window already opened.
There are two ways to fix this error :
1- Close any previous opened chrome debugging windows. Or
Go to Tools > Options > Debugging > General and uncheck the
(Chrome and IE)