Code generation for property 'SecurityManager' failed. Error was: 'Object reference not set to an instance of an object.'