Steps to reproduce: 1. Add a form with RadPageView on it 2. Add RadPageViewPage 3. In the designer file there will be the following line: // TODO: Code generation for '' failed because of Exception 'Invalid Primitive Type: System.IntPtr. Consider using CodeObjectCreateExpression.'.