gac

Unable to find [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory] even though dll is already in GAC

白昼怎懂夜的黑 提交于 2019-12-01 13:56:53
I am trying to write a PowerShell script, but I'm running into an error. When my script gets to the line $tfs = [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]::GetServer($server) I get the error: Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]... InvalidOperation: (Microsoft.TeamF...onServerFactory:TypeName) [], RuntimeException Though my question is very similar to this question , I already know that the Microsoft.TeamFoundation.Client.dll file and its dependencies are in the GAC. The other question never clarifies that, and I think that might

Unable to find [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory] even though dll is already in GAC

旧时模样 提交于 2019-12-01 13:24:37
问题 I am trying to write a PowerShell script, but I'm running into an error. When my script gets to the line $tfs = [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]::GetServer($server) I get the error: Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]... InvalidOperation: (Microsoft.TeamF...onServerFactory:TypeName) [], RuntimeException Though my question is very similar to this question, I already know that the Microsoft.TeamFoundation.Client.dll file

Could not load file or assembly 'Intelligencia.UrlRewriter' or one of its dependencies. The system cannot find the file specified

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 11:41:43
问题 i am installing URL rewriting DLL (from http://urlrewriter.net/) to GAC. (if i keep dll in BIN folder it works perfectly) but keeps throwing error. Could not load file or assembly 'Intelligencia.UrlRewriter' or one of its dependencies. The system cannot find the file specified. (E:\Test\web.config line 28) wondering is it because dll is http module.. and installed in GAC creating problem ? (because rest all dlls work perfectly fine in GAC) i looked in to all internet resource for this error.

WebResource.axd throwing exceptions in web farm

左心房为你撑大大i 提交于 2019-12-01 11:16:47
问题 We have an array of about 12 servers serving a website. Over the past few hours, one single server has started throwing exceptions for WebResource.axd and ScriptResource.axd requests. Exception System.Web.HttpException - This is an invalid script resource request. Stack Trace at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication

Asp.net Reinstalling a DLL into the GAC

青春壹個敷衍的年華 提交于 2019-12-01 09:15:36
I'm trying to re-install a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one. The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference in the web.config is not a good solution. Restarting the IIS server or the worker process isn't an option as there are already 50 sites running that must continue to do so. does anyone know what i'm doing wrong or what i can do to remedy this situation? AFAIK, you need to restart IIS for it

How to add a dll to gac in vista

隐身守侯 提交于 2019-12-01 05:18:38
When I drag & drop a dll to the assembly folder on vista, I get the error "Access is denied: mydll.dll". How can I bypass the error message and add my dll to gac? My guess would be that you have to do it as an administrator...try either disabling UAC, or using gacutil.exe to add your assembly. Use runas command to run gacutil as a user with local admin rights to register the dll to GAC. You may not locate gacutil.exe in your windows folder while using vista. It's not included because of vista's "Logo Program blah blah" thing. Try to use windows installer to add your assemblies into gac. This

How to add a dll to gac in vista

风格不统一 提交于 2019-12-01 01:57:28
问题 When I drag & drop a dll to the assembly folder on vista, I get the error "Access is denied: mydll.dll". How can I bypass the error message and add my dll to gac? 回答1: My guess would be that you have to do it as an administrator...try either disabling UAC, or using gacutil.exe to add your assembly. 回答2: Use runas command to run gacutil as a user with local admin rights to register the dll to GAC. 回答3: You may not locate gacutil.exe in your windows folder while using vista. It's not included

How can i get the location of the GAC using C#?

百般思念 提交于 2019-12-01 00:03:49
How can i get the location of the GAC directory using C#? Exist an entry in the Windows Registry? UPDATE I need the location because, i want to enumerate and analyze the assemblies located in the GAC. Bye. If you want to enumerate the stuff in the GAC (e.g. writing an system administration tool) your best option is to use the fusion.dll although this requires some interop code on your side. Link to Microsoft for Fusion.DLL Documentation It is in the %windir%\Assembly folder. Dan got the answer first as far as a code example though. Is it not always %windir%\assembly ? edit: c:\Windows>dir

Assembly in GAC is not copied to output in project that references a project that references the GAC assembly with CopyLocal=true

北城余情 提交于 2019-11-30 17:42:44
I have a "Project A" that references System.Web.Mvc with CopyLocal=TRue. System.Web.Mvc is in the GAC both on my local maching and on the buildserver. I also have a "Project B" that references "Project A" in the output for "Project B" System.Web.Mvc is not copied to during the build. I suspect that this is because it is in the GAC. Is this true? And can I do something to make MSBuild copy it to the output folder? I read the answer from Muse VsExtensions in this thread, which talks about only the direct reference to the GAC, however we have an indirect reference through "Project A": .NET

Methods to programmatically install a .NET assembly into the GAC

给你一囗甜甜゛ 提交于 2019-11-30 13:06:50
I need to create a small app or script to install a .NET assembly into the GAC. I've read there are a couple ways to do this including: using gacutil.exe executing the following line of code: new System.EnterpriseServices.Internal.Publish().GACInstall("Foo.dll"); However, what would happen if I just created the appropriate directories on the machine and copied the assembly into that directory? The structure of the GAC directory is the following: C:\Windows\assembly\GAC_MSIL\Foo\<version#>__<public token>\Foo.dll Do the above two methods do anything special besides creating the folder structure