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

SDK browser crashes without admin rights

5 Answers 61 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andre
Top achievements
Rank 1
Andre asked on 22 Nov 2011, 12:13 PM
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()

5 Answers, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 25 Nov 2011, 09:32 AM
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!

0
Andre
Top achievements
Rank 1
answered on 25 Nov 2011, 09:42 AM
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

0
Serge
Telerik team
answered on 30 Nov 2011, 09:20 AM
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!

0
Andre
Top achievements
Rank 1
answered on 30 Nov 2011, 09:44 AM
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
0
Serge
Telerik team
answered on 02 Dec 2011, 04:55 PM
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!

Tags
Getting Started
Asked by
Andre
Top achievements
Rank 1
Answers by
Serge
Telerik team
Andre
Top achievements
Rank 1
Share this question
or