Link to home
Create AccountLog in
Avatar of Jimbo99999
Jimbo99999Flag 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
Avatar of Rajar Ahmed
Rajar Ahmed
Flag of India image

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
Avatar of 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
Is your solution set up in DEBUG or RELEASE configuration?
ASKER CERTIFIED SOLUTION
Avatar of Rajar Ahmed
Rajar Ahmed
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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.
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