I was coding some Tridion TOM.NET stuff recently, when I got the by now infamous error "The type or namespace name XXX does not exist in the namespace YYY... are you missing an assembly reference?".
Obviously, I had the 'using' statement in place and also the correct reference to the assembly. So what could cause the compilation error?
It turned out the culprit was the .NET framework I was using: .NET Framework 4 Client Profile. Changing it to .NET Framework 4 solved it!
So go to your project's properties, tab Application, drop-down Target Framework and do the right thing ;)
Obviously, I had the 'using' statement in place and also the correct reference to the assembly. So what could cause the compilation error?
It turned out the culprit was the .NET framework I was using: .NET Framework 4 Client Profile. Changing it to .NET Framework 4 solved it!
So go to your project's properties, tab Application, drop-down Target Framework and do the right thing ;)
Comments