Some time this error occur after upgrading old Visual Studio project to new. Here is the quick fix.
Check necessary files in the App_Themes directory. When we publish our project then some files could be missed. Right click on that file (that are missed) click on property and choose “Copy to Output Directory” set as “Copy always“.
This exception occur when we try to redirect a page. Solution: To solve this problem we should use second argument of Response.Redirect that will stop current pageâ€™s execution and move to next page. Sencond argument should be false. Full solution is below [sociallocker] Response.Redirect(“http://www.wisdomitsol.com”,false); [/sociallocker]