Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Here's a strange question: Where does ASP get the code that is reported on error screens?

 

There is a screenshot attached to this message.

 

Now look at the code that is being executed at that line number:

 

526:        If drpChecklist.SelectedItem.Value = "-1" Then
527:            drpWorkcenter.Enabled = False
528:            btnAdd.Enabled = False
529:        Else
530:            WorkcenterPK = GetChecklistWorkcenterPK(Session("ChecklistPK"))
531:
532:            If WorkcenterPK = "NONE" Then
533:                Session("WorkcenterPK") = -1
534:                drpWorkcenter.SelectedIndex = 0
535:            Else
536:                Session("WorkcenterPK") = WorkcenterPK
537:                drpWorkcenter.SelectedValue = WorkcenterPK
538:            End If
539:            Session("WorkcenterNumber") = ViewState("WorkcenterNumber")
540:            Session("WorkcenterName") = ViewState("WorkcenterName")
541:
542:            drpWorkcenter.Enabled = True
543:            btnAdd.Enabled = True
544:        End If

Now a bit about the environment: They have two websites: PMTravelBinder and PMTravelBinderDev.

 

As you can see in the image, the Address is running at PMTravelBinderDev. Now look at the Source in the error screenshot: PMTravelBinder.

 

How does ASP decide what code section to pull to display? I KNOW that the code is executing the right version of the code, since it is running updated functionality from the development environment, but it is displaying code sections from the Production environment.

 

How does it determine where to pull code from?

 

I'm very confused....

 

Kahuna

The three most important things in life: God, your family, and the Green Bay Packers -- Not necessarily in that order.

Winning is not a sometime thing. You don't win once in a while, you don't do things right once in a while, you do them right all the time. Winning is a habit. Unfortunately, so is losing.

-- Vincent T. Lombardi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...