I am playing around with MVC and have started setting up an existing site we have built in standard .Net Forms.

I am only including a JS file and as all the requests are being routed via .Net it is trying to compile it.

It is the standard compilation error you would see with invalid c#:

CS1012: Too many characters in character literal

How do you prevent client assets being compiled?

Many thanks