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

AppBuilder "Run in Simulator" throws exception

3 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 17 Mar 2015, 07:24 PM
I'm evaluating Kendo UI Mobile for Phone Gap and the AppBuilder Plugin for Visual Studio.  

I've unable to run my test application using "Run in Simulator".  I get the error (at the end of this post) while the status bar just spins with the message "Launching Simulator....".

I've also tried the stand alone AppBuilder and I get the same results.
I've tried opening Visual Studio running as Administrator .
I've given Full Permissions to Everyone for the "C:\ProgramData\XDMessagingv4" path.
The test app I created can be built in the cloud and works on the AppBuilder companion app on my device (iPhone 6) correctly.
I'm currently on a 30 Day trial account if this makes a difference.

Please advise.

[2015-03-17 14:50:49.714] Log (Info,Medium): The user 'xxxxxxxx' logged in to Telerik Platform.
[2015-03-17 14:50:51.248] Log (Info,Medium): Account with sufficient subscription found. Switching to account xxxxxxxx...
[2015-03-17 14:50:51.915] Log (Info,Medium): Switched to account xxxxxxxx.
[2015-03-17 14:51:05.220] Log (Exception,High): System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\XDMessagingv4\14296IceSimulatorConfig\acf6bfa5-6357-418e-8b26-5e88bc6d3fc1.msg' is denied.

Server stack trace: 
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append)
   at System.IO.File.CreateText(String path)
   at XDMessaging.Transport.IOStream.XDIOStreamBroadcaster.SendToChannel(String channelName, String dataType, String message)
   at XDMessaging.Transport.IOStream.XDIOStreamBroadcaster.SendToChannel(String channelName, String message)
   at Telerik.BlackDragon.Client.Services.Implementation.CommunicationService.SendMessage(String channelName, String message)
   at Telerik.BlackDragon.Client.Mobile.Simulator.Services.SimulatorService.<RunSimulatorAsync>d__2.MoveNext()

Exception rethrown at [0]: 
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Telerik.BlackDragon.Client.Simulator.RunInSimulatorMenuCommandBase.<RunSimulatorAsync>d__0.MoveNext()

3 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 18 Mar 2015, 03:34 PM
Hi Mike,

Thank you for contacting us.
We have never seen such error before and therefore I would ask you to provide some more details about your OS. This way we could try to replicate it on our side.

In the meantime, check whether your user has administration privilege and delete "C:\ProgramData\XDMessagingv4" folder as a solution attempt.

Furthermore try whether deleting %localappdata%\Telerik\BlackDragon\Cache folder helps.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Mike
Top achievements
Rank 1
answered on 18 Mar 2015, 05:30 PM
I tried all of the solutions you gave but none of them worked.

After some more investigation I found the issue.  It turns out that McAfee VirusScan (Enterprise Edition in my case) was preventing the simulator from launching.  

There were no errors, warnings, or messages in any of the logs; Event Viewer, Visual Studio, Telerik, Icenium, McAfee, or any other logs I could find.  The simulator would just not launch.  Once I uninstalled McAfee VirusScan the simulator works perfectly.

Is there a way for McAfee VirusScan and AppBuilder to work together?
0
Zdravko
Telerik team
answered on 19 Mar 2015, 10:22 AM
Hi Mike,

Thank you very much for sharing your finding with us.
We didn't know about this "incompatibility". One option you can try is to whitelist "C:\ProgramData\XDMessagingv4" folder in the antivirus tool but we can't be sure that another folder or file won't get locked too.
We have tried various antivirus tools and none of them caused such issue.

If the whitelisting doesn't help maybe would be a good idea to report the case to McAfee and in the meantime try another protection tool.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Mike
Top achievements
Rank 1
Share this question
or