Wednesday, June 20, 2012

ASP.NET background thread

http://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx

http://blogs.msdn.com/b/tmarq/archive/2010/04/14/performing-asynchronous-work-or-tasks-in-asp-net-applications.aspx

In v4.0 ASP.NET, we won’t unload the AppDomain until all requests have completed. In v2.0/3.5 ASP.NET in IIS 7 integrated mode, we also won’t unload the AppDomain until all the requests have completed.  In v2.0/3.5 classic mode, we will only wait until httpRuntime/shutdownTimeout has been exceeded before unloading the AppDomain, so long running async requests are vulnerable to being rudely aborted.  To work around this, you’d want the shutdownTimeout to be sufficiently long.

Wednesday, April 25, 2012

How to remove incomplete uninstalled package

Use msizap.exe T ___.msi See http://www.advancedinstaller.com/user-guide/qa-forced-uninstall.html

Thursday, February 23, 2012

Forcing Windows 7 to connect to SAMBA using old authentication method

For Windows 7 Pro
  1. from the run command or from a cmd window run secpol.msc
  2. go to “Local Policies” -> “Security Options” -> “Network Security: LAN Manager authentication level”
  3. change to “LM and NTLM – use NTLMV2 session security if negotiated”
  4. Press the OK button

For Windows 7 Home
- Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LsaCreate a new DWORD value with the following properties: NAME: LmCompatibilityLevel VALUE: 1