Showing posts with label Environment. Show all posts
Showing posts with label Environment. Show all posts

Monday, November 12, 2012

Browsing the GAC

GAC in fact is here: C:\Windows\Microsoft.NET\assembly\GAC_MSIL 

Obsolete but possibly still useful old trick from http://msmvps.com/blogs/bill/archive/2005/09/20/66921.aspx

You can make it possible to browse the GAC like a set of folders and files and hence access assemblies that are only in the GAC.  Typically I just use a command prompt to do this, but there's a registry hack which lets you do it from explorer:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"DisableCacheViewer"=hex:10
Toogle the value to 0 to go back to the usual view, non zero for folder and file view.  Now when you do that you might find some interesting assemblies.  My favourite at the moment that comes with VS 2005, is:
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Zip
Oh, and an interesting side effect of this is you can now browse to a file in the GAC and add it as a reference to your Visual Studio project.

Monday, May 2, 2011

MVC3, Razor and other cool stuff

I made presentation on Sarasota Barcamp 2011.
For the presentation I created temporary web site greatsarasota.com.
Most resources can be found on http://greatsarasota.com/Home/About

Useful resource

Thursday, February 25, 2010

T4 debugging

To debug T4 under Windows 7 the following registry should be set:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\AeDebug
Auto (REG_SZ) = 1


See also: T4 Tutorial: Debugging Code Generation Files

Thursday, December 17, 2009

Fiddler, localhost in IE, and WCF

Fiddler does not see localhost in IE because it's hard-coded Microsoft secret: localhost can not have proxy, and Fiddler just a proxy. (Strange way to protect something on a client side and believe that there will be no any other clients.) There are two major ways to solve the problem:
  1. Do not use IE. Chrome and (I think) Firefox do not have troubles to proxy "localhost".
  2. a) In C:\WINDOWS\system32\drivers\etc\hosts add line 127.0.0.1       mypc b) When IE started from Visual Studio debugging, say http://localhost:37335/HRAppTestPage.aspx#/EmployeeList replace localhost with mypc: http://mypc:37335/HRAppTestPage.aspx#/EmployeeList Fiddler will see mypc and live goes on.
For WCF-binary there is a plugin for Fiddler: http://code.msdn.microsoft.com/wcfbinaryinspector