See if this works instead http://msdn.microsoft.com/en-us/library/system.web.httpruntime.unloadappdomain(v=vs.110).aspx