SDK browser crashes without admin rights

6 posts, 0 answers
  1. Andre
    Andre avatar
    4 posts
    Member since:
    May 2011

    Posted 22 Nov 2011 Link to this post

    Hi,

    I just downloaded and installed the newly released Telerik-OpenAccess SDK (2011.3.1116.3).

    If I start up the SDK as user (no admin rights) I'm getting an error message "Access to path denied" and the SDK browser crashes. I'm attaching the stack trace below.

    II found a related post (Jan 2011) here, stating that is issued will be addressed in upcoming releases:

    http://www.telerik.com/community/forums/orm/getting-started/openaccess-sdk-browser-access-to-the-path-c-program-files-x86-telerik-openaccess-orm-productsdk-temp-is-denied.aspx

    Has this issue been addressed meanwhile?

    Regards
    Andreas

    Stacktrace:

       bei System.IO.FileSystemInfo.set_Attributes(FileAttributes value)
       bei Telerik.Sdk.Browser.Utils.FileSystem.DirectoryCopy(String sourceDirName, String destDirName)
       bei Telerik.Sdk.Browser.Utils.SampleCache.CopyDependencies()
       bei Telerik.Sdk.Browser.App.OnStartup(StartupEventArgs e)
       bei System.Windows.Application.<.ctor>b__0(Object unused)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
       bei System.Threading.ExecutionContext.runTryCode(Object userData)
       bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Windows.Threading.DispatcherOperation.Invoke()
       bei System.Windows.Threading.Dispatcher.ProcessQueue()
       bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       bei System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)
       bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       bei System.Windows.Application.RunInternal(Window window)
       bei Telerik.Sdk.Browser.App.Main()
  2. Serge
    Admin
    Serge avatar
    375 posts

    Posted 25 Nov 2011 Link to this post

    Hello Andreas,

     What you have found in the forum thread was actually an another issue. While you run the application without specifying "Run as administrator" it is UAC aware and requires administrator rights and runs with them (it should ask you for right, if you haven't disabled the UAC notifications). The process that is failing is actually refreshing the assemblies in your sample cache's dependencies folder with the ones that were installed in your install location. 

    As you know when you start an example its contents are copied to a cache folder (by default C:\Users\<your-user-name>\AppData\Local\Telerik.OpenAccess.SDK\Dependencies) and are then compiled and run. Can you double check there aren't any Visual Studio instances that have solutions with references to that dependencies folder. At last you can just delete the dependencies folder and restart the application. 

    Do let us know if that works for you. I am looking forward to resolving this issue with you.

    Greetings,
    Serge
    the Telerik team

    Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

  3. DevCraft banner
  4. Andre
    Andre avatar
    4 posts
    Member since:
    May 2011

    Posted 25 Nov 2011 Link to this post

    Hi Serge,

    I just had a look inside the folder C:\Users\<your-user-name>\AppData\Local\Telerik.OpenAccess.SDK\Dependencies: it is empty on my PC. I just deleted that folder and started the SDK Browser again. The program still crashes.
    Any further idea how to resolve that issue?

    Thanks
    Andreas

  5. Serge
    Admin
    Serge avatar
    375 posts

    Posted 30 Nov 2011 Link to this post

    Hi Andreas,

     Can you give us a bit more detail on your exact setup, operating system, version of the SDK, whether the UAC is turned on. When you run the application as an admin, does this issue still persists? We are trying to  reproduce and study the problem, but so far we haven't had any luck in doing so. 

    I am looking forward to resolving this issue.

    Regards,
    Serge
    the Telerik team

    Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

  6. Andre
    Andre avatar
    4 posts
    Member since:
    May 2011

    Posted 30 Nov 2011 Link to this post

    Hi Serge,

    setup: while encountering the crash, I'm using a domain account that does not have administrative rights.
    operating system: Windows 7 Professional, build 7601: service pack 1
    version of the SDK: I'm using the latest version 2011.3 1116.3 (Nov 16, 2011)
    UAC: if I log in as local user with admin settings, I can see that UAC is turned off
    if I log in as local user with admin settings, I run the SDK successfully.

    Please let me know if you need any further information or action from my side.

    Regards
    Andreas
  7. Serge
    Admin
    Serge avatar
    375 posts

    Posted 02 Dec 2011 Link to this post

    Hi Andreas,

     Thank you for the provided information, we will be further investigating what the real culprit is and let you know in this thread as soon as we know more about it. 

    Best wishes,
    Serge
    the Telerik team

    Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Back to Top
DevCraft banner