Server.Transfer exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mathana Gopalan

    Server.Transfer exception

    Hello,

    We are using Server.Transfer method to navigate from one page to
    another(beacaus e we need to send some values from source to destination
    page). It's working fine but after Server.Transfer method, the system throws
    an exception of ThreadAbortExce ption and logs the same to event log of the
    server. So the event log is accumulated with these errors.

    Can anybody help me to overcome this problem.

    Thanks in advance
    Mathana Gopalan.C



  • Rakesh Rajan

    #2
    RE: Server.Transfer exception

    Hi,

    You are probably calling Server.Transfer within a try-catch block. This
    method will call End which will raise the ThreadAbortExce ption (this is by
    design), which causes it to be caught by your catch block.

    Move the call to Server.Transfer outside the try-catch block to prevent this
    from happening.

    HTH,
    Rakesh Rajan

    "Mathana Gopalan" wrote:
    [color=blue]
    > Hello,
    >
    > We are using Server.Transfer method to navigate from one page to
    > another(beacaus e we need to send some values from source to destination
    > page). It's working fine but after Server.Transfer method, the system throws
    > an exception of ThreadAbortExce ption and logs the same to event log of the
    > server. So the event log is accumulated with these errors.
    >
    > Can anybody help me to overcome this problem.
    >
    > Thanks in advance
    > Mathana Gopalan.C
    >
    >
    >
    >[/color]

    Comment

    Working...