Thanks for the reply,
I have access to the code and line number (see below), however,
I am at a loss as to why the exact same webpages run on my IIS5 machine.
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLogin.Click
Dim oWebUser As cmvWebUser = New cmvWebUser
Dim oUser As cmvUser = New cmvUser
If tbUserName.Text = "" Or tbPassword.Text = "" Then
lblMissing.Text = "Please enter user ID and password"
Else
oUser = oWebUser.LogOn(tbUserName.Text, tbPassword.Text,
Session.SessionID)
Dim oRegistration As cmvRegistration = New cmvRegistration
*-->>>If oUser.Security = "ADMIN" Then
oRegistration =
oRegistration.GetRegistration(tbUserName.Text)
If oRegistration.Approved = "A" Then
Response.Redirect("/client/activation.aspx?UserID=" &
tbUserName.Text)
End If
If oRegistration.Approved = "N" Then
Response.Redirect("/client/approve.aspx")
End If
End If
End Sub
The oWebUser.LogOn method interacts with our back office system (mvbase) to
verify the login details. I have a telnet session logged on to the same
port so I can watch the transaction however, it doesnt fire.
It stops at the oUser.Security = "ADMIN" line, which the object is created
a few lines before from class cmvUser.
I am trying to set up remote debugging to see what is and isnt firing, but
windows 2000, VSNet 2003 on my development machine and Win 2003 and iis6 on
my server are giving me all sorts of problems and many hours googling... I
am at a stage now where I need to install the remote debugging components on
the server, only to find the disc isnt on site. It will have to wait till
tmrw.
Terry.
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:uR**************@TK2MSFTNGP04.phx.gbl...
Without code and a line number it's impossible to debug. There's nothing
specific about iis 6 that jumps in my mind. NullReference errors tend to
be _very_ easy to debug though...If you deploy your pdb and get a line #,
you'll have it fixed in a couple minutes.
Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Terry Strachan" <te***@nospamthanksimfull.mertongroup.co.uk> wrote in
message news:O4**************@TK2MSFTNGP05.phx.gbl... Hi,
I have an asp.net webapp that works fine on my development machine,
win2k/iis5 however, when I move the site across to win2k3 / iis6 i get
the following error on postback of any page;
*------------------------------------------*
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.
*------------------------------------------*
This error only ocours on postback of a page standard aspx pages with
code behind etc work fine, but on postback - bang. I assume its a setting
somewhere to tweak as it works fine on iis5.
I have tried IIS5 Issolation mode in IIS6 but it is still the same.
Any advice?
Many thanks
Terry.