.net-assembly

Could not load file or assembly - working on local not on production - ASP.net

妖精的绣舞 提交于 2021-01-29 04:16:26
问题 I have this problem, where the project works fine on local, it just doesn't wortk on production on local, everything works on IIS Express on production, IIS 7.5, windows 2008 r2: Exception type: ConfigurationErrorsException Exception message: Could not load file or assembly 'Telerik.OpenAccess, Version=2014.3.1209.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified. (\\xxx\xxx\xxx\web.config line 106) checked the file

AppDomain.AssemblyLoad event catches all exceptions raised within the event handlers

流过昼夜 提交于 2021-01-28 10:47:35
问题 It seems the .NET AppDomain.AssemblyLoad event catches any exceptions thrown within it's event handlers, not propagating them to the caller who triggered the assembly load (e.g. Assembly.LoadFile() ). My first question is why does this catch all exceptions behavior exist? Microsoft are generally pretty strict about ensuring exceptions always propagate in their BCLs. My second question, is there any way to turn off this behavior? Background: I need to scan assemblies as they are loaded and

Unable to load file or assembly 'Mono.Cecil.Pdb' VS17

巧了我就是萌 提交于 2021-01-28 06:36:34
问题 I'm developing a xamarin.forms project using VS17. I have a build faild with this error: 1>System.IO.FileLoadException: Unable to load file or assembly 'Mono.Cecil.Pdb, Version = 0.10.0.0, PublicKeyToken = 50cebf1cceb9d05e' or one of its dependencies. Invalid parameter (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) 1>File name: 'Mono.Cecil.Pdb, Version=0.10.0.0, PublicKeyToken=50cebf1cceb9d05e' ---> System.ArgumentException: Paramètre incorrect. (Exception de HRESULT : 0x80070057 (E

Dependency hell in VS C#, cannot find dependencies

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-28 00:49:53
问题 I created a chart C# library (let's call it chartlibrary ) which itself has dependencies on multiple third-party dll files. In another executable project (let's call it chartuser ), I reference the chartlibrary project (both projects sit within the same solution in Visual Studio). Upon compilation, I can see that all the third-party dll files that chartlibrary references are also contained in the bin/Debug folder of chartuser . However, I get a runtime error which basically points to the fact

Create a copy of method from IL

老子叫甜甜 提交于 2021-01-27 03:50:39
问题 I am trying to create a copy of a method during runtime using reflection. I have the following code. public static R CopyMethod<T, R>(Func<T, R> f, T t) { AppDomain currentDom = Thread.GetDomain(); AssemblyName asm = new AssemblyName(); asm.Name = "DynamicAssembly"; AssemblyBuilder abl = currentDom.DefineDynamicAssembly(asm, AssemblyBuilderAccess.Run); ModuleBuilder mbl = abl.DefineDynamicModule("Module"); TypeBuilder tbl = mbl.DefineType("Type"); var info = f.GetMethodInfo(); MethodBuilder

There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference

巧了我就是萌 提交于 2021-01-03 06:51:33
问题 I am using eConnect SDK 11.0. I have a windows service app in which i had added reference of GP sdk. 1) Microsoft.Dynamics.GP.eConnect.dll 2) Microsoft.Dynamics.GP.eConnect.Serialization.dll When i build my project it had built successfully but gave me the following warning 1) There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.Dynamics.GP.eConnect, Version=11.0.0.0, Culture=neutral,

There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference

时光毁灭记忆、已成空白 提交于 2021-01-03 06:49:07
问题 I am using eConnect SDK 11.0. I have a windows service app in which i had added reference of GP sdk. 1) Microsoft.Dynamics.GP.eConnect.dll 2) Microsoft.Dynamics.GP.eConnect.Serialization.dll When i build my project it had built successfully but gave me the following warning 1) There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.Dynamics.GP.eConnect, Version=11.0.0.0, Culture=neutral,

There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference

半城伤御伤魂 提交于 2021-01-03 06:48:20
问题 I am using eConnect SDK 11.0. I have a windows service app in which i had added reference of GP sdk. 1) Microsoft.Dynamics.GP.eConnect.dll 2) Microsoft.Dynamics.GP.eConnect.Serialization.dll When i build my project it had built successfully but gave me the following warning 1) There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.Dynamics.GP.eConnect, Version=11.0.0.0, Culture=neutral,

c# assembly, friend assembly

醉酒当歌 提交于 2020-12-12 13:24:44
问题 The definition for C# internal access modifier is internal: Accessible only within containing assembly or friend assemblies. So my question is what is c# assembly? what does it mean to be within containing assembly or friend assemblies? Does it mean within same namespace or project? 回答1: An assembly is (in general) a single .dll or .exe file. A C# project (in general) compiles to a single assembly. You can mark a friend assembly using the [assembly: InternalsVisibleTo(...)] attribute. 回答2:

c# assembly, friend assembly

本小妞迷上赌 提交于 2020-12-12 13:23:28
问题 The definition for C# internal access modifier is internal: Accessible only within containing assembly or friend assemblies. So my question is what is c# assembly? what does it mean to be within containing assembly or friend assemblies? Does it mean within same namespace or project? 回答1: An assembly is (in general) a single .dll or .exe file. A C# project (in general) compiles to a single assembly. You can mark a friend assembly using the [assembly: InternalsVisibleTo(...)] attribute. 回答2: