Tuesday, March 27, 2018

Delete a key from registry - Permission denied issue

get psexec is available from Microsoft here

And then go to the folder of psexec and run following command. 
psexec -i -d -s c:\windows\regedit.exe

It will open regedit. then set the permisison in there and then you can delete. 


Thursday, March 8, 2018

Flush IIS Logs in Real Time

Use following command to flush IIs Logs in real time without 60 seconds wait.

netsh http flush logbuffer

can run following command in background 

while true; do netsh http flush logbuffer > /dev/null; sleep 1; done &

and then tail
tail -100f u_ex130814.log

Tuesday, March 6, 2018

Trace WCF communication in Fiddler

Add following in your web.config file. makes sure that fiddler proxy port (8888) is correct. (in Tools --> Options --> Connections)

<system.net>
<defaultProxy>
<proxy bypassonlocal="False" usesystemdefault="True" proxyaddress="http://127.0.0.1:8888" />
</defaultProxy>
</system.net>