NGWS runtime targeted code requires '#using <mscorlib.dll>' and /com+
You are using Managed Extensions for C++ constructs and the /com+ compiler option, but you did not explicitly include Mscorlib.dll.
The following sample generates C1190:
// uncomment the following line to resolve error // #using <mscorlib.dll> __gc class A { }; void main() { }