Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

How to debug Reset Password Link

Hello Experts,
I have a Forget Password link in the Login Page.  When clicked, I received an email with a link to Reset the password.  In email, it contains a link, which will take you to the page where you can reset it. The problem is when I click on the link, the page error ed out with the following error message.  Any idea what is going on.  Any idea how to debug the page when loaded directly from the link?  Please let me know if you can.  Thank you in advance.

Thank You!

Server Error in '/' Application.

Object reference not set to an instance of an object.
  Description: 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.

 Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Hi Radha,

Stack trace did not come through. Also do you have access to the app source code or the database? or it is an external app.

Regards,
Chinmay.
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Hello Chinmay,
Thank you for your time and help.  I have access to both the Source Code and Database.  The app is internal.

Thank you!
If you have access to the database then I suggest you simply create a new user using the ASP.Net app and in the database find out the hash of the password. Now copy this hash and paste it in to your existing user's password field and you are good to go.

If you want to debug a deployed app then only way out is to put logging in the code. If it is your own server and you are free to do whatever you wish to do, then simply attach the debugger with the IIS worker process, put debug points in your code and simply open the password reset link.
Chinmay,
I am trying to debug in my own machine.  How can I attach the debugger with IIS worker process?  Please provide the steps or any url.

Thank you!
Hi Radha,

If you have the project itself then you could directly debug from Visual Studio .

1. Right-click your Project within the Solution Explorer.
2. Choose Properties.
3. Select the Web tab on the left-hand side.
4. Under the Start Page section, define the Specific Page you would like to default to when the application is launched.
5. Save your changes.

If you can not do that then you have to manually attach the debugger(Debug -> Attach to Process...) to IIS or IIS Express process - depending upon your setup - W3WP.exe OR IISexpress.exe

Regards,
Chinmay.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.