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

VS designer doesn't generate designer code

5 Answers 413 Views
Visual Studio Extensions
This is a migrated thread and some comments may be shown as answers.
RAG
Top achievements
Rank 1
RAG asked on 09 Oct 2012, 09:00 PM
Dear Telerik-team,

we are developing a research software with your Telerik for WinForms product.

For some days my colleague and I do get this irritating error. VS doesn't let us change anything in our UI anymore, we can add or remove things in the design view, but VS doesn't generate the code for the UI-elements in the corresponding blabla.Designer.cs. Whenever we try to build our solution we do get this - kind of pre-compile -  message boxes with "object reference not set to an instance of an object", but without any further error information. The message box appears several times, before anything is written into the console. No error is reported there, the solution builds, the UI pops up, but all changes made are not visible. Not to mention that there is no code inside the blabla.Designer.cs for the added UI-elements (which are still visible in the design view).

We re-installed Telerik for WinForms and even VS, but nothing helped. Sadly I can't say any more, when the error appeared first, but I've read posts in your forums describing errors similar to mine. It seems that it has to do with the localization we do via resx.files. We also use several Telerik-UI-elements like the TabStrip, ToolWindows, Grid, Dock and so on. I reduced the solution so that it only contains one project and also removed many functionality from that project, but the error still occurs.

Do you have any common hints to fix a problem like that? Is this a known localization problem?

Thank you in advance, if needed I can also send you the reduced solution.

Best regards!
Fabian Schick

5 Answers, 1 is accepted

Sort by
0
RAG
Top achievements
Rank 1
answered on 10 Oct 2012, 07:12 AM
I didn't know under which category this thread should be settled, because I wasn't able to find out where the problem comes from. If I chose the wrong forum, please move the thread to the right one. :)
0
RAG
Top achievements
Rank 1
answered on 11 Oct 2012, 08:49 AM
Can you give me some feedback please, because this issue is obviously blocking my whole work - again... I am not able to make any changes to the UI right now.

Does it make sense to rebuild the UI, or will I run into the same problems again? Is this a known issue? I inherited this problem from my colleague. I never ran into something like this before so please help me!
0
Teodor
Telerik team
answered on 11 Oct 2012, 12:42 PM
Hi Fabian,

 The issue you described may be caused by missing or non-matching Design assemblies which are required for proper designtime support. I suggest following through the related support article to try fix the issue.

Don't hesitate to write if you require further assistance.

Regards,
Teodor
the Telerik team
You’ve been asking for it and now it’s time for us to deliver. RadControls for WinForms Q3 2012 release is just around the corner. Sign up for a free webinar to see first all the latest enhancements.
0
RAG
Top achievements
Rank 1
answered on 11 Oct 2012, 02:37 PM
Hi Teodor!

Thanks a lot for the hint - I'll try it out tomorrow.

Regards
Fabian
0
RAG
Top achievements
Rank 1
answered on 22 Oct 2012, 01:54 PM
Hi, :)

Q3 2012 did fix the problem! Thank you very much for your help!

Regards!
Fabian
Tags
Visual Studio Extensions
Asked by
RAG
Top achievements
Rank 1
Answers by
RAG
Top achievements
Rank 1
Teodor
Telerik team
Share this question
or