What version is your .NET framework? ASP.NET MVC3 run-time components require .NET Framework version 4, so this may be the source of your problems.
In general: Compiler Error CS0656 can be caused by the following problems:
1. Your installation of the common language runtime is corrupt.
2. You have a reference to an assembly that defines a type that is also found in the common language runtime. However, your assembly's type is not defined the way the C# compiler expects.
So check your references to ensure that you are using the correct version of the common language runtime.
Sporadic error when saving Razor files
I get the following error sporadically when saving Razor files.
I've researched this and think it might be related to the Microsoft.Scripting.dll
I've removed it from the bin and the error goes away, but then xlst breaks.
There error eventually comes back so I put the assembly back in the bin and the error goes away again.
I'm running 4.7. I upgraded from 4.0.3 months ago. Everything was running fine until I started using Razor.
HELP!
i found a similar thread about it http://our.umbraco.org/forum/developers/razor/19151-Save-error maybe it will help you
What version is your .NET framework? ASP.NET MVC3 run-time components require .NET Framework version 4, so this may be the source of your problems.
In general: Compiler Error CS0656 can be caused by the following problems:
1. Your installation of the common language runtime is corrupt.
2. You have a reference to an assembly that defines a type that is also found in the common language runtime. However, your assembly's type is not defined the way the C# compiler expects.
So check your references to ensure that you are using the correct version of the common language runtime.
Running 4.7 on .Net 4.0 (required).. been running 4.0 for over a year.
Error happens when I update 3rd party assemblies (i.e. install a package)
Error goes away if I increment the client dependancy version
Go figure..!?
Anyone have a solution or at least a reason for this happening?
is working on a reply...