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

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

<p>It is the standard compilation error you would see with invalid c#:</p>

<p>CS1012: Too many characters in character literal</p>

<p>How do you prevent client assets being compiled?</p>

<p>Many thanks</p>

I have resolved my problem. I had the script tag in my Master Page with a runat="server" in the declaration. This then made .NET try and compile the included JavaScript file?? I have done this quite happily in .NET 2.0 without problems.