Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9102939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:30:23+00:00 2026-06-17T01:30:23+00:00

I created the sample for role authentication in asp.net 2005. I created the login

  • 0

I created the sample for role authentication in asp.net 2005. I created the login panel on my default.aspx page and after login it works fine. Iused the code as below for login

FormsAuthentication.RedirectFromLoginPage(txtUName.Text, true, urlpath);
FormsAuthentication.SetAuthCookie(txtUName.Text, true);
Response.Redirect(urlpath, false);

I used all required page links in a single master page that is shown after login.
I used the code in master page for “logout” like below on clicks of link button

 try
 {
      Response.Redirect("~/Logout.aspx" );
 }
 catch (Exception ee)
 { 
      return;
 }

Now when I logout from master page I got an error like this

unable to evaluate expression because the code is optimized or native frame is on top of call stack

I have goggled but not got the solution. I am unable to find-out the reason behind this.
Please provide the proper solution.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:30:25+00:00Added an answer on June 17, 2026 at 1:30 am
    http://support.microsoft.com/kb/312629/en-us
    

    To work around this problem, use one of the following methods:
    •For Response.End, call the HttpContext.Current.ApplicationInstance.CompleteRequest method instead of Response.End to bypass the code execution to the Application_EndRequest event.

    •For Response.Redirect, use an overload, Response.Redirect(String url, bool endResponse) that passes false for the endResponse parameter to suppress the internal call to Response.End. For example:
    Response.Redirect (“nextpage.aspx”, false);

    If you use this workaround, the code that follows Response.Redirect is executed.
    •For Server.Transfer, use the Server.Execute method instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a sample webservice which contain default 'HelloWorld' function as 'webmethod' when tried
I am learning MVVM using sample created by Josh Smith at http://msdn.microsoft.com/en-us/magazine/dd419663.aspx I wanted
I've created an ADO.Net WCF Data Service hosted in a Azure worker role. I
i want to implement asp.net role provider to assign users over my LAN to
I have an ASP.NET MVC project in C# using Forms Authentication and Active Directory
Setting role when creating new user with ASP.net MVC I am looking at the
I created sample rails app and deployed into heroku. Rails version is 3.1.3 Ruby
I wanted to learn something about Spring and Maven, so I created sample Maven
I created a sample application using Android TextView with shared preferences . In my
I have created a sample report with crystal report 10. Now, I wanna to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.