assembly-resolution

silverlight 4, dynamically loading xap modules

北城余情 提交于 2019-12-01 16:27:03
问题 I know that it is possible to load xap modules dynamically using Prism or MEF framework. However, I'd like not to use those frameworks; instead load my xap files manually. So, I created the following class (adapted from internet): public class XapLoader { public event XapLoadedEventHandler Completed; private string _xapName; public XapLoader(string xapName) { if (string.IsNullOrWhiteSpace(xapName)) throw new ArgumentException("Invalid module name!"); else _xapName = xapName; } public void

Problems loading assembly dependencies dynamically at run-time

邮差的信 提交于 2019-11-30 23:34:51
let me try to explain my problem. I'm currently trying to develop a small "plugin-framework" written in .Net (mainly for experimenting a bit). So the idea is to have a main application to which "plugins" can be added by deploying dlls in a specific folder "plugins" of the main application. Everything works fine, the plugins are instantiated properly, however now I'm facing a problem. I have deployed now a plugin "X" that uses additional 3rd-party plugins and so now I have the problem that these additional 3rd-party plugins required by "X" are not found at run-time. My idea is therefore now to

MsBuild does not look in the good directory for custom task's second-level dependencies

你。 提交于 2019-11-30 20:59:39
I wrote a MsBuild Task : MyTask. In my solution, I have the Task project and others projects. MyTask references a project (say ProjA) which references third assemblies, say (dep1 and dep2). The projects all builds well and I have the outputs in one directory (Compil). In this directory i have all the dll's I want : MyTask.dll, ProjA.dll, dep1.dll, dep2.dll and others. In my MsBuild file i include the custom task assembly with : <UsingTask AssemblyFile="..\Compil\MyTask.dll" TaskName="CreateSitesCss" /> Then I call a task of the MyTask assembly. The call is well executed but MsBuild complains

Assembly Binding Error: Bind result: hr = 0x80070002. The system cannot find the file specified

a 夏天 提交于 2019-11-30 19:23:38
I have a Visual Studio 2010 solution that contains a class library (ProjectA) and two Sharepoint projects (ProjectB & ProjectC). The dependency order is ProjectB references ProejctA and ProjectC references both ProjectA & ProjectB. On one particular development machine i get the following error when trying to build ProjectC: Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. When looking into the fusion log i noted the following error: * Assembly Binder Log Entry (14/06/2012 @ 09:38:32) * The operation failed.

Problems loading assembly dependencies dynamically at run-time

一个人想着一个人 提交于 2019-11-30 17:50:20
问题 let me try to explain my problem. I'm currently trying to develop a small "plugin-framework" written in .Net (mainly for experimenting a bit). So the idea is to have a main application to which "plugins" can be added by deploying dlls in a specific folder "plugins" of the main application. Everything works fine, the plugins are instantiated properly, however now I'm facing a problem. I have deployed now a plugin "X" that uses additional 3rd-party plugins and so now I have the problem that

Exception with Resolving assemblies: Attempt to load an unverifiable executable with fixups

穿精又带淫゛_ 提交于 2019-11-30 17:12:34
I'm embedding required assemblies to my project and resolving them on runtime with AppDomain.CurrentDomain.AssemblyResolve event. All works okay except irrKlang 's .net4-wrapper, which throws an exception if i try so; System.IO.FileLoadException: Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019) at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, SecurityContextSource securityContextSource) at

Tips to help debug “Could not load file or assembly X or one of its dependencies”

*爱你&永不变心* 提交于 2019-11-30 12:47:18
问题 I'm looking for tips/suggestions/insights to help debug an on application load issue; Could not load file or assembly ... The solution/project where I'm experiencing this issue is a conversion from a working copy in Visual Studio 2008 to the Visual Studio 2010 Release Candidate. The conversion process appeared to be successful, and all the solution projects are set to Framework 4 . The exception is on a 3rd party component (a graphics processing library), but any answers could possibly help

The “SlowCheetah.Xdt.TransformXml” task could not be loaded from the assembly

青春壹個敷衍的年華 提交于 2019-11-30 10:55:26
问题 After installing Slow Cheeath (v. 2.5.10.3) to two projects in my solution, I am receiving the following error: "The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly C:\Users \User\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll. Could not load file or assembly 'file:///C:\Users\User\AppData\Local\Microsoft\MSBuild \SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll' or one of its dependencies. The system cannot find the file specified. Confirm that

How is an assembly resolved in .NET?

China☆狼群 提交于 2019-11-30 07:16:19
问题 How are assemblies resolved in .NET. I mean, how is an assembly with a fully qualified name resolved. I am confused about the public/private key tokens and strong naming. Thanks EDIT: I have also read about delayed signing and stuff like that. Do people really use it? (Has anyone actually used delay signing) Who generates the key to sign an assembly. I am sorry if I am asking too many questions. But, I am confused about this whole thing. 回答1: Strong naming is used together with a "public key

Tips to help debug “Could not load file or assembly X or one of its dependencies”

时光毁灭记忆、已成空白 提交于 2019-11-30 03:03:25
I'm looking for tips/suggestions/insights to help debug an on application load issue; Could not load file or assembly ... The solution/project where I'm experiencing this issue is a conversion from a working copy in Visual Studio 2008 to the Visual Studio 2010 Release Candidate. The conversion process appeared to be successful, and all the solution projects are set to Framework 4 . The exception is on a 3rd party component (a graphics processing library), but any answers could possibly help others with any troublesome DLL. Could not load file or assembly 'Aurigma.GraphicsMill.DLL' or one of