gac

.NET assemblyBinding configuration ignored in machine.config

偶尔善良 提交于 2019-12-11 17:39:38
问题 I have a situation where I need to be able to load assemblies in the GAC based on their partial names. In order to do this I have added the following to my app.config file: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <qualifyAssembly partialName="MyAssembly" fullName= "MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789abcdef"/> </assemblyBinding> </runtime> This works exactly the way I want it to. However, if I place the same element in my machine

Is there anything like GAC in Windows Phone 7?

[亡魂溺海] 提交于 2019-12-11 16:05:44
问题 If not, then how should we handle the assembly version thing? BTW: I can not find a way to strong name sign a WP7 assembly, did I miss anything? 回答1: No, there is no GAC or equivalent in WP7. The GAC is used for sharing versioned assemblies. In Windows Phone 7, each application is completely isolated from all other applications, so there is no need for an assembly sharing facility. 来源: https://stackoverflow.com/questions/6335111/is-there-anything-like-gac-in-windows-phone-7

WCF Method not found after signing an assembly

北城以北 提交于 2019-12-11 15:12:30
问题 I have a 3 projects in a solution like such: WCF Service: Hosts a couple of methods Class Library: Acts as a gateway to the WCF service by returning an instance of its Soap client WPF Application: Consumes the service methods via the referenced class library Everything was working perfectly...the application was accessing an instance of the soap client through the library and consuming the methods accordingly. Now I signed my assemblies and everything still compiles and when I add new methods

Installing .NET application missing Microsoft.Cryptography.DKM in GAC

久未见 提交于 2019-12-11 13:19:57
问题 I have developed a Console app for Lync 2013 in VS 2012, targeting .NET 4.0. I have successfully installed the application on my own machine, but now I need to run it on another client, and I get this strange error. I have Googled the error, but have not found anything useful. The error is in danish, but tells me that I am missing Microsoft.Cryptography.DKM version 1.11.0.0 in GAC. I have not seen this error before, and it seems like it is not a common error, as it is hard to find any

ASP.NET DLL required in both GAC and \Inetpub\wwwroot\bin

旧城冷巷雨未停 提交于 2019-12-11 10:44:28
问题 I copied an ASP.NET application DLL into \Inetpub\wwwroot\bin and copied the application folder under Sharepoint 2007 TEMPLATES\Layouts folder, so I could access the application from http://sp-portal/sites/sitecoll123/_layouts/aspnetapp/Default.aspx . It complained that: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object

Where can I find Microsoft assemblies that are not already in Visual Studio?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 05:55:51
问题 I figured someone can answer the question generally but if anyone wants to get specific I am trying to use: using System.Web.Security.SingleSignOn; using System.Web.Security.SingleSignOn.Authorization; I've googled my brains out and this is the closest answer I found: "We discussed this offline, but it looks like the ADFS assembly is GACed, but not installed on the file system or registered with VS.NET so that it shows up in the .NET tab. I'm guessing MS may need to beef up the installer for

SharePoint's OWSTIMER service keeping references to feature receiver assemblies

偶尔善良 提交于 2019-12-11 05:15:11
问题 With SharePoint you can use a Feature Receiver to perform some actions when a feature is installed/uninstalled etc. The feature receiver is ran from the OWSTIMER service and the process seems to be roughly .wsp (a cab file) is unpacked and examined .dll's are moved to bin/gac feature receivers marked in manifest are called (can only be in GAC) by the service However OWSTIMER keeps a handle open on the dll containing the feature receiver. This means that when you uninstall the feature Fusion

Use a specific version of a dll in C#

淺唱寂寞╮ 提交于 2019-12-11 03:48:00
问题 I have a project where I would want to use some specific version of a dll. The GAC contains couple of versions of that dll (new & old), I would want to use the old when running the program. Issue is that the newest dll is always picked-up from the GAC. Would you know if there is a way to either: Force the usage the dll that is in the run folder (the one I'm referencing in my solution, working fine in debug). Force the usage of the old version of the dll from the GAC. Thank you! 回答1: When you

Reference Assembly in app.config

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 03:33:01
问题 I know this Question has been asked before but not in this Context! I have an WPF-Application(third party) that gives me the possibility to add an XAML ResourceDictionary, so I´ve created a ClassLibrary with a Class that Implements the ICommand Interface and calls a WebService in the Execute-Method. Now I want to attach this Command to a Control in the Application! This is my ResourceDictionary: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x=

COM Registration and the GAC

陌路散爱 提交于 2019-12-11 02:06:48
问题 I have a web project, a C# library project, and a web setup project in Visual Studio 2005. The web project needs the C# library needs to be registered in the GAC. This is simple, just add the GAC folder to the setup project and drop the primary output of the C# library in there. The C# library also needs to be registered for COM interop. I click select the primary output in the GAC folder and change the Register property to vsdrpCOM. I build the setup project and run it but the DLL never gets