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

Example Code Full Of Errors

6 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 23 Feb 2014, 03:25 AM
I've had nothing but difficulty trying to compile the examples available for UI Winforms.  It's so full of errors that most times one cannot even open a form without getting the Designer Error page.

Is anyone else having this issue?  It seems as if Telerik doesn't even try to load their own demo examples on a clean build machine before deploying them.

If anyone knows the secret to getting the examples to compile, I'd appreciate a tip or two.

6 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Feb 2014, 08:32 AM
Hello Martin,

Thank you for writing. 

Can you please share with us which examples are you referring to? What are you starting them from and what is the version of the suite you have installed so we can check this case.

Thank you in advance for your time and cooperation.

Regards,
Stefan
Telerik
0
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 24 Feb 2014, 11:33 AM
Hi, thanks for your reply to this..
I'm using the lasted version of the UI For Winforms controls and I downloaded what I believe is the latest version of the examples from the source code location under my account.  If I have downloaded the wrong version (I don't think I have but it is possible I suppose) please point me in the right direction.

As you can see from the png I uploaded with this post - there are 9000+ errors mentioned - hours of work to try to fix them would be required just to get the examples running.

It has taken me quite a bit of investigation and investment in time just to get one or two sub-projects working - and even  then with great difficulty - for example, by creating an entirely new solution and copying and pasting the files from the telerik solution into the new solution.

Nine times out of 10, one cannot even open a form without getting the typical VS page saying the form cannot be displayed.  And they certainly won't run with so many errors being detected.

I have attempted to run them with both VS 2010 and VS 2013 to no avail.

Any assistance would be appreciated.  I like the controls but having to wade through the mire of errors just to quickly view an example and get on with my work is brutal to say the least.
0
Stefan
Telerik team
answered on 24 Feb 2014, 02:30 PM
Hello Martin,

Thank you for the additional information provided.

If you just want to look at the source code of our examples, you do not need to download the source for the entire suite. With the installation of the suite we also deploy a solution containing all examples from our demo application(s). You can open these solutions from your Start Menu (Start Menu > All Programs > Telerik > UI for WinForms > Examples > C#/VB for Visual Studio 2010). The demo application solution is called: Open C#/VB Demo Application in Visual Studio - UI for WinForms.

All these are available in the Telerik folder in Program Files (C:\Program Files (x86)\Telerik\UI for WinForms Q3 2013\Examples) as well.

Now, to the errors you got. I have installed the Q3 2013 SP2 suite on a clean machine and I have downloaded and extracted the source code to the same path as yours and I got some about 88 errors (different than yours). The errors on my end were caused because the file tree in our solution is quite deep, while Windows supports up to ~260 symbols path, so files with longer path were omitted. Once I extracted the source to C:\WinForms\ instead of the path you used I was able to build the source with no issues. Please give this approach a try. 

I hope this helps. 

Regards,
Stefan
Telerik
0
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 25 Feb 2014, 02:26 PM
Thank you - I will try this out a bit later today!  :)
0
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 25 Feb 2014, 08:25 PM
Thank you for your help!  That worked.  I just wish that I had known that I needed to unzip the files to C:\WinForms it would have saved me a lot of trouble.  I'm sure I didn't see that mentioned anywhere either. 

Doesn't matter now since I now know it, but hope this also helps others who were unaware of this 'tip'.

Thanks for you help
0
Stefan
Telerik team
answered on 26 Feb 2014, 08:37 AM
Hi Martin,

I am glad everything is now OK on your end. In fact, this is a limitation of Windows. When you extract the files in a deeper directory you will get an error for longer path. However, I found that if you extract it in a shorter path and them you move it to a longer one, an error will not be shown, hence the behavior you experience. 

I hope that you find this information useful.

Regards,
Stefan
Telerik
Tags
General Discussions
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or