Example Code Full Of Errors

7 posts, 0 answers
  1. Martin Hamilton
    Martin Hamilton avatar
    18 posts
    Member since:
    Aug 2009

    Posted 22 Feb 2014 Link to this post

    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.
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 24 Feb 2014 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin Hamilton
    Martin Hamilton avatar
    18 posts
    Member since:
    Aug 2009

    Posted 24 Feb 2014 Link to this post

    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.
  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 24 Feb 2014 Link to this post

    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
  6. Martin Hamilton
    Martin Hamilton avatar
    18 posts
    Member since:
    Aug 2009

    Posted 25 Feb 2014 in reply to Stefan Link to this post

    Thank you - I will try this out a bit later today!  :)
  7. Martin Hamilton
    Martin Hamilton avatar
    18 posts
    Member since:
    Aug 2009

    Posted 25 Feb 2014 in reply to Martin Hamilton Link to this post

    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
  8. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 26 Feb 2014 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready