Saya mencoba membuat Pengalihan HTTP 302, tetapi mendapatkan pengecualian berikut saat saya menjalankan dalam mode debug.
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
var response = HttpContext.Current.Response;
response.Clear();
response.Status = "302 Found";
response.AddHeader("Location", "http://google.com");
response.End();
response.Flush();
Singkat cerita, panggilan ini tidak menghilangkan respons dan tidak mengalihkan.
Bagaimana saya bisa membuat ini berfungsi?