Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please Help
When i am clicking on export button getting this error

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Posted

1 solution

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
This means that there was some exception which you failed to trap (probably you were not anticipating that scenario).

Put a Try-Catch block around the code line where the exception is being raised to track it. Handle the scenario such that exception does not happen or log the exception for tracking it in your catch block. Stack trace will help you to spot the line of code & method involved.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900