gac

Exception error message with incorrect line number

不问归期 提交于 2019-12-04 22:33:39
问题 When an exception is thrown in an Asp.Net web page, an error message is displayed with the complete stack trace. Example below: Stack Trace: IndexOutOfRangeException: Index was outside the bounds of the array. MyNameSpace.SPAPP.ViewDetailsCodeBehind.LoadView() +5112 MyNameSpace.SPAPP.ViewDetailsCodeBehind.Page_Load(Object sender, EventArgs e) +67 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13 System.Web.Util.CalliEventHandlerDelegateProxy

Add Reference in Framework 4 Application is not showing assemblies in GAC registered with GACUtil V 4

回眸只為那壹抹淺笑 提交于 2019-12-04 20:50:00
I've registered a dll in my local GAC using the GACUtil which comes with VS2010 (version 4ish) I can perform gacutil /l xxx and it finds the dll I am aware from various other posts that Framework 4 has it's own GAC and sure enough the file can be located in the directories within C:\WINDOWS\Microsoft.NET\assembly The problem for me, is that the .NET tab on the Add Reference dialogbox does not show my "GAC'ed" assembly. I've made sure that the projects properties are using the same version of the 4.0 framework, but I am currently at a loss. Has anyone else had this problem? Cheers in advance

To GAC, or not to GAC?

南笙酒味 提交于 2019-12-04 18:59:12
问题 I have a data access layer (DAL) that is written in ASP.NET 3.5 and uses the Microsoft patterns & practices libraries (hereafter referred to as P&P) in order to accomplish its data access. I installed P&P and it resides in my GAC, so, logically, my DAL references it in the GAC . Therefore, the P&P libraries are never pulled down to the bin folder of my DAL. I use this DAL project in at least five (more than that even, but I'm too lazy to try to count them all) different websites. And this has

What gacutil.exe should I use?

霸气de小男生 提交于 2019-12-04 18:42:40
问题 So, on a Win 2008 R2 Std x64, I have 6 (six) gacutil.exe all different (not counting ones in VS folders), in: c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64 c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64 c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64 Questions are: Does

ASP.NET MVC4 solution fails to build after installing KB2993928

笑着哭i 提交于 2019-12-04 18:08:54
问题 We have an ASP.NET MVC 4 solution with a couple of references that has been building without problems for about 2 years now. However, after installing KB2993928 and KB2993937 this morning, we cannot run FxCop on this solution on our Windows 7 machines anymore. I have a feeling this is because this update changed the DLL version of the System.Web.Mvc assembly in the GAC. This is because in the GAC I can currently find 3 different System.Web.Mvc DLLs, which are all updated today. The error we

.Net Assembly /dll Sharing and Deploying

丶灬走出姿态 提交于 2019-12-04 12:39:37
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 code is shared.but im worried about versioning?) Also how to build a deployable setup for such projects

GAC Assembly Missing in Add Reference dialog

a 夏天 提交于 2019-12-04 12:31:38
问题 I have an Interop assembly lying in GAC; Windows Explorer clearly shows it listed in the C:\WINDOWS\assembly folder. Yet, when I try to add a reference to it in from Visual Studio, I can't see it anywhere in the Add Reference dialog. If this is happened to you too, what is the reason for this? And how do I fix this? (The assembly is actually located in C:\WINDOWS\assembly\GAC_MSIL folder, if you must know.) 回答1: Add one of the following registry keys, where is the directory to search, and

Install an assembly into GAC programmatically

倾然丶 夕夏残阳落幕 提交于 2019-12-04 12:19:47
问题 I need to install an assembly in GAC using c#. Below is my code: new System.EnterpriseServices.Internal.Publish().GacInstall("MyAssembly.dll"); The above code gives the error: Absolute path required But i need this to run without using static file path (absolute path). Can anyone tell me whether its possible? I have added the reference to the assembly inside the project references. I need to install this assembly inside GAC. 回答1: You could do something like: GacInstall((new System.IO.FileInfo

GAC on edit process?

╄→гoц情女王★ 提交于 2019-12-04 11:43:43
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? If you keep updating that project, In that case you can add build event to GAC automatically on that particular project using following post built event.Under Build Event in project properties just you can add the following

the application requires that assembly microsoft.reportviewer.processingObjectModel version 11.0.0.0 be installed in the global assembly cache first

元气小坏坏 提交于 2019-12-04 10:57:56
问题 I have a small windows forms application created in Visual Studio 2012 that uses ReportViewer version 11.0.0.0. The application target framework is .NET 4.0 and its deployment method is ClickOnce On my PC it installs but on client machines, intallation fails with error the application requires that assembly microsoft.reportviewer.processingObjectModel version 11.0.0.0 be installed in the global assembly cache first. On the client machines, i have installed .NET 4.0 ReportViewer 2010 Microsoft