WRF Q2 2012 Demo doesn't start: UnauthorizedAccessException

6 posts, 1 answers
  1. Eliyahu Goldin
    Eliyahu Goldin avatar
    85 posts
    Member since:
    Apr 2007

    Posted 20 Jun 2012 Link to this post

    I upgraded from Q1 2012 to Q2 2012 using the Telerik Control Panel. The upgraded reported no errors. My project seems to be working fine. However, when I am trying to start the Demo application, I and getting a "Stop working" error. Prior to the update, the demo app used to work fine.

    This is what I found in the machine's Event Log:

    Application: WPF Demos.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.UnauthorizedAccessException
    Stack:
       at System.IO.__Error.WinIOError(Int32, System.String)
       at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean)
       at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions)
       at System.IO.StreamWriter.CreateFile(System.String, Boolean)
       at System.IO.StreamWriter..ctor(System.String, Boolean, System.Text.Encoding, Int32)
       at System.IO.StreamWriter..ctor(System.String, Boolean, System.Text.Encoding)
       at System.IO.File.InternalAppendAllText(System.String, System.String, System.Text.Encoding)

  2. Answer
    Biliana Ficheva
    Admin
    Biliana Ficheva avatar
    99 posts

    Posted 20 Jun 2012 Link to this post

    Hello Eliyahu,

    Sorry for the inconvenience. This happens on machines which nave turned on User Account Control.
    In order to start the Demos just right click on the Demos shortcut and select the option "Run as administrator".
    We will do our best to fix this problem in our next releases.

    Kind regards,
    Biliana Ficheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Eliyahu Goldin
    Eliyahu Goldin avatar
    85 posts
    Member since:
    Apr 2007

    Posted 20 Jun 2012 Link to this post

    Thanks, obviously I could've figured it out myself.
  5. Robert
    Robert avatar
    271 posts
    Member since:
    Mar 2011

    Posted 21 Jun 2012 Link to this post

    ah yes I had the same problem. Thank you!
    Run as Admin worked for me.
  6. Anthony Payot
    Anthony Payot avatar
    8 posts
    Member since:
    May 2006

    Posted 27 Jul 2012 Link to this post

    hello

    i'm desktop admin in our company , we have the same issue with WPF Demos and UAC control enabled (our users are not administrator of their workstation)

    we can't wait until Q3 could you provide use a fix or hotfix please ?

    Best regards
  7. Andrey
    Admin
    Andrey avatar
    244 posts

    Posted 01 Aug 2012 Link to this post

    Hello Anthony,

    You could easily avoid the issue by giving everyone full permissions to the Demos folder under the main installation folder.

    Let me know if that helps.

    All the best,
    Andrey
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready