Error only on production server

  • Thread starter Web Team @ Borough of Poole
  • Start date
W

Web Team @ Borough of Poole

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
 
M

Mona

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]
 
W

Web Team @ Borough of Poole

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.
 
S

Simon Harris

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! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top