Hi - I've been having a problem with not being able to access my website depending on various circumstances. It appears in the example error message below that it is the sqlserver database that is not available but some people have said they can't get in at all but when I try to get in - everything is fine. This problem has been occurring for months now. I have experienced this problem when on holiday in Europe using a hotel computer I got the message below all the time I was there but my colleague in thee UK said that all was ok for him. Another time I could not get through to the first part of the site that calls SQL on a membership lookup when using a dialup modem. I also recently asked a client over the phone what they thought of the site and they said they couldn't get in - although I was in OK. Technical support here say that it's either a programming error (so how come it works most of the time for most people?) or it's something to do with the application pool in IIS 6 being used up (I have no way of adjusting this that I can see other than doing a reset) and maybe I should use IIS 7 to fix this, or it is some sort of network error coming from the particular computer/ISP that is being used. Any help with this will be greatly appreciated. Thank you very much in advance. John ------------------------------------- Server Error in '/AccountantsQuoteMe' 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: Line 4: Line 5: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Line 6: If Membership.GetUser().UserName = "Admini" Or _ Line 7: Membership.GetUser().UserName = "Admin" Or _ Line 8: Membership.GetUser().UserName = "SysAdmin" Or _ Source File: E:\web\accountants\htdocs\AccountantsQuoteMe\RedirectUser.aspx.vb Line: 6
This error means that the object you are trying to use has not been instantiate properly. I would put more error trapping in the code.