I trying to execute exe on ericom server and while trying to save data in database getting following exception:
Detail:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Data.SyntaxErrorException: Syntax error in the expression.
at CUIRBIRiskCalculationUtility.Form1.btnCalculate_Click_1(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3890.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
CUIRBIRiskCalculationUtility
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file://stvfs3/ericomredirected$/sudhiman/Desktop/CUIRBIRiskCalculationUtility.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3835.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3650.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3630.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3835.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3730.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Data.DataSetExtensions
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
While I am trying to run the same exe on my machine it is running fine.
Could you please assist me where it is going wrong.
Related
I've created a VSTO outlook plugin and it works fine when using ClickOnce deployment and installing via Setup.exe generated by ClickOnce. Now, i've used Wix to create an MSI for the same. I'm adding vsto in registry using batch file:
#echo off
setlocal enabledelayedexpansion
%SystemRoot%\system32\reg.exe ADD "HKCU\Software\Microsoft\Office\Outlook\Addins\MyPlugin" /v "FriendlyName" /t REG_SZ /d "MyPlugin"
%SystemRoot%\system32\reg.exe ADD "HKCU\Software\Microsoft\Office\Outlook\Addins\MyPlugin" /v "Manifest" /t REG_SZ /d "file:///C:/Program Files (x86)/MyPlugin/MyPlugin.vsto"
%SystemRoot%\system32\reg.exe ADD "HKCU\Software\Microsoft\Office\Outlook\Addins\MyPlugin" /v "Description" /t REG_SZ /d "MyPlugin"
%SystemRoot%\system32\reg.exe ADD "HKCU\Software\Microsoft\Office\Outlook\Addins\MyPlugin" /v "LoadBehavior" /t REG_DWORD /d 3
endlocal
This registry Key is added as expected when I run the msi.
But when i load the Outlook plugin, it's in Inactive state. The LoadBehavior value turns from 3 to 2. In outlook application, LoadBehavior is Not Loaded. A runtime error ocurred during the loading of the COM Add-in.
The text/issue that is logged in VSTO Log:
Log entry added at 10:20:28 AM:
-----------Caption----------------
Microsoft Office Application Add-In
-----------Message----------------
An add-in could not be found or could not be loaded.
-----------Details----------------
Could not load file or assembly 'MyPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=73e9e1c2746dd019' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly 'MyPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=73e9e1c2746dd019' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
File name: 'MyPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=73e9e1c2746dd019'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.CreateEntryPoint(String entryPointTypeName)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IExecuteCustomization2.LoadEntryPoints(IntPtr serviceProvider)
When I view the EventViewer, there's a VSTO4.0 error
This event is not displayed correctly because the underlying XML is not well formed. Below is the raw text of the event.
4096200x80000000000000265553<User machine name>Customization URI: file:///C:/Program Files (x86)/Common Files/Microsoft Shared/VSTA/Pipeline.v10.0/PipelineSegments.store Exception: Exception reading manifest from
file:///C:/Program%20Files%20(x86)/Common%20Files/Microsoft%20Shared/VSTA/Pipeline.v10.0/PipelineSegments.store: the manifest may not be valid or the file could not be opened.
************** Exception Text ************** System.Deployment.Application.InvalidDeploymentException: Exception reading manifest from
file:///C:/Program%20Files%20(x86)/Common%20Files/Microsoft%20Shared/VSTA/Pipeline.v10.0/PipelineSegments.store: the manifest may not be valid or the file could not be opened. --->
System.Xml.XmlException: '', hexadecimal value 0x01, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e) at
System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar) at
System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at
System.Xml.XmlTextReaderImpl.ParseDocumentContent() at
System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read() at
System.Xml.XsdValidatingReader.Read() at
System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType
manifestType, Uri sourceUri) --- End of inner exception stack trace --- at
Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(
TimeSpan timeout) at
Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn() ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.9151 (WinRelRS6.050727-9100) CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.Runtime.v10.0 Assembly Version: 10.0.0.0 Win32
Version: 10.0.60828.0 CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0/10.0.0.0__b
03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0.dll ----------------------------
------------ System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.9147 (WinRelRS6.050727-
9100) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll -
--------------------------------------- System.Core Assembly Version: 3.5.0.0 Win32 Version:
3.5.30729.9135 built by: WinRelRS6 CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll -------
--------------------------------- Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0 Assembly
Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0/10.0.
0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0.dll ----------------
------------------------ System.AddIn Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.9135
built by: WinRelRS6 CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.AddIn/3.5.0.0__b77a5c561934e089/System.AddIn.dll -----
----------------------------------- Microsoft.Office.Tools.Outlook.v9.0 Assembly Version: 9.0.0.0
Win32 Version: 9.0.30729.7079 CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Outlook.v9.0/9.0.0.0__b03f5f7f11d50a3a
/Microsoft.Office.Tools.Outlook.v9.0.dll ----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0 Assembly Version: 10.0.0.0 Win32 Version:
10.0.60828.0 CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0/10.0.
0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0.dll ----------------
------------------------ System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version:
2.0.50727.9136 (WinRelRS6.050727-9100) CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows
.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32
Version: 2.0.50727.9136 (WinRelRS6.050727-9100) CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll -
--------------------------------------- System.Deployment Assembly Version: 2.0.0.0 Win32 Version:
2.0.50727.9136 (WinRelRS6.050727-9100) CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment
I tried to remove to all items from Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Resiliency\DisabledItems, but still my outlook plugin is not loading.
I spent a lot of time in try different workarounds but none worked. Please help me how to resolve this problem and load the vsto plugin successfully?
I downgraded .NET Framework version from 4.7.2 to 4.6.1 and updated Target Platform & Build Platform from Any CPU to ```x86`` in VS2019. Upon doing this change, I was able to load the Add-in in Outlook.
I know this is kinda old but here is another solution in case this problem keeps happening.
If you create form regions in your Outlook vsto, you need to declare them in the registry here :
Ordinateur\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\FormRegions\IPM.Note
My addin is called "AddinK" so I need to create the regedit key
Ordinateur\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\FormRegions\IPM.Note
in which I add my two form regions called "myname" and "itsname" by creating 2 REG_SZ values called
AddinK.myname
and
AddinK.itsname
with the value
=AddinK
I've one VSTO excel,
if I open the file saved on local drive, it run as expected, right.
But if I copy this file (also all needed files) into a Server Folder I cannot able to open, I get this error:
Why the program run if is on Local and not if is stored on LAN?!?!?
I found on web some supposition about framework, I tried to use 3,7 and also 4.0, into both case the same error.
any suggestion will be appreciate
Thank
************* Testo dell'eccezione **************
Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: La personalizzazione non dispone delle autorizzazioni necessarie per la creazione di un dominio applicazione. ---> System.Security.SecurityException: Impossibile eseguire la funzionalità personalizzata nell'applicazione perché l'amministratore ha impostato file:///P:/Programma/Revi4_Inventory.vsto come non attendibile. Per ulteriori informazioni, contattare l'amministratore.
in Microsoft.VisualStudio.Tools.Office.Runtime.RuntimeUtilities.VerifySolutionUri(Uri uri)
in Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.GetAssemblyDataFromManifests(String solutionLocation, String manifestLocator, String documentName, Boolean showUIDuringDeployment, CustomizationType customizationType, OfficeVersion officeVersion, IHostServiceProvider interopServiceProvider)
in Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, Boolean useFastPath, IntPtr& executor)
--- Fine della traccia dello stack dell'eccezione interna ---
************** Assembly caricati **************
mscorlib
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4121.0 built by: NET48REL1LAST_C
Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Runtime
Versione assembly: 10.0.0.0
Versione Win32: 10.0.40820.0
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll
----------------------------------------
System.Core
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4121.0 built by: NET48REL1LAST_C
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4001.0 built by: NET48REL1LAST_C
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
mscorlib.resources
Versione assembly: 4.0.0.0
Versione Win32: 4.8.3752.0 built by: NET48REL1
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Hosting
Versione assembly: 10.0.0.0
Versione Win32: 10.0.40820.0
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.ServerDocument
Versione assembly: 10.0.0.0
Versione Win32: 10.0.40820.0
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime
Versione assembly: 10.0.0.0
Versione Win32: 10.0.40820.0
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Runtime.resources
Versione assembly: 10.0.0.0
Versione Win32: 10.0.40305.0
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.resources/v4.0_10.0.0.0_it_b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.resources.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.ServerDocument.resources
Versione assembly: 10.0.0.0
Versione Win32: 10.0.40305.0
Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.resources/v4.0_10.0.0.0_it_b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.resources.dll
----------------------------------------
It is not allowed and not supported to run add-ins from network locations. Files should be placed on the local hard drive.
The same limitation exists in Office applications - you can't open or attach a file from a network location. You always need to copy files to the local hard drive first.
I'm unable to found why my app is crashing. I have a weird error condition `idx < t->rows' not met".
This is activated when try to execute a embebed web server (Suave):
let startServer() =
**startWebServerAsync defaultConfig app <--- HERE**
|> snd
|> Async.StartAsTask
|> ignore
However, this work when run in iOS. I reinstall everything and yet it fail.
> am start -n "com.elmalabarista.Sales/md537c0d4a6026eb296b9b34627c676feee.MainActivity"
> Starting: Intent { cmp=com.elmalabarista.Sales/md537c0d4a6026eb296b9b34627c676feee.MainActivity }
Loaded assembly: Sales.Droid.dll
Loaded assembly: Bogus.dll [External]
Loaded assembly: Core.dll
Loaded assembly: FormsViewGroup.dll [External]
Loaded assembly: FSharp.Core.dll [External]
Loaded assembly: Microsoft.Data.Sqlite.dll [External]
Loaded assembly: Newtonsoft.Json.dll [External]
Loaded assembly: Npgsql.dll [External]
Loaded assembly: Serilog.dll [External]
Loaded assembly: Serilog.Sinks.Console.dll [External]
Loaded assembly: Serilog.Sinks.File.dll [External]
Loaded assembly: Serilog.Sinks.RollingFile.dll [External]
Loaded assembly: SQLitePCLRaw.batteries_green.dll [External]
Loaded assembly: SQLitePCLRaw.batteries_v2.dll [External]
Loaded assembly: SQLitePCLRaw.core.dll [External]
Loaded assembly: SQLitePCLRaw.lib.e_sqlite3.dll [External]
Loaded assembly: SQLitePCLRaw.provider.e_sqlite3.dll [External]
Loaded assembly: Suave.dll [External]
Loaded assembly: System.Runtime.CompilerServices.Unsafe.dll [External]
Loaded assembly: System.Threading.Tasks.Extensions.dll [External]
Loaded assembly: Xam.Plugin.WebView.Abstractions.dll [External]
Loaded assembly: Xam.Plugin.WebView.Droid.dll [External]
Loaded assembly: Xamarin.Android.Arch.Core.Common.dll [External]
Loaded assembly: Xamarin.Android.Arch.Lifecycle.Common.dll [External]
Loaded assembly: Xamarin.Android.Arch.Lifecycle.Runtime.dll [External]
Loaded assembly: Xamarin.Android.FSharp.ResourceProvider.Runtime.dll [External]
Loaded assembly: Xamarin.Android.Support.Animated.Vector.Drawable.dll [External]
Loaded assembly: Xamarin.Android.Support.Annotations.dll [External]
Loaded assembly: Xamarin.Android.Support.Compat.dll [External]
Loaded assembly: Xamarin.Android.Support.Core.UI.dll [External]
Loaded assembly: Xamarin.Android.Support.Core.Utils.dll [External]
Loaded assembly: Xamarin.Android.Support.Design.dll [External]
Loaded assembly: Xamarin.Android.Support.Fragment.dll [External]
Loaded assembly: Xamarin.Android.Support.Media.Compat.dll [External]
Loaded assembly: Xamarin.Android.Support.Transition.dll [External]
Loaded assembly: Xamarin.Android.Support.v4.dll [External]
Loaded assembly: Xamarin.Android.Support.v7.AppCompat.dll [External]
Loaded assembly: Xamarin.Android.Support.v7.CardView.dll [External]
Loaded assembly: Xamarin.Android.Support.v7.MediaRouter.dll [External]
Loaded assembly: Xamarin.Android.Support.v7.Palette.dll [External]
Loaded assembly: Xamarin.Android.Support.v7.RecyclerView.dll [External]
Loaded assembly: Xamarin.Android.Support.Vector.Drawable.dll [External]
Loaded assembly: Xamarin.Forms.Core.dll [External]
Loaded assembly: Xamarin.Forms.Platform.Android.dll [External]
Loaded assembly: Xamarin.Forms.Platform.dll [External]
Loaded assembly: Xamarin.Forms.Xaml.dll [External]
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: Java.Interop.dll [External]
Loaded assembly: System.Runtime.dll [External]
Loaded assembly: System.Collections.Concurrent.dll [External]
Loaded assembly: System.Collections.dll [External]
Loaded assembly: System.Reflection.Primitives.dll [External]
[zygote] Not late-enabling -Xcheck:jni (already on)
[zygote] Unexpected CPU variant for X86 using defaults: x86
[zygote] Failed sending reply to debugger: Broken pipe
[zygote] Debugger is no longer active
[monodroid] Creating public update directory: `/data/user/0/com.elmalabarista.Sales/files/.__override__`
[monodroid] Using override path: /data/user/0/com.elmalabarista.Sales/files/.__override__
[monodroid] Trying to load sgen from: /data/user/0/com.elmalabarista.Sales/files/.__override__/libmonosgen-2.0.so
[monodroid] Trying to load sgen from: /storage/emulated/0/Android/data/com.elmalabarista.Sales/files/.__override__/libmonosgen-2.0.so
[monodroid] Trying to load sgen from: /storage/emulated/0/../legacy/Android/data/com.elmalabarista.Sales/files/.__override__/libmonosgen-2.0.so
[monodroid] Trying to load sgen from: /data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libmonosgen-2.0.so
[monodroid] Trying to load sgen from: /data/user/0/com.elmalabarista.Sales/files/.__override__/links/libmonosgen-2.0.so
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=10.0.2.2:50168,embedding=1
[Mono] Image addref mscorlib[0xa32dbf40] -> mscorlib.dll[0xac48be00]: 2
[Mono] Prepared to set up assembly 'mscorlib' (mscorlib.dll)
[Mono] AOT: image 'mscorlib.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-mscorlib.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/x86/mscorlib.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-mscorlib.dll.so" not found
[Mono] Config attempting to parse: 'mscorlib.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/mscorlib/mscorlib.config'.
[Mono] Assembly mscorlib[0xa32dbf40] added to domain RootDomain, ref_count=1
[Mono] Image addref Sales.Droid[0xa32a4120] -> Sales.Droid.dll[0xac48c800]: 2
[Mono] Prepared to set up assembly 'Sales.Droid' (Sales.Droid.dll)
[Mono] Assembly Sales.Droid[0xa32a4120] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'Sales.Droid.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-Sales.Droid.dll.so" not found
Loaded assembly: System.Linq.Expressions.dll [External]
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/x86/Sales.Droid.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-Sales.Droid.dll.so" not found
[Mono] Config attempting to parse: 'Sales.Droid.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/Sales.Droid/Sales.Droid.config'.
[Mono] Image addref Bogus[0xa32a40c0] -> Bogus.dll[0xac48d200]: 2
[Mono] Prepared to set up assembly 'Bogus' (Bogus.dll)
[Mono] Assembly Bogus[0xa32a40c0] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'Bogus.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-Bogus.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/x86/Bogus.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-Bogus.dll.so" not found
......
......
[Mono] Assembly Ref addref Xam.Plugin.WebView.Abstractions[0xa32a4780] -> System.Threading.Tasks[0x8a5b35c0]: 2
[Mono] Assembly Ref addref System.Threading.Tasks[0x8a5b35c0] -> mscorlib[0xa32dbf40]: 53
Loaded assembly: System.Threading.Tasks.dll [External]
[Mono] Assembly Ref addref FSharp.Core[0xa32a4180] -> System.Threading.Tasks[0x8a5b35c0]: 3
[Mono] Assembly Loader probing location: '/usr/local/lib/mono/gac/FSharp.Core.resources/4.4.3.0_en-us_b03f5f7f11d50a3a/FSharp.Core.resources.dll'.
[Mono] Assembly Loader probing location: '/usr/local/lib/FSharp.Core.resources.dll'.
[Mono] Assembly Loader probing location: '/usr/local/lib/mono/gac/FSharp.Core.resources/4.4.3.0_en-us_b03f5f7f11d50a3a/FSharp.Core.resources.exe'.
[Mono] Assembly Loader probing location: '/usr/local/lib/FSharp.Core.resources.exe'.
[Mono] Assembly Loader probing location: 'en-US/FSharp.Core.resources.dll'.
[Mono] Image addref FSharp.Core.resources[0x8a5b4040] -> en/FSharp.Core.resources.dll[0x8a667100]: 2
[Mono] Prepared to set up assembly 'FSharp.Core.resources' (en/FSharp.Core.resources.dll)
[Mono] Assembly FSharp.Core.resources[0x8a5b4040] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'en/FSharp.Core.resources.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-FSharp.Core.resources.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/x86/FSharp.Core.resources.dll.so' not found: dlopen failed: library "/data/app/com.elmalabarista.Sales-VPQSGydqU-zpqC-2Ntc5_Q==/lib/x86/libaot-FSharp.Core.resources.dll.so" not found
[Mono] Config attempting to parse: 'en/FSharp.Core.resources.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/FSharp.Core.resources/FSharp.Core.resources.config'.
Loaded assembly: en/FSharp.Core.resources.dll [External]
[Mono] Assembly Ref addref FSharp.Core[0xa32a4180] -> System.Linq[0xa32a5a40]: 3
[] * Assertion at /Users/builder/jenkins/workspace/xamarin-android-d15-7/xamarin-android/external/mono/mono/metadata/metadata.c:1117, **condition `idx < t->rows' not met**
[libc] Fatal signal 6 (SIGABRT), code -6 in tid 4310 (labarista.Sales), pid 4310 (labarista.Sales)
This are my versions:
Version 7.5.2 (build 40) Installation UUID:
8eb9f5aa-ff7e-48bd-b658-76b0bff55ddc Runtime: Mono 5.10.1.57
(2017-12/ea8a24b1bbf) (64-bit) GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)
Package version: 510010057
NuGet Version: 4.3.1.4445
.NET Core Runtime: /usr/local/share/dotnet/dotnet Runtime Version:
2.0.5 SDK: /usr/local/share/dotnet/sdk/2.1.4/Sdks SDK Version: 2.1.4 MSBuild SDKs:
/Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/Sdks
Xamarin.Profiler Version: 1.6.2 Location: /Applications/Xamarin
Profiler.app/Contents/MacOS/Xamarin Profiler
Apple Developer Tools Xcode 9.2 (13772) Build 9C40b
Xamarin.Mac Version: 4.4.1.193 (Visual Studio Community)
Xamarin.iOS Version: 11.12.0.4 (Visual Studio Community) Hash:
64fece5f Branch: d15-7 Build date: 2018-05-29 20:00:44-0400
Xamarin.Android Version: 8.3.3.2 (Visual Studio Community) Supported
Android versions:
8.1 (API level 27)
SDK Tools Version: 26.1.1 SDK Platform Tools Version: 28.0.0 SDK Build
Tools Version: 27.0.3
Java SDK: /usr java version "1.8.0_131" Java(TM) SE Runtime
Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM
(build 25.131-b11, mixed mode)
Build Information Release ID: 705020040 Git revision:
cfe2fc0566bc4db990242959de40505a13f58352 Build date: 2018-05-30
11:24:18-04 Xamarin addins: 3ac7413ef51a88e06367313c27aec8f7292752a6
Build lane: monodevelop-lion-d15-7
Operating System Mac OS X 10.12.6 Darwin 16.7.0 Darwin Kernel Version
16.7.0
Tue Jan 30 11:27:06 PST 2018
root:xnu-3789.73.11~1/RELEASE_X86_64 x86_64
P.D: Weirdly, it only happened in the emulator. In a real device it not crash.
I saw multiples post/question about it on StackOverflow but about ASP.NET
I am getting the following:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Web.Mvc.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference, Mono.Cecil.ReaderParameters parameters) [0x00099] in /Users/builder/data/lanes/5749/9cfa7836/source/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:229
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference) [0x00000] in /Users/builder/data/lanes/5749/9cfa7836/source/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:179
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver resolver, System.Collections.Generic.ICollection`1[T] assemblies, Mono.Cecil.AssemblyDefinition assembly, System.Boolean topLevel) [0x0015c] in <998d78d5ee6d46b491b77aff8eeaf856>:0
at Xamarin.Android.Tasks.ResolveAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver resolver) [0x001c7] in <998d78d5ee6d46b491b77aff8eeaf856>:0 (NightLine.Droid)
Now the interesting point is that my project isn't an ASP.NET project att all x) So first, what the hell?
I did this video: https://channel9.msdn.com/Shows/XamarinShow/Snack-Pack-15-Upgrading-to-XamarinForms-to-NET-Standard
I upgrated the .NET Standard project to 2.0. My Android target is 8.0 and the compiler as well. I tried to upgrade all of my Xamarin.Android.* packages but no success...
Any idea?
Thanks
I'm trying to do a release build of my Xamarin.Android app in Team Services and have got the following error:
The "LinkAssemblies" task failed unexpectedly.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could
not resolve reference to 'System.Void.Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.
Activity,Android.Net.Uri)' (defined in assembly
'Microsoft.Azure.Mobile.Client, Version=4.0.1.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35') with scope
'Xamarin.Android.Support.CustomTabs, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'. When the scope is different from the defining
assembly, it usually means that the type is forwarded. --->
Mono.Cecil.ResolutionException: Failed to resolve System.Void.Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.Activity,Android.Net.Uri)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext&
context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
--- End of inner exception stack trace ---
at Java.Interop.Tools.Diagnostics.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
I can see that it's probably related to the package Microsoft.Azure.Mobile.Client but not sure what I would have to do to resolve it (I'm quite new to Xamarin so not sure what to do with this information).
My minSdkVersion is 21.
Thanks
It looks like the guys of Microsoft.Azure.Mobile.Client package have problems with Android.Support.CustomTabs library. Please refer to the posted issues on github: Issue 364 and Issue 361. It looks like Microsoft.Azure.Mobile.Client version 4.0.0 can be built against Android.Support.CustomTabs version 25.3.1, but Microsoft.Azure.Mobile.Client version 4.0.1 can be built against Android.Support.CustomTabs version 23.3.0.
In my case downgrading nuget package Microsoft.Azure.Mobile.Client from version 4.0.1 to version 4.0.0 helped to build and link my project.