Rad Ribbon Bar causes VB to crash

5 posts, 1 answers
  1. Martin
    Martin avatar
    5 posts
    Member since:
    May 2008

    Posted 19 May 2008 Link to this post

    I'm using the RadRibbonBar with VB 2008.net express edition. I've followed the extra steps to get the ribbon bar to appear in the toolbox and everything seems to be OK. However, recently I find that when I create a new project the ribbon bar works fine until I save the project. Then the application won't start - nothing has changed since the last test other than saving the project. I've tried this out several times, changing different things, and have shown fairly conclusively that it is the saving of the project that causes the problem.

    My test case was to create a new project, add the ribbon bar to the form, run the program. All fine. Save the project, run the program. Failed. All default names were left alone, no changes were made to the ribbon bar or the form.

    This is the error that I get:

    InvalidOperationException was unhandled

    An error occurred creating the form. See Exception.InnerException for details.  The error is: That assembly does not allow partially trusted callers.

    What can I do to fix this? Any suggestions greatfully received.

    Thanks,
    Martin.
  2. Martin
    Martin avatar
    5 posts
    Member since:
    May 2008

    Posted 20 May 2008 Link to this post

    I have an update to this post. I decided to uninstall both the Telerik controls and VB 2008 and start again.

    Now I notice that a standard windows form created in the IDE and run is fine but when I save it and try running it again the title bar says 'Trusted - Form 1 - <machine name>'.

    I still have no idea where to start looking to fix this but feel that it could be related.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 May 2008 Link to this post

    Hi Martin,

    It seems that you there is an issue with permissions.

    I recommend checking the following:

    • Check your user account - is it an administrator or an ordinary user.
    • Check the rights of the folder where you are developing your project. I suggest trying to develop it in the My Documents folder and checking if the problem persist.
    • Ensure that Visual Studio and our controls are installed using the administrative account.

    I hope this helps. If you have additional questions, do not hesitate to contact me.

    Greetings,

    Nikolay
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  5. Martin
    Martin avatar
    5 posts
    Member since:
    May 2008

    Posted 21 May 2008 Link to this post

    Thanks for the reply. I've just managed to work out the cause of my problems - or at least a way around the problems!

    I am an administrative user on the PC, VB and the telerik software was installed using administrative rights. However, the problem seems to be that my installation of VB defaults to being a non-trusted application. To turn this off open the project properties, go to the Security tab and turn on the ClickOnce security settings and I've then selected 'This is a full trust application'.

    Now everything works properly.

    Regards,
    Martin.
  6. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 May 2008 Link to this post

    Hello Martin,

    Thank you for sharing your approach on this matter.

    I am glad to hear that the issue is resolved.

    If you have additional questions, feel free to contact me.

    Sincerely yours,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready