Deploy fails on production server
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngfreeforall' list.


=?iso-8859-1?Q?Jonathan_Hjertstr=F6m?=
Hi,

I got a strange problem.

I have a page where I dynamically load web controls to. The code works =
great on my development server but now when testing it on the production =
server it fails with this error:
-----------------------------------------------------------------------
Server Error in '/' 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:

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.]
=
misjudiciary.k2informatics.com.MIS.controlsadd.StationNoJudgeListControl(=
) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:319
misjudiciary.k2informatics.com.MIS.controlsadd.ReportSelection(String =
MySelection) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:222
=
misjudiciary.k2informatics.com.MIS.controlsadd.ReportSelectionChange(Obje=
ct sender, TreeViewSelectEventArgs e) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:180
=
Microsoft.Web.UI.WebControls.TreeView.OnSelectedIndexChange(TreeViewSelec=
tEventArgs e) +21
Microsoft.Web.UI.WebControls.TreeView.RaisePostDataChangedEvent() =
+120
Microsoft.Web.UI.WebControls.TreeView.RaisePostBackEvent(String =
eventArg) +24
=
Microsoft.Web.UI.WebControls.BasePostBackControl.System.Web.UI.IPostBackE=
ventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler =
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) =
+138
System.Web.UI.Page.ProcessRequestMain() +1263

Version Information: Microsoft .NET Framework Version:1.0.3705.288; =
ASP.NET Version:1.0.3705.288

-----------------------------------------------------------------------

Line 319 has this code:
whatever.Controls.Add(MIS.ReportSection.StationMagistrateList(lbStationMa=
gistrateList, ddlMagesterialArea.SelectedItem.Value))

Why would it crash on the production server? It has exactly the same =
software (W2k sp3, dotnet framework sp2). To troubleshoot I also =
installed a new test server with exactly the same software and =
configuration (the server is NOT a domain controller). The code works on =
the new test server! What could be the difference? Are there any known =
security problems that could cause this?

I did a Copy Project from Visual Studio. Could that cause something?
I also tried just copying the files and finally I also tried to make a =
web setup file.

I am now desperate because I need to supply the code to the customer!

Many thanks for any help!!!!!!!!!!

/
**************************************************************
Jonathan Hjertstr=F6m,
Software Developer, K2-Informatics (U) Ltd.
32, Kanjokya Street, Kololo, P.O. Box 8628,
Kampala, Uganda
tel. +256 41 532 865 / 871 / 873
fax. +256 41 532 910
http://www.k2informatics.com
**************************************************************

Reply to this message...
 
    
=?iso-8859-1?Q?Jonathan_Hjertstr=F6m?=
I forgot to mention that all other pages work fine and that I am using =
the same database (Sybase ASA 6.0 with Microsoft .NET ODBC)

Also when I build my project in Release version it fails on all servers. =
But as I wrote before in Debug mode it works fine on two servers but not =
on the real server for production.

I really hope anyone can help me!

Jonathan Hjertstr=F6m

-----Original Message-----
From: Jonathan Hjertstr=F6m=20
Sent: den 15 augusti 2002 10:53
To: aspngfreeforall
Subject: [aspngfreeforall] Deploy fails on production server

Hi,

I got a strange problem.

I have a page where I dynamically load web controls to. The code works =
great on my development server but now when testing it on the production =
server it fails with this error:
-----------------------------------------------------------------------
Server Error in '/' 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:

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.]
=
misjudiciary.k2informatics.com.MIS.controlsadd.StationNoJudgeListControl(=
) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:319
misjudiciary.k2informatics.com.MIS.controlsadd.ReportSelection(String =
MySelection) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:222
=
misjudiciary.k2informatics.com.MIS.controlsadd.ReportSelectionChange(Obje=
ct sender, TreeViewSelectEventArgs e) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:180
=
Microsoft.Web.UI.WebControls.TreeView.OnSelectedIndexChange(TreeViewSelec=
tEventArgs e) +21
Microsoft.Web.UI.WebControls.TreeView.RaisePostDataChangedEvent() =
+120
Microsoft.Web.UI.WebControls.TreeView.RaisePostBackEvent(String =
eventArg) +24
=
Microsoft.Web.UI.WebControls.BasePostBackControl.System.Web.UI.IPostBackE=
ventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler =
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) =
+138
System.Web.UI.Page.ProcessRequestMain() +1263

Version Information: Microsoft .NET Framework Version:1.0.3705.288; =
ASP.NET Version:1.0.3705.288

-----------------------------------------------------------------------

Line 319 has this code:
whatever.Controls.Add(MIS.ReportSection.StationMagistrateList(lbStationMa=
gistrateList, ddlMagesterialArea.SelectedItem.Value))

Why would it crash on the production server? It has exactly the same =
software (W2k sp3, dotnet framework sp2). To troubleshoot I also =
installed a new test server with exactly the same software and =
configuration (the server is NOT a domain controller). The code works on =
the new test server! What could be the difference? Are there any known =
security problems that could cause this?

I did a Copy Project from Visual Studio. Could that cause something?
I also tried just copying the files and finally I also tried to make a =
web setup file.

I am now desperate because I need to supply the code to the customer!

Many thanks for any help!!!!!!!!!!

/
**************************************************************
Jonathan Hjertstr=F6m,
Software Developer, K2-Informatics (U) Ltd.
32, Kanjokya Street, Kololo, P.O. Box 8628,
Kampala, Uganda
tel. +256 41 532 865 / 871 / 873
fax. +256 41 532 910
http://www.k2informatics.com
**************************************************************

| ASP.net DOCS =3D http://www.aspng.com/docs
| [aspngfreeforall] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/aspngfreeforall =3D JOIN/QUIT
| news://ls.asplists.com =3D NEWSGROUP

Reply to this message...
 
    
=?iso-8859-1?Q?Jonathan_Hjertstr=F6m?=
Problem solved.

It was database connectivity that failed on the production server.

Sorry for wasting bandwidth.

/

Jonathan Hjertstr=F6m

-----Original Message-----
From: Jonathan Hjertstr=F6m=20
Sent: den 15 augusti 2002 12:34
To: aspngfreeforall
Subject: [aspngfreeforall] RE: Deploy fails on production server

I forgot to mention that all other pages work fine and that I am using =
the same database (Sybase ASA 6.0 with Microsoft .NET ODBC)

Also when I build my project in Release version it fails on all servers. =
But as I wrote before in Debug mode it works fine on two servers but not =
on the real server for production.

I really hope anyone can help me!

Jonathan Hjertstr=F6m

-----Original Message-----
From: Jonathan Hjertstr=F6m=20
Sent: den 15 augusti 2002 10:53
To: aspngfreeforall
Subject: [aspngfreeforall] Deploy fails on production server

Hi,

I got a strange problem.

I have a page where I dynamically load web controls to. The code works =
great on my development server but now when testing it on the production =
server it fails with this error:
-----------------------------------------------------------------------
Server Error in '/' 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:

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.]
=
misjudiciary.k2informatics.com.MIS.controlsadd.StationNoJudgeListControl(=
) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:319
misjudiciary.k2informatics.com.MIS.controlsadd.ReportSelection(String =
MySelection) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:222
=
misjudiciary.k2informatics.com.MIS.controlsadd.ReportSelectionChange(Obje=
ct sender, TreeViewSelectEventArgs e) in L:\Web =
Sites\misjudiciary.k2informatics.com\ReportSelect.aspx.vb:180
=
Microsoft.Web.UI.WebControls.TreeView.OnSelectedIndexChange(TreeViewSelec=
tEventArgs e) +21
Microsoft.Web.UI.WebControls.TreeView.RaisePostDataChangedEvent() =
+120
Microsoft.Web.UI.WebControls.TreeView.RaisePostBackEvent(String =
eventArg) +24
=
Microsoft.Web.UI.WebControls.BasePostBackControl.System.Web.UI.IPostBackE=
ventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler =
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) =
+138
System.Web.UI.Page.ProcessRequestMain() +1263

Version Information: Microsoft .NET Framework Version:1.0.3705.288; =
ASP.NET Version:1.0.3705.288

-----------------------------------------------------------------------

Line 319 has this code:
whatever.Controls.Add(MIS.ReportSection.StationMagistrateList(lbStationMa=
gistrateList, ddlMagesterialArea.SelectedItem.Value))

Why would it crash on the production server? It has exactly the same =
software (W2k sp3, dotnet framework sp2). To troubleshoot I also =
installed a new test server with exactly the same software and =
configuration (the server is NOT a domain controller). The code works on =
the new test server! What could be the difference? Are there any known =
security problems that could cause this?

I did a Copy Project from Visual Studio. Could that cause something?
I also tried just copying the files and finally I also tried to make a =
web setup file.

I am now desperate because I need to supply the code to the customer!

Many thanks for any help!!!!!!!!!!

/
**************************************************************
Jonathan Hjertstr=F6m,
Software Developer, K2-Informatics (U) Ltd.
32, Kanjokya Street, Kololo, P.O. Box 8628,
Kampala, Uganda
tel. +256 41 532 865 / 871 / 873
fax. +256 41 532 910
http://www.k2informatics.com
**************************************************************

| ASP.net DOCS =3D http://www.aspng.com/docs
| [aspngfreeforall] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/aspngfreeforall =3D JOIN/QUIT
| news://ls.asplists.com =3D NEWSGROUP

| ASP.net DOCS =3D http://www.aspng.com/docs
| [aspngfreeforall] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/aspngfreeforall =3D JOIN/QUIT
| news://ls.asplists.com =3D NEWSGROUP

Reply to this message...
 
 
System.Collections.Specialized.NameValueCollection
System.NullReferenceException
System.Web.UI.IPostBackEventHandler
System.Web.UI.Page




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com