If you are using Cassette 2, you need to add the following line to your web.config
file:
<cassette rewriteHtml="false" />
This will solve this issue, and also make the development web server happy.
That solution was found on the following Github thread.