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.
Related
At some point today, between fiddling with .NET 7 on my project and reverting it back to .NET 6, my debug loading time for Android has increased. When VS is done doing its thing and it throws the app over to the emulator, the emulator hangs for about a minute on the splash screen of my app, the VS status bar says "XAML Hot Reload initializing...", and the Output window shows it loading all sorts of assemblies.
The way it acted before was, it would spend about 5-10 seconds on the splash screen.
I tried Googling for an answer and fast deployment came up, but I can't seem to find that option anywhere.
I had made a backup to my GitHub last night, so I pulled that, but I still get the same symptoms, leading me to believe there's a setting in VS somewhere.
Any ideas out there?
Edit:
It's failing to load a lot of the assemblies, here's an excerpt from the Output window:
19:38:43:988 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Loader.dll
19:38:43:988 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Xamarin.AndroidX.Loader.dll [External]
19:38:44:270 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Compatibility.dll
19:38:44:270 [monodroid-assembly] open_from_bundles: failed to load assembly Plugin.LocalNotification.dll
19:38:44:477 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Microsoft.Maui.Controls.Compatibility.dll [External]
19:38:44:632 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Plugin.LocalNotification.dll [External]
19:38:44:985 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CoordinatorLayout.dll
19:38:45:010 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Xamarin.AndroidX.CoordinatorLayout.dll [External]
19:38:45:601 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.LiveData.Core.dll
19:38:45:618 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
19:38:45:723 [ftworks.budgif] Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
19:38:45:725 [ftworks.budgif] Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
19:38:45:788 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.UI.dll
19:38:45:789 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.Fragment.dll
19:38:45:789 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.Common.dll
19:38:45:796 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.Kotlin.StdLib.dll
19:38:45:859 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Xamarin.AndroidX.Navigation.UI.dll [External]
19:38:45:876 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Xamarin.AndroidX.Navigation.Fragment.dll [External]
19:38:46:172 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Xamarin.AndroidX.Navigation.Common.dll [External]
19:38:46:653 Loaded assembly: /data/data/com.prometheansoftworks.myapp/files/.__override__/Xamarin.Kotlin.StdLib.dll [External]
Edit 2:
I did a new project. Before the emulator starts, output window has:
16:30:52:881 > am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.ugg/crc642c019dd32d8d358c.MainActivity"
16:30:52:996 > Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.ugg/crc642c019dd32d8d358c.MainActivity }
16:30:53:646 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Ugg.dll
While the emulator is loading the new app:
16:30:55:053 [companyname.ug] Late-enabling -Xcheck:jni
16:30:55:053 [companyname.ug] Unexpected CPU variant for X86 using defaults: x86_64
16:30:55:053 [CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10107; state: ENABLED
16:30:55:053 [GraphicsEnvironment] ANGLE Developer option for 'com.companyname.ugg' set to: 'default'
16:30:55:053 [GraphicsEnvironment] Neither updatable production driver nor prerelease driver is supported.
16:30:55:053 [NetworkSecurityConfig] No Network Security Config specified, using platform default
16:30:55:053 [NetworkSecurityConfig] No Network Security Config specified, using platform default
16:30:55:053 [debug-app-helper] Checking if libmonodroid was unpacked to /data/app/~~dc_k1QI1zDfTGXUHfSXVSw==/com.companyname.ugg-LIodHf5CoLdLXZOW2fa8pg==/lib/x86_64/libmonodroid.so
16:30:55:053 [debug-app-helper] Native libs extracted to /data/app/~~dc_k1QI1zDfTGXUHfSXVSw==/com.companyname.ugg-LIodHf5CoLdLXZOW2fa8pg==/lib/x86_64, assuming application/android:extractNativeLibs == true
16:30:55:054 [debug-app-helper] Setting up for DSO lookup in app data directories
16:30:55:054 [debug-app-helper] Added filesystem DSO lookup location: /data/app/~~dc_k1QI1zDfTGXUHfSXVSw==/com.companyname.ugg-LIodHf5CoLdLXZOW2fa8pg==/lib/x86_64
16:30:55:054 [debug-app-helper] Using runtime path: /data/app/~~dc_k1QI1zDfTGXUHfSXVSw==/com.companyname.ugg-LIodHf5CoLdLXZOW2fa8pg==/lib/x86_64
16:30:55:054 [debug-app-helper] checking directory: `/data/user/0/com.companyname.ugg/files/.__override__/lib`
16:30:55:054 [debug-app-helper] directory does not exist: `/data/user/0/com.companyname.ugg/files/.__override__/lib`
16:30:55:054 [debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.companyname.ugg/files/.__override__/libmonosgen-2.0.so
16:30:55:054 [debug-app-helper] Checking whether Mono runtime exists at: /data/app/~~dc_k1QI1zDfTGXUHfSXVSw==/com.companyname.ugg-LIodHf5CoLdLXZOW2fa8pg==/lib/x86_64/libmonosgen-2.0.so
16:30:55:054 [debug-app-helper] Mono runtime found at: /data/app/~~dc_k1QI1zDfTGXUHfSXVSw==/com.companyname.ugg-LIodHf5CoLdLXZOW2fa8pg==/lib/x86_64/libmonosgen-2.0.so
16:30:55:054 [companyname.ug] Attempt to remove non-JNI local reference, dumping thread
16:30:55:054 [DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
16:30:55:054 [monodroid] Creating public update directory: `/data/user/0/com.companyname.ugg/files/.__override__`
16:30:55:054 [companyname.ug] Attempt to remove non-JNI local reference, dumping thread
16:30:55:054 [monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=10.0.2.2:53899,embedding=1
16:30:55:054 [monodroid-assembly] open_from_bundles: failed to load assembly Ugg.dll
16:30:55:054 [monodroid-gc] GREF GC Threshold: 46080
16:30:55:054 [monodroid-assembly] open_from_bundles: failed to load assembly Mono.Android.dll
16:30:55:054 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.dll
16:30:55:054 [monodroid-assembly] open_from_bundles: failed to load assembly Java.Interop.dll
16:30:55:054 [monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.dll
16:31:01:259 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Mono.Android.dll [External]
16:31:01:280 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.dll [External]
16:31:01:345 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Java.Interop.dll [External]
16:31:01:384 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Collections.dll [External]
16:31:01:399 Resolved pending breakpoint for 'Android.Runtime.JNIEnv.RegisterJniNatives(System.IntPtr, System.Int32, System.IntPtr, System.IntPtr, System.Int32)' to /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnv.cs:124 [0x00000].
16:31:01:408 [monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.dll
16:31:01:434 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Threading.dll [External]
16:31:01:468 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.InteropServices.dll
16:31:01:486 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.InteropServices.dll [External]
16:31:01:507 [monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.Thread.dll
16:31:01:508 [monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.StackTrace.dll
16:31:01:524 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Threading.Thread.dll [External]
16:31:01:544 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Diagnostics.StackTrace.dll [External]
16:31:01:570 [companyname.ug] Attempt to remove non-JNI local reference, dumping thread
16:31:01:825 Loaded assembly: data-0x7bdd9325d020 [External]
16:31:01:841 Loaded assembly: data-0x7bdd9327d040 [External]
16:31:01:896 Loaded assembly: data-0x7bde39db0e70 [External]
16:31:02:048 [monodroid-assembly] open_from_bundles: failed to load assembly netstandard.dll
16:31:02:084 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/netstandard.dll [External]
16:31:02:119 [monodroid-assembly] open_from_bundles: failed to load assembly System.Linq.dll
16:31:02:141 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Linq.dll [External]
16:31:02:162 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
16:31:02:162 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
16:31:02:171 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
16:31:02:171 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
16:31:02:172 [monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.Concurrent.dll
16:31:02:199 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Collections.Concurrent.dll [External]
16:31:02:236 Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:423 [0x00000].
16:31:02:243 [monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Json.dll
16:31:02:351 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Text.Json.dll [External]
16:31:02:354 [monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Encodings.Web.dll
16:31:02:376 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Text.Encodings.Web.dll [External]
16:31:02:390 [monodroid-assembly] open_from_bundles: failed to load assembly System.ComponentModel.dll
16:31:02:406 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.ComponentModel.dll [External]
16:31:02:579 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.dll
16:31:02:579 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
16:31:02:579 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
16:31:02:957 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Maui.Controls.dll [External]
16:31:02:966 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
16:31:02:966 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
16:31:02:977 [monodroid-assembly] open_from_bundles: failed to load assembly System.ObjectModel.dll
16:31:02:978 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.dll
16:31:03:001 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.ObjectModel.dll [External]
16:31:03:136 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Maui.dll [External]
16:31:03:164 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Graphics.dll
16:31:03:166 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Essentials.dll
16:31:03:167 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Logging.Abstractions.dll
16:31:03:220 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Maui.Graphics.dll [External]
16:31:03:275 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Maui.Essentials.dll [External]
16:31:03:309 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Extensions.Logging.Abstractions.dll [External]
16:31:03:313 [monodroid-assembly] open_from_bundles: failed to load assembly System.ComponentModel.TypeConverter.dll
16:31:03:385 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.ComponentModel.TypeConverter.dll [External]
16:31:03:402 [monodroid-assembly] open_from_bundles: failed to load assembly System.Private.Uri.dll
16:31:03:432 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Private.Uri.dll [External]
16:31:03:458 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Loader.dll
16:31:03:470 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.Loader.dll [External]
16:31:03:492 Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:418 [0x00000].
16:31:03:515 [monodroid-assembly] open_from_bundles: failed to load assembly System.Memory.dll
16:31:03:526 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Memory.dll [External]
16:31:03:532 [monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.Lightweight.dll
16:31:03:533 [monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.ILGeneration.dll
16:31:03:533 [monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Primitives.dll
16:31:03:544 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Reflection.Emit.Lightweight.dll [External]
16:31:03:557 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Reflection.Emit.ILGeneration.dll [External]
16:31:03:570 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Reflection.Primitives.dll [External]
16:31:03:574 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.CompilerServices.Unsafe.dll
16:31:03:588 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.CompilerServices.Unsafe.dll [External]
16:31:03:639 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Core.dll
16:31:03:933 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Core.dll [External]
16:31:03:980 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.Abstractions.dll
16:31:04:003 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
16:31:04:045 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Xaml.dll
16:31:04:048 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Configuration.dll
16:31:04:048 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Configuration.Abstractions.dll
16:31:04:048 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Logging.dll
16:31:04:082 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Maui.Controls.Xaml.dll [External]
16:31:04:099 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Extensions.Configuration.dll [External]
16:31:04:116 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Extensions.Configuration.Abstractions.dll [External]
16:31:04:165 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Extensions.Logging.dll [External]
16:31:04:165 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.AppCompat.dll
16:31:04:165 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.Google.Android.Material.dll
16:31:04:165 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.SwipeRefreshLayout.dll
16:31:04:402 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.AppCompat.dll [External]
16:31:04:783 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.Google.Android.Material.dll [External]
16:31:04:815 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.SwipeRefreshLayout.dll [External]
16:31:04:879 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Fragment.dll
16:31:04:879 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Activity.dll
16:31:04:879 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.ViewModel.dll
16:31:04:879 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.Common.dll
16:31:04:879 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.SavedState.dll
16:31:04:966 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Fragment.dll [External]
16:31:04:990 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Activity.dll [External]
16:31:05:022 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Lifecycle.ViewModel.dll [External]
16:31:05:054 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Lifecycle.Common.dll [External]
16:31:05:070 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.SavedState.dll [External]
16:31:05:070 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.DrawerLayout.dll
16:31:05:070 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CustomView.dll
16:31:05:070 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.Runtime.dll
16:31:05:100 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.DrawerLayout.dll [External]
16:31:05:132 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.CustomView.dll [External]
16:31:05:168 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Navigation.Runtime.dll [External]
16:31:05:208 [monodroid-assembly] open_from_bundles: failed to load assembly System.Net.Primitives.dll
16:31:05:260 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Net.Primitives.dll [External]
16:31:05:260 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.dll
16:31:05:274 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Extensions.DependencyInjection.dll [External]
16:31:05:280 [monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.Tracing.dll
16:31:05:292 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Diagnostics.Tracing.dll [External]
16:31:05:387 [monodroid-assembly] open_from_bundles: failed to load assembly System.Xml.ReaderWriter.dll
16:31:05:388 [monodroid-assembly] open_from_bundles: failed to load assembly System.Private.Xml.dll
16:31:05:403 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Xml.ReaderWriter.dll [External]
16:31:05:880 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Private.Xml.dll [External]
16:31:05:899 [monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Encoding.Extensions.dll
16:31:05:910 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Text.Encoding.Extensions.dll [External]
16:31:05:921 [monodroid-assembly] open_from_bundles: failed to load assembly System.Text.RegularExpressions.dll
16:31:05:957 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Text.RegularExpressions.dll [External]
16:31:06:134 [monodroid-assembly] open_from_bundles: failed to load assembly System.Numerics.Vectors.dll
16:31:06:144 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Numerics.Vectors.dll [External]
16:31:06:400 [companyname.ug] Explicit concurrent copying GC freed 513(76KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 1952KB/2603KB, paused 719us total 5.393ms
16:31:06:897 Thread started: #2
16:31:06:908 Thread started: #3
16:31:06:920 Thread started: #4
16:31:06:947 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Json.dll
16:31:06:949 [monodroid-assembly] open_from_bundles: failed to load assembly System.Private.DataContractSerialization.dll
16:31:06:949 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Xml.dll
16:31:06:967 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.Serialization.Json.dll [External]
16:31:07:134 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Private.DataContractSerialization.dll [External]
16:31:07:154 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.Serialization.Xml.dll [External]
16:31:07:172 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Primitives.dll
16:31:07:188 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.Serialization.Primitives.dll [External]
16:31:07:523 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.RecyclerView.dll
16:31:07:532 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CardView.dll
16:31:07:668 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.RecyclerView.dll [External]
16:31:07:691 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.CardView.dll [External]
16:31:07:745 [libEGL] loaded /vendor/lib64/egl/libEGL_emulation.so
16:31:07:754 [libEGL] loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
16:31:07:759 [libEGL] loaded /vendor/lib64/egl/libGLESv2_emulation.so
16:31:07:769 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Loader.dll
16:31:07:798 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Loader.dll [External]
16:31:07:914 [monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Compatibility.dll
16:31:08:043 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Microsoft.Maui.Controls.Compatibility.dll [External]
16:31:08:144 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CoordinatorLayout.dll
16:31:08:174 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.CoordinatorLayout.dll [External]
16:31:08:328 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.LiveData.Core.dll
16:31:08:350 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
16:31:08:415 [companyname.ug] Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
16:31:08:415 [companyname.ug] Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
16:31:08:651 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.ViewPager2.dll
16:31:08:675 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.ViewPager2.dll [External]
16:31:08:795 [CompatibilityChangeReporter] Compat change id reported: 171228096; UID 10107; state: ENABLED
16:31:08:802 [TabLayout] MODE_SCROLLABLE + GRAVITY_FILL is not supported, GRAVITY_START will be used instead
16:31:08:807 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.Runtime.dll
16:31:08:827 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.Lifecycle.Runtime.dll [External]
16:31:09:022 [monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.ViewPager.dll
16:31:09:051 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/Xamarin.AndroidX.ViewPager.dll [External]
16:31:09:355 Thread started: .NET Timers #5
16:31:09:407 [HostConnection] createUnique: call
16:31:09:407 [HostConnection] HostConnection::get() New Host Connection established 0x7bdc23255cd0, tid 5946
16:31:09:413 [HostConnection] HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_1
16:31:09:427 [OpenGLRenderer] Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
16:31:09:427 [OpenGLRenderer] Failed to initialize 101010-2 format, error = EGL_SUCCESS
16:31:09:435 [EGL_emulation] eglCreateContext: 0x7bdc23253450: maj 3 min 1 rcv 4
16:31:09:462 [EGL_emulation] eglMakeCurrent: 0x7bdc23253450: ver 3 1 (tinfo 0x7bde470f3080) (first time)
16:31:09:481 [Gralloc4] mapper 4.x is not supported
16:31:09:484 [HostConnection] createUnique: call
16:31:09:485 [HostConnection] HostConnection::get() New Host Connection established 0x7bdc23254950, tid 5946
16:31:09:485 [goldfish-address-space] allocate: Ask for block of size 0x100
16:31:09:485 [goldfish-address-space] allocate: ioctl allocate returned offset 0x3f7ffe000 size 0x2000
16:31:09:487 [Gralloc4] allocator 4.x is not supported
16:31:09:496 [HostConnection] HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_1
16:31:10:979 [EGL_emulation] app_time_stats: avg=110.69ms min=3.17ms max=809.25ms count=8
16:31:12:350 Thread started: <Thread Pool> #6
16:31:12:366 Thread started: .NET ThreadPool Gate #7
16:31:12:389 Thread started: <Thread Pool> #8
16:31:12:407 [monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Intrinsics.dll
16:31:12:432 Loaded assembly: /data/data/com.companyname.ugg/files/.__override__/System.Runtime.Intrinsics.dll [External]
16:31:12:874 [companyname.ug] Explicit concurrent copying GC freed 2592(443KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3397KB/6794KB, paused 1.341ms total 11.527ms
After the app splash screen and the app main page is loaded:
16:31:13:715 Thread started: <Thread Pool> #9
16:31:13:715 Thread started: <Thread Pool> #10
16:31:13:922 Thread started: <Thread Pool> #11
16:31:33:834 Thread finished: <Thread Pool> #8
16:31:33:850 Thread finished: <Thread Pool> #9
16:31:33:898 The thread 0x8 has exited with code 0 (0x0).
16:31:33:898 The thread 0x9 has exited with code 0 (0x0).
16:31:53:863 Thread finished: <Thread Pool> #6
16:31:53:895 The thread 0x6 has exited with code 0 (0x0).
16:32:05:999 Thread started: <Thread Pool> #12
16:32:26:005 Thread finished: <Thread Pool> #11
16:32:26:208 Thread started: <Thread Pool> #13
16:32:26:212 The thread 0xb has exited with code 0 (0x0).
16:32:46:455 The thread 0xa has exited with code 0 (0x0).
16:32:48:221 Thread finished: <Thread Pool> #10
Fast deployment is in YourProject / Properties / Android / Options:
Fast deployment
Use fast deployment (debug mode only).
[checked] Debug & net6.0-android
When the above is NOT checked, the following is added to .csproj:
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0-android|AnyCPU'">
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
</PropertyGroup>
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.
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'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 have a web app that uses MEF, Webapi and OData.
For MEF I created a helper class that loads the catalog on demand (at first access)
The following is MEF integration code.
Public Shared ReadOnly Property Catalog As AggregateCatalog
Get
If _catalog Is Nothing Then
Dim catFolder = "."
Dim path = AppDomain.CurrentDomain.BaseDirectory.ToLower
_catalog = new AggregateCatalog()
Dim di = New DirectoryInfo(path)
Dim dlls = di.GetFileSystemInfos("MyApp.*.dll")
_catalog = New AggregateCatalog()
For Each dll In dlls
Try
Dim ac = New AssemblyCatalog(Assembly.LoadFile(dll.FullName))
Dim parts = ac.Parts.ToArray() 'throws ReflectionTypeLoadException
_catalog.Catalogs.Add(ac)
Catch ex As ReflectionTypeLoadException
Log.Instance.Error("Error when Trying to load {0}", dll.FullName)
Log.Instance.Error(ex)
For Each iex In ex.LoaderExceptions
Log.Instance.Error(iex)
Next
End Try
Next
End If
Return _catalog
End Get
End Property
One of my projects (the actual web app project) uses the following nuget packages (among others):
WebApi 5.2.3
WebApi.OData 5.7.0
My problem is when MEF class tries to load this assembly (the one that uses OData and WebApi, it thrown a runtime error, which is logged below.
The problem occurs ONLY in deployment, on production machine. In development all works ok.
As you can see in the error below, it seems that, even if the project references System.Web.Http version 5.2.3.0, at runtime System.Web.Http.Odata assembly is trying to load System.Web.Http version 5.2.2.0 (!?!?!?)
In my project, the reference is set to correct dll (version 5.2.3.0), the dll is set with Copy Local=True, and in web.config I have
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
I don't have any class needed to be composed by MEF in this project (assembly), so I could simply exclude it from being load by MEF, but this error is puzzling me, and I would like to find a solution, in case I encounter similar problem in other assemblies.
Here is the error I get
2015-11-04 07:17:02.7758|ERROR|MyPermitNow.Log|Error when Trying to load m:\web\www.mypermitnow.org\web_1\bg-processor\MyPermitNow.Jurisdiction.dll
2015-11-04 07:17:02.7758|ERROR|MyPermitNow.Log|System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator()
at System.Linq.EnumerableQuery`1.GetEnumerator()
at System.Linq.EnumerableQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at MyPermitNow.MEFHelper.get_Catalog()
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator()
at System.Linq.EnumerableQuery`1.GetEnumerator()
at System.Linq.EnumerableQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at MyPermitNow.MEFHelper.get_Catalog()
2015-11-04 07:17:02.7758|ERROR|MyPermitNow.Log|System.IO.FileLoadException: Could not load file or assembly 'System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
=== Pre-bind state information ===
LOG: DisplayName = System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///M:/web/www.mypermitnow.org/web_1/bg-processor/
LOG: Initial PrivatePath = NULL
Calling assembly : System.Web.Http.OData, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///M:/web/www.mypermitnow.org/web_1/bg-processor/System.Web.Http.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Build Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
There could be a lot of things that could cause this. Some things to check:
Is there an old version of the DLL on the server having problems? It is possible the CSPROJ now has Private=true for the assembly when it didn't use to, then that library is included in the main applicate/site project. So the new one isn't getting copied, but the old one is sitting there but in a more direct spot so it is loading first.
Any app/web.config transforms going on that could be replacing the assembly binding XML?
If it's not in the direct application folders, what's in the GAC?
Turn on the Fusion assembly loading logging