Bug 58273 - Failed to read Mono.Android.dll with debugging symbols.
Summary: Failed to read Mono.Android.dll with debugging symbols.
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 7.1 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-07-20 14:54 UTC by andreaturconi
Modified: 2017-07-25 09:01 UTC (History)
2 users (show)

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


Attachments
Phoneword build output (2.83 MB, text/plain)
2017-07-24 12:08 UTC, andreaturconi
Details


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 or GitHub 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 FIXED

Description andreaturconi 2017-07-20 14:54:42 UTC
Hi,

I'm having this warning while building my application:

Failed to read 'C:\Users\me\documents\visual studio 2017\Projects\Phoneword\Phoneword\Phoneword.Android\obj\Debug\android\assets\Mono.Android.dll' with debugging symbols. Retrying to load it without it.

I searched in the Internet but nothing worked for me.
Can you help me please?
Comment 1 Jon Douglas [MSFT] 2017-07-20 15:18:47 UTC
Hello there!

Do you perhaps have a sample project demonstrating this behavior? What we are specifically after is the .csproj which contains the <DebugType> and <DebugSymbols> elements which can help us pinpoint this issue.

EX:

    <DebugSymbols>True</DebugSymbols>
    <DebugType>Full</DebugType>

Secondly, can you please post your version information so we know what build you are on? In Visual Studio, you can go to Help->About Visual Studio and in Visual Studio for Mac, you can go to Visual Studio For Mac->About Visual Studio For Mac.

If you are currently on 7.1 as per your initial filed version, please ensure to update to the latest Stable version.
Comment 2 andreaturconi 2017-07-21 11:08:59 UTC
Hi Jon

the project is the Xamarin Tutorial one.
(https://developer.xamarin.com/guides/xamarin-forms/getting-started/hello-xamarin-forms/quickstart/)

These are the elements you mentioned:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  <DebugSymbols>true</DebugSymbols>
  <DebugType>full</DebugType>
  <Optimize>false</Optimize>
  <OutputPath>bin\Debug\</OutputPath>
  <DefineConstants>DEBUG;TRACE</DefineConstants>
  <ErrorReport>prompt</ErrorReport>
  <WarningLevel>4</WarningLevel>
</PropertyGroup>


I'm on Visual Studio Community 2017 with these installed products

Microsoft Visual Studio Community 2017 
Version 15.2 (26430.16) Release
VisualStudio.15.Release/15.2.0+26430.16
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Community

Visual Basic 2017   00369-60000-00001-AA208
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA208
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA208
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA208
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.6.00404.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30503.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Hive Query Language Service   2.2.5000.0
Language service for Hive query

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   4.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.2.2.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Visual Studio Tools for Universal Windows Apps   15.0.26430.06
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.5.0.486 (fec6f88)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.3.1.2 (9dbc4c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.10.0.37 (ad35de4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 3 Jon Douglas [MSFT] 2017-07-21 17:50:31 UTC
Hello again!

Based on this sample project, I'm not seeing any warnings appear running on the same build version.

Do you have a screenshot of this warning?

Secondly if you can add a diagnostic build output to this bug report (As a file attachment or gist link), that would be really appreciated!

https://developer.xamarin.com/guides/android/troubleshooting/troubleshooting/#Diagnostic_MSBuild_Output
Comment 4 andreaturconi 2017-07-24 12:08:07 UTC
Created attachment 23750 [details]
Phoneword build output
Comment 5 andreaturconi 2017-07-24 12:08:30 UTC
This sounds weird to me.
Today the build succeed succesfully without any modification...
I really can't explain why.
Anyway the app runs on UWP but it doesen't on Android Emulator.
I attach the build output!
Thanks!
Comment 6 andreaturconi 2017-07-25 09:01:10 UTC
Well, today everything is working.
I swear I have not changed any parameter or code.
What can I say? Thanks a lot to all.
Bye.