This is a migrated thread and some comments may be shown as answers.

Help with error: Code Generation for property 'Value' failed...

1 Answer 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tammy
Top achievements
Rank 1
Tammy asked on 26 Apr 2014, 05:30 PM
Hello.  In Telerik Reporting, when I edit in the design file and save, I've recently started getting this error often:  Code generation for property 'Value' (and sometimes 'StyleName') failed.  Object reference not set to an instance of an object.

I'd made considerable changes to a designer file yesterday, and when I did a Get Latest in VS, it forced me to merge manually to resolve some conflicts.  As I was comparing the server version to my version of the designer.cs file, I found some 20+ controls were missing this line:  this.SomeControl.Value = "";   And, one this.SomeControl.StyleName = "";  I have no idea why all those would be missing???  Any idea what I could be doing to cause that?

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 30 Apr 2014, 03:35 PM
Hello Tammy,

We are not sure what could be the reason for the described behavior given the provided information. However, not that it is not recommended to modify the ​.Designer.cs​ file of the report, as noted in the comments there:
/// <summary>
/// Required method for telerik Reporting designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
...

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Tammy
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or