assembly-resolution

using FUSLOGVW.EXE on a machine with no Visual Studio installed

心不动则不痛 提交于 2019-11-27 17:14:33
I'm currently having some assembly binding problems on our development server. I want to investigate the problem a bit further with Fusion Log Viewer. Since there is no Visual Studio installed on the machine, I copied FUSLOGVW.EXE to a local folder and started it there. Is this supposed to work or does it need something else? I don't get the impression the application is logging any failures (and yes I have the settings right). Fuslogvw doesn't do the logging. The fusion loader does that. Fuslogvw just displays the log output. Are you getting any logs at all in the output directory you have

Need to hookup AssemblyResolve event when DisallowApplicationBaseProbing = true

妖精的绣舞 提交于 2019-11-27 15:19:54
I need to hookup an AssemblyResolve event on my created AppDomain when I've set DisallowApplicationBaseProbing = true. The reason I'm doing this is to force the runtime to call the AssemblyResolve event it needs to resolve an assembly, instead of probing first. This way, another developer can't just stick MyDllName.dll in the ApplicationBase directory and override the assembly I wanted to load in the AssemblyResolve event. The issue with doing this is the following... class Program { static void Main() { AppDomainSetup ads = new AppDomainSetup(); ads.DisallowApplicationBaseProbing = true;

Validate assemblies and namespaces in VAB config file

主宰稳场 提交于 2019-11-27 06:30:50
问题 We are using version 4.1 of the validation application block. I am relatively new to it so I was wondering if it had the ability to either abstract out the configured namespaces and assemblies or otherwise provide proper validation of their existence? We had an issue recently where someone moved a class and didn't update the validation configuration file with the new namespace. As a result the validations were no longer being applied to the object. The application block seems to just ignore

Powershell config assembly redirect

牧云@^-^@ 提交于 2019-11-27 01:37:36
问题 I have a custom .NET assembly with some powershell cmdlets than I use for common domain related tasks. I've just created a new cmdlet that references a 3rd party library that has a reference to Newtonsoft.Json 4.5.0.0. However one of my other projects uses the latest version of json.net (6.0.0.0). So at runtime in powershell fusion throws an error saying it can't load newtonsoft.json 4.5.0.0. I've tried creating a powershell.exe.config and putting an assembly redirect in there: <?xml version=

Resolve assembly references from another folder

偶尔善良 提交于 2019-11-26 22:35:52
I am developing an application which references and uses some third party assemblies from a certain Vendor; in development box I have these 3 assemblies in a reference folder in my source tree and I can reference them and build the application, application builds but does not run because the whole server application is not installed, but this is fine. On the server where I want to copy this custom application and run all assemblies I am referencing are in folder something like: D:\ProgramFiles\VendorName\ProductName\Support\API\Bin64 and if I copy my small executable in that folder and run it,

using FUSLOGVW.EXE on a machine with no Visual Studio installed

我的梦境 提交于 2019-11-26 22:32:28
问题 I'm currently having some assembly binding problems on our development server. I want to investigate the problem a bit further with Fusion Log Viewer. Since there is no Visual Studio installed on the machine, I copied FUSLOGVW.EXE to a local folder and started it there. Is this supposed to work or does it need something else? I don't get the impression the application is logging any failures (and yes I have the settings right). 回答1: Fuslogvw doesn't do the logging. The fusion loader does that

AppDomain.CurrentDomain.AssemblyResolve asking for a <AppName>.resources assembly?

ⅰ亾dé卋堺 提交于 2019-11-26 22:16:42
问题 using the code How to embed a satellite assembly into the EXE file provided by csharptest.net, I've created a custom assembly resolver and embedded my assemblies in my resources. I can successfully resolve my assemblies used in but somehow AppDomain.CurrentDomain.AssemblyResolve asks for an assembly called 'AppName.resources' specifically "MyProgram.resources, Version=0.15.3992.31638, Culture=en-US, PublicKeyToken=null" which i don't know how to resolve? I've tried to disable loading my

How do I reference assemblies outside the bin folder in an ASP.net application?

♀尐吖头ヾ 提交于 2019-11-26 20:27:46
问题 I've a working XML Web service written in ASP.Net. Now I need to reference certain assemblies lying in a specific folder e.g. c:\NotMyCode I do not want to copy/duplicate zillions of dlls in that folder into my bin folder. I tried to keep the CopyLocal=false for the assemblies referred in the Web Service. That ended up in a FileNotFound exception for the assembly. When I switch to CopyLocal=true , the referenced DLLs are copied over to the bin folder.. and it works. So my question here is:

Resolve assembly references from another folder

让人想犯罪 __ 提交于 2019-11-26 07:42:37
问题 I am developing an application which references and uses some third party assemblies from a certain Vendor; in development box I have these 3 assemblies in a reference folder in my source tree and I can reference them and build the application, application builds but does not run because the whole server application is not installed, but this is fine. On the server where I want to copy this custom application and run all assemblies I am referencing are in folder something like: D:\

C#: Custom assembly directory

情到浓时终转凉″ 提交于 2019-11-26 07:35:43
问题 Say we have an application which consists of one executable and 5 libraries. Regularly all of these will be contained in one directory and the libraries will be loaded from there. Is it possible to do so that I can have for example some of the libraries in one directory called Lib, and the rest in one called Lib2? So that the application directory would only contain the executable itself and the other assemblies would be contained in various logical directories. How can I do this? And I would