Bug 56402 - Start running the app from Visual Studio fails
Summary: Start running the app from Visual Studio fails
Status: RESOLVED NORESPONSE
Alias: None
Product: Live Player
Classification: Xamarin
Component: General ()
Version: 1.0.253
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-13 19:00 UTC by Reinhard Schuerer
Modified: 2017-11-16 08:59 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Reinhard Schuerer 2017-05-13 19:00:22 UTC
Visual Studio 2017 Preview is paired with my phone (Samsung S7 Edge running Nougat)

When starting a blank Xamarin Forms app in Visual Studio it seems to start debugging but quits after a few seconds.

Sometimes I get the message: "Unable to get MonoDroidStartInfo for project" but most time there is no output at all in Visual Studio or the on the phone.

The only message in the Live Player log on Android

"8:34 PM Connected!
I'm preparing to run your code

which appears after pairing.

As soon as I quit the app Visual Studio shows an error when I try to run the app.
Comment 1 Frank A. Krueger 2017-05-30 23:58:44 UTC
Hello,

Yep sounds like something's gone wrong. Would you please attach Visual Studio logs from:

%localappdata%\Xamarin\Logs\15.0

There should be some labeled "Live" from around the time of this error. With that log we should be able to track down the problem.
Comment 2 Reinhard Schuerer 2017-05-31 00:45:42 UTC
Hello

Here is the log, the problem is the IP address it uses when starting the debugger 30.0.255.117 (this is the internal LTE IP of my device not the WiFi IP)

At first it connects with the correct IP from my WiFi connection (192.168.178.23)


2017-05-31T02:19:50.1328440+02:00~1: Start (TestApp.Android, Samsung SM-G935F Player, )
2017-05-31T02:19:50.1704677+02:00~1: Deploying C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\TestApp.Android.csproj
2017-05-31T02:19:53.1747130+02:00~1: Error while trying to connect directly to the device: System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at Xamarin.Player.Remote.DeviceDeployer.<>c__DisplayClass29_0.<ConnectAsync>b__0() in C:\d\lanes\4856\33bfa206\source\XamarinVS\External\Xamarin.Player.Remote\Source\Xamarin.Player.Remote\DeviceDeployer.cs:line 377
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Player.Remote.DeviceDeployer.<ConnectAsync>d__29.MoveNext() in C:\d\lanes\4856\33bfa206\source\XamarinVS\External\Xamarin.Player.Remote\Source\Xamarin.Player.Remote\DeviceDeployer.cs:line 365
2017-05-31T02:19:53.4588025+02:00~41: Connected to: 192.168.178.23:54130
2017-05-31T02:19:53.4653055+02:00~41: Got device info: Samsung SM-G935F Player
2017-05-31T02:19:53.4683071+02:00~46: Synchronizing files
2017-05-31T02:19:53.5218081+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\TestApp.Android.csproj
2017-05-31T02:19:53.5823517+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\
2017-05-31T02:19:53.6223530+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\App.xaml
2017-05-31T02:19:53.6383537+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\App.xaml.cs
2017-05-31T02:19:53.6443525+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Helpers\
2017-05-31T02:19:53.6493526+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Helpers\MessengingCenterAlert.cs
2017-05-31T02:19:53.6583527+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Helpers\ObservableObject.cs
2017-05-31T02:19:53.6663568+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Helpers\ObservableRangeCollection.cs
2017-05-31T02:19:53.6723561+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Models\
2017-05-31T02:19:53.6773562+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Models\BaseDataObject.cs
2017-05-31T02:19:53.6853596+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Models\Item.cs
2017-05-31T02:19:53.6943587+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Services\
2017-05-31T02:19:53.7023621+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Services\IDataStore.cs
2017-05-31T02:19:53.7093595+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Services\MockDataStore.cs
2017-05-31T02:19:53.7173595+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\TestApp.projitems
2017-05-31T02:19:53.7253604+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\ViewModels\
2017-05-31T02:19:53.7333607+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\ViewModels\AboutViewModel.cs
2017-05-31T02:19:53.7413602+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\ViewModels\BaseViewModel.cs
2017-05-31T02:19:53.7483603+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\ViewModels\ItemDetailViewModel.cs
2017-05-31T02:19:53.7563607+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\ViewModels\ItemsViewModel.cs
2017-05-31T02:19:53.7638646+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\
2017-05-31T02:19:53.7733655+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\AboutPage.xaml
2017-05-31T02:19:53.7878684+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\AboutPage.xaml.cs
2017-05-31T02:19:53.7948692+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\ItemDetailPage.xaml
2017-05-31T02:19:53.8018686+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\ItemDetailPage.xaml.cs
2017-05-31T02:19:53.8088682+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\ItemsPage.xaml
2017-05-31T02:19:53.8178688+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\ItemsPage.xaml.cs
2017-05-31T02:19:53.8278695+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\NewItemPage.xaml
2017-05-31T02:19:53.8358710+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp\Views\NewItemPage.xaml.cs
2017-05-31T02:19:53.8438690+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Assets\
2017-05-31T02:19:53.8498680+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Assets\AboutAssets.txt
2017-05-31T02:19:53.8578687+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\MainActivity.cs
2017-05-31T02:19:53.8648720+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\packages.config
2017-05-31T02:19:53.8723724+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Properties\
2017-05-31T02:19:53.8813857+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Properties\AndroidManifest.xml
2017-05-31T02:19:53.8913856+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Properties\AssemblyInfo.cs
2017-05-31T02:19:53.8973854+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\
2017-05-31T02:19:53.9033863+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\AboutResources.txt
2017-05-31T02:19:53.9113861+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable\
2017-05-31T02:19:53.9183881+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable\slideout.png
2017-05-31T02:19:53.9433870+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-hdpi\
2017-05-31T02:19:53.9553867+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-hdpi\profile_generic.png
2017-05-31T02:19:53.9643897+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-mdpi\
2017-05-31T02:19:53.9723900+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-mdpi\profile_generic.png
2017-05-31T02:19:53.9808932+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-xhdpi\
2017-05-31T02:19:53.9878928+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-xhdpi\profile_generic.png
2017-05-31T02:19:53.9958925+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-xxhdpi\
2017-05-31T02:19:54.0008921+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-xxhdpi\profile_generic.png
2017-05-31T02:19:54.0098937+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-xxxhdpi\
2017-05-31T02:19:54.0158932+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\drawable-xxxhdpi\profile_generic.png
2017-05-31T02:19:54.0238934+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\layout\
2017-05-31T02:19:54.0288923+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\layout\Tabbar.axml
2017-05-31T02:19:54.0358949+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\layout\Toolbar.axml
2017-05-31T02:19:54.0408925+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\Resource.designer.cs
2017-05-31T02:19:54.0618936+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\values\
2017-05-31T02:19:54.0694013+02:00~46: Synchronizing C:\Users\rschu\documents\visual studio 2017\Projects\TestApp\TestApp\TestApp.Android\Resources\values\styles.xml
2017-05-31T02:19:54.0768973+02:00~25: Building and running...
2017-05-31T02:20:01.8752689+02:00~25: Built with 3 messages
2017-05-31T02:20:01.8772699+02:00~1: Build message: Warning: 'Device.OnPlatform<T>(T, T, T)' is obsolete: 'Use switch(RuntimePlatform) instead.'
2017-05-31T02:20:01.8772699+02:00~1: Build message: Warning: 'Device.OnPlatform<T>(T, T, T)' is obsolete: 'Use switch(RuntimePlatform) instead.'
2017-05-31T02:20:01.8772699+02:00~1: Build message: Warning: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
2017-05-31T02:20:02.1163004+02:00~1: Starting debugger for 30.0.255.117:37847
Comment 3 James Montemagno [MSFT] 2017-07-31 18:27:13 UTC
Have you tested out the latest version of the app. It looks like it may have been pulling the wrong IP.

Additionally can you test out "Live Run Current View" to see if it starts without debugging?
Comment 4 James Montemagno [MSFT] 2017-11-16 08:59:30 UTC
Closing due to no response.