.net-assembly

Report Builder custom method of assembly returns “#Error”

旧巷老猫 提交于 2019-12-25 05:28:11
问题 I am currently trying to add an assembly into report builder 3.0 to execute a method and return the result: But I always get "#Error" in the preview. Even whe the method is that simple: public static string Test() { return "test"; } Reference is set the following: Expression is: =TestNamespace.TestClass.Test() The assembly is registered in GAC and it seems that the method is being checked for availableness. Elsewise I get a different error. 回答1: I finally fixed it. Important is to set the

Trying to understand method signature changes spanning assemblies

老子叫甜甜 提交于 2019-12-25 01:05:46
问题 We ran into a strange problem with a promotion and I'm hoping I'll be able to explain it with code. I want to understand why it behaves in the manner it is. Assembly 1 public static class Foo { public static string DoStuff() { // Do something return "some string"; } } Assembly 2: public class Bar { public void SomeMethod() { // I realize the below is not what should be done for catching exceptions, as the exception is never thrown due to the return, and seems unnecessary either way... // this

How to use assembly registered in GAC on MonoDevelop?

為{幸葍}努か 提交于 2019-12-24 17:28:39
问题 I recently registered Mysql.Data.dll assembly in GAC on 64bit Ubuntu 14.4 to use it following this example with an ASP.NET Mono project and verified. I realized that although it is registered in GAC, it's not directly usable from Edit references dialogue on Monodevelop. I tried to see how can this be made possible, the possibilities exists for Visual Studio which is something I don't need. Doubts: If the assembly is un-usable what is the concept of registering it in GAC? How can this assembly

Loading byte array assembly into new AppDomain throws a FileNotFound exception

落花浮王杯 提交于 2019-12-24 17:19:12
问题 I'm trying to do the following: Download a byte array that contains an assembly that I need to execute. Load an object from this assembly in a new app domain and execute method on the object Here is my code that attempts to load the assembly into new app domain: public object Execute(byte[] agentCode) { var app = AppDomain.CreateDomain("MonitoringProxy", AppDomain.CurrentDomain.Evidence, new AppDomainSetup {ApplicationBase = AppDomain.CurrentDomain.BaseDirectory}, new PermissionSet

MSVCR100D.DLL and dependency walker

泪湿孤枕 提交于 2019-12-24 16:56:08
问题 I put MSVCR100D.DLL into the c:\windows\system32 folder but dependency walker is still complaining about it being missing. Any ideas? 回答1: Dependency walker hasn't been updated in a very long time. I think the author just gave up trying to keep up with Windows development. Particularly resolving side-by-side manifest lookup rules is a very hard problem to solve. SetDllDirectory() is impossible to resolve statically. It isn't very smart about delay-loaded DLLs and it doesn't know anything

Release not working, referencing FW 2.0 dll into FW 4.0 winform

孤街浪徒 提交于 2019-12-24 13:22:33
问题 With the trace it implies that i need to make the locale neutral, in order for the referenced dll to work. Any idea on how to set it? or you set the neutral as something? I made a test program. I'm using VS2010, VB.net, .Net Framework 4.0, in Windows forms. It's a local test app with the bare minimum to work(form with couple of labels and a couple of buttons). I was given a .dll that was made in .net framework 2.0. So I referenced it. It didn't work. So I searched for the solution and found

Windows UWP - Dynamically Load Assembly In Side Loaded App

天涯浪子 提交于 2019-12-24 10:56:35
问题 It seems to be a deliberate security of Windows 10 Store apps that assemblies not be allowed to be loaded at runtime. I think that this feature is massive overkill and stops UWP development dead in its tracks. However, if it is a rock solid design decision by Microsoft, there is nothing we can do to argue with it. Instead, I'd like to ask the question, assuming that you were not deploying your UWP app to the store, would it still be impossible to load an assembly dynamically? If it's possible

How to redirect Assembly Versions in wpf?

落花浮王杯 提交于 2019-12-24 06:58:19
问题 How to redirect Assembly Versions in WPF? Following http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx#bypass_PP throws File Load exception. Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.1.505.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) <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"

Another assembly referencing the old dll

≡放荡痞女 提交于 2019-12-24 04:54:09
问题 I have 2 assemblies lets call them A and B. I've assigned strong names to them and now the problem arises that assembly B is looking for the old version of assembly A. **EDIT2: If I delete AssemblyB the problem persists so it might just be VS2008 looking for the old version? Also via fusionlog I see the following warning: wrn application configuration file binding redirects disallowed. Does this have anything to do with it? ** I get multiple errors of the same kind, here's one snippet: You

Assembly.LoadFrom and dependencies

江枫思渺然 提交于 2019-12-24 01:54:28
问题 I've been trying to setup a plugin system using Assembly.LoadFrom() that dynamically loads dlls in a sub-folder of the .exe's directory. I have one interface lib referenced by both the .exe and the plugin. Once the build is done i copy the plugin dll to the sub-folder. Differents plugins might have libs in common, so i would like to gather those dependencies next to the .exe. My understanding is that i have to use the AssemblyResolve event to manually load plugins dependencies from the exe's