Avatar of Jimbo99999
Jimbo99999
Flag for United States of America asked on

ASP.Net - Debugging

Good Day Experts!

I have finally been able to compile and run our website locally! I am new to ASP.Net but currently work with VB.Net windows.  So, I try to login with my username and password like normal on the production site and I receive an error when I click Login.  So, like VB.Net I go to the Login.aspx and double click the Login button and I put  a breakpoint on the first line inside the click.  Unfortunately, the code doesnt stop at the breakpoint!

I am not sure if it going right past it or just never makes it there.  I have it on the very first line inside the click.  Is there something different with ASP.Net with regards to debugging? Or should I be able to hit a breakpoint and step through the code like VB.Net?

Thanks,
jimbo99999
ASP.NET

Avatar of undefined
Last Comment
Jimbo99999

8/22/2022 - Mon
Rajar Ahmed

These are my thoughts hope it works for u :
1.Run application by f5
2.In web.config Put :
      <system.web>
            <compilation debug="true" />
      </system.web>
3.Check Menu Debug - >Select Enable All break point if u find this option.
4.In any events u should have handles otherwise your breakpoint doesnot work
For EG:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

End sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub
Jimbo99999

ASKER
The program '[1000] aspnet_wp.exe: DefaultDomain' has exited with code 0 (0x0).
The program '[1000] aspnet_wp.exe: /LM/W3SVC/1/Root/ITS_WEB-8-129865166968356994' has exited with code 0 (0x0).

Open in new window

Thanks for replying.

All of your suggestions I was unaware of trying.  I verified all of them to be present  as you indicated.  I just did notice the 2 embedded lines of code that are showing up last in my debug window.  The two lines show and then the Login screen appears.

Does this sound like the trouble?

Thanks,
jimbo99999
kaufmed

Is your solution set up in DEBUG or RELEASE configuration?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
Rajar Ahmed

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jimbo99999

ASKER
Next to my arrow at the top, Debug is showing.  I did find another file called Head.ascx.vb is being run before Login. It also has a Page_Load.  I put breakpoint at the top there and it stopped on the breakpoint for a few seconds(turned yellow highlight), then kept going again and the Login Page showed.
Jimbo99999

ASKER
Well, good news!

I found a solution in searching through the link that meeran03 provided.

1) Open RegEdit 2) Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main 3) Add a dword under this key called TabProcGrowth 4) Set TabProcGrowth to 0

Thanks for the help,
jimbo99999