gac

Load assembly from Path

杀马特。学长 韩版系。学妹 提交于 2019-12-07 05:27:00
问题 I need to load an assembly from a certain location and not from the GAC. I can not remove the assembly from the GAC, because my program has to run on different machines, where I couldn't control if the assembly is in the GAC or not. I added a reference to the DLL-File to my project. Unfortuntely the assembly is loaded from the GAC. I've tried the following code in my App.xaml.cs in the Startup -Event var directory = Thread.GetDomain().BaseDirectory; var dllPath = Path.Combine(directory,

GAC – Assembly is in the GAC but “Could not load file or assembly”

て烟熏妆下的殇ゞ 提交于 2019-12-07 03:47:58
问题 I have an Interop dll that was generated by Visual Studio for a third-party COM object that I am consuming in a .NET dll. I have registered both my consuming dll and the Interop dll in the GAC. I have to use the GAC because these DLLs are being used by a SharePoint 2010 workflow. When the execution gets to the point where my dll calls the Interop dll the following error was thrown” “Could not load file or assembly” … “The system could not find the file specified” together with the expected

Why are framework dlls repeated in several places?

跟風遠走 提交于 2019-12-07 03:26:43
问题 After installing .Net 4 and getting some questions that were already answered here I also realized how the Framework dlls are repeated in several places for the different Framework versions (this is not new, it happens with previous versions, but hadn't paid attention to it until now) 1 - GAC: %systemroot%\assembly 2- Framework installation directory: %systemroot%\Microsoft.NET\Framework\v... 3- and if you have the Windows SDK installed, also in: C:\Program Files\Microsoft SDKs\Windows\ I

.Net dll reference - deployment onto PCs with different versions of 3rd party dll

限于喜欢 提交于 2019-12-06 16:13:09
Could you tell me the best approach for this scenario. I have inherited a new project and have not come across this scenario before. We have a reference in our C# Windows Forms application to a 3rd party tool for producing documents. There are two different versions of the 3rd party tool in the deployment environment installed on people's PCs - v1.0 and v2.0. I can only build our Windows Forms application to work with either v1.0 or v2.0 of the 3rd party tool. To do so I have to install either version on my development PC before building. This is obviously a bad approach as I have to uninstall

web service could not create type error with type in the GAC

喜欢而已 提交于 2019-12-06 08:17:35
Stuck with an unusual problem, would seem that I love doing things that's not very common. I have a composite control, that checks to see if a given web service file exists in the root of my application, if it does not, it creates the file with the necessary directive in the markup to ball rolling, something like: <%@ WebService Language="C#" Class="Company.Project.Assembly.ClassName" %> which in turn, gets saved to the output. Once this step has been completed, a recycle on application pool is initiated to get the new page rendered within IIS. My assembly that the directive points to, is GAC

Getting to Microsoft.Office.Interop.Word.dll?

青春壹個敷衍的年華 提交于 2019-12-06 06:47:09
问题 When FxCop examines an assembly it gives the following error: The following reference assembly could not be found. The assembly is required for analysis and was referenced by Test.dll. Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c So, I did a search and found the file in: C:\Windows\assembly\GAC\Microsoft.Office.Interop.Word\12.0.0.0__71e9bce111e9429c However, the dialog in FxCop doesn't let me get past C:\Windows\assembly. It looks like

GAC on edit process?

这一生的挚爱 提交于 2019-12-06 06:36:21
问题 Every time I do an edit on my Library Class, I compile it for get the updated DLL. But for get the effective edit on the project which uses this Library, I have to do the command : gacutil –I <assembly name > and recycle the pool. Recycling the pool can be ok, but can I automate that process of gacutil ? Is there a way on VS or no solution? I need to do this every time? 回答1: If you keep updating that project, In that case you can add build event to GAC automatically on that particular project

Alternatives to GAC for sharing code between mvc sites

孤街浪徒 提交于 2019-12-06 05:10:02
Currently, we have c# object registered in the gac which we use to output a html/string which acts as a common menu for our web applications. The benefit of the gac registered object is that we can update the gac object and all applications that reference it get the updates very efficiently. The html menu references some js and css resources at a common location. The c# object does perform some logic based on servers/environments etc. Are there alternatives other than GAC objects to perform similar functionality. I had considered reference a mvc view from another project/controller but there

.Net Assembly /dll Sharing and Deploying

六眼飞鱼酱① 提交于 2019-12-06 04:54:52
问题 We have 3 software products which use the same .net dlls(code + legacy). All these use common functionality present across 3/4 dlls. i wanted to know how and where to deploy these dlls. And which is the most standard way of doing this. S1] Along with each product in its install dir -- probably easiest way to do. (but if any updates are to happen in the shared dll ..it has to be done for all 3 dlls.) S2]Put it in common files folder? S3] Does System GAC help in this? (Put all 3 in GAC and the

SQLCLR Function and System.Runtime.Serialization In GAC

梦想与她 提交于 2019-12-06 03:20:37
问题 I've built a SQLCLR function in C# that will deserialize JSON and return a table. The problem I have is getting the correct assemblies within SQL Server 2012. In order to utilize Newtonsoft's deserializer I've had to add the following assemblies to SQL Server: System.ServiceModel.Internals.dll SMDiagnostics.dll System.Runtime.Serialization.dll Newtonsoft.Json.dll This has all gone as planned but when I try to run my function I get the following error: System.IO.FileLoadException: Could not