By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,706 Members | 2,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,706 IT Pros & Developers. It's quick & easy.

Error only on production server

P: n/a
Server Error in '/netapps' 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:

Hi All,

I've just tried to deploy an asp.net app. It works AOK on my
development server. On the production server, I get the error below.

Both servers are Windows 2000 SP4 with .Net Framework v1.1.4322

Many Thanks,

Simon.

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.]
gis.GIS_Mapping.GetMapScaleInt(ImageButton MapImage)
gis.map_display.SetScaleLable()
gis.map_display.RenderMapDisplay()
gis.map_and_property_info.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

The error indicates that there is a missing DLL or a missing reference to
the DLL
which is being called in your application, on the production server.

Please debug the application on the production server to get to know the
details of the missing DLL.

HTH

Mona[Grapecity]

"Web Team @ Borough of Poole" <we*********@poole.gov.uk> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Server Error in '/netapps' 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:

Hi All,

I've just tried to deploy an asp.net app. It works AOK on my
development server. On the production server, I get the error below.

Both servers are Windows 2000 SP4 with .Net Framework v1.1.4322

Many Thanks,

Simon.

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.]
gis.GIS_Mapping.GetMapScaleInt(ImageButton MapImage)
gis.map_display.SetScaleLable()
gis.map_display.RenderMapDisplay()
gis.map_and_property_info.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

Nov 19 '05 #2

P: n/a
Thanks Mona,

Could you please advise how I can debug on the production server?

This is what I have done:

Copied (From dev > production):

- Various ASPX and 1 ASCX files to /netapps/gis
- 3 x DLLs (Result of my project build on dev server) to /netapps/bin
- Appsettings keys to machine.config (As they are in dev server)

Note that on our dev server, we work like this:
- /netapps/projectname <-- Stores aspx/ascx files, this is set as an
app in IIS
- /netapps/projectname/bin <-- Stores DLLS for project

Note that on our production server, we work like this:
- /netapps <-- Set as an app in IIS
- /netapps/bin <-- Stores ALL our DLL's
- /netapps/projectname <-- Stores aspx/ascx, this is *not* set as an
app in IIS

Other projects work fine like this - We have only ever had a problem
similar where we deployed a debug version to the production server.

The only difference I see in this app, is that it is the first app that
uses web services (x2).

Any help will be appreciated - I'm supposed to be going live on
Tuesday! :-(

Regards,
Simon.

Nov 19 '05 #3

P: n/a
Solved it - I had not copied across global.asax, within which I was
initiating a session which stored a reference to a web service. Always the
simple stuff that gets ya! Doh! :)
Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.