Object reference not set to an instance of an object

Topics: Web Client Software Factory, User Forum
Jun 5, 2007 at 11:44 AM
Edited Jun 5, 2007 at 11:46 AM
Hi!

Everytime I try to make a deploy from my laptop (VS2005SP1; WinVistaEnterprisex64) to the production server (IIS6.0; WinServer2003StdSP1_x86). I get the following error when I try to access to a webpage link from the published website

Does it ring a bell to anyone?

Thanks,

Miguel

                                    • Page Error *************************************

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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


NullReferenceException: Object reference not set to an instance of an object.
Maeil.Medflow.Modules.Colaboradores.ColaboradoresController.get_Empresas() in C:\Users\mfigueiredo\Documents\Visual Studio 2005\Projects\Medflow System 2\Medflow Web Client\Modules\Colaboradores\Colaboradores\ColaboradoresController.cs:61
Maeil.Medflow.Modules.Colaboradores.ColaboradoresController.GetEmpresas() in C:\Users\mfigueiredo\Documents\Visual Studio 2005\Projects\Medflow System 2\Medflow Web Client\Modules\Colaboradores\Colaboradores\ColaboradoresController.cs:112
Maeil.Medflow.Modules.Colaboradores.Views.DefaultViewPresenter.OnViewInitialized() in C:\Users\mfigueiredo\Documents\Visual Studio 2005\Projects\Medflow System 2\Medflow Web Client\Modules\Colaboradores\Colaboradores\Views\DefaultViewPresenter.cs:38
ColaboradoresDefault.PageLoad(Object sender, EventArgs e) +24
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

                                    • Event Viewer *************************************

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 05-06-2007
Time: 10:59:32
User: N/A
Computer: TOURO
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/5/2007 10:59:32 AM
Event time (UTC): 6/5/2007 9:59:32 AM
Event ID: 97776d2499e0420fa50417047446394c
Event sequence: 23
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/MEDFlow-1-128255110878593750
Trust level: Full
Application Virtual Path: /MEDFlow
Application Path: E:\MEDFLOW\
Machine name: TOURO

Process information:
Process ID: 304
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.

Request information:
Request URL: http://TOURO/medflow/Colaboradores/Default.aspx
Request path: /medflow/Colaboradores/Default.aspx
User host address: 62.28.X.XXX
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at Maeil.Medflow.Modules.Colaboradores.ColaboradoresController.get_Empresas() in C:\Users\mfigueiredo\Documents\Visual Studio 2005\Projects\Medflow System 2\Medflow Web Client\Modules\Colaboradores\Colaboradores\ColaboradoresController.cs:line 61
at Maeil.Medflow.Modules.Colaboradores.ColaboradoresController.GetEmpresas() in C:\Users\mfigueiredo\Documents\Visual Studio 2005\Projects\Medflow System 2\Medflow Web Client\Modules\Colaboradores\Colaboradores\ColaboradoresController.cs:line 112
at Maeil.Medflow.Modules.Colaboradores.Views.DefaultViewPresenter.OnViewInitialized() in C:\Users\mfigueiredo\Documents\Visual Studio 2005\Projects\Medflow System 2\Medflow Web Client\Modules\Colaboradores\Colaboradores\Views\DefaultViewPresenter.cs:line 38
at ColaboradoresDefault.PageLoad(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.