473,320 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error only on production server

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
3 1714
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
5
by: VinnieT | last post by:
I have a load balanced system that consists of 3 production servers. There are about 20 different applications that are used on these boxes. One of my applications in particular is used more than...
7
by: astro | last post by:
Anyone have suggestions on where to troubleshoot this error? Background: -Access 2k v. 9.0.6926 sp3 - front and backend on production server (wiindows 2k) -accessed via Citrix -front-end is...
3
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of...
2
by: hfk0 | last post by:
Hello, I'm a newbie here and was wondering anyone could help me with this. I have a simple ASP.NET 2 web application running perfectly fine with IIS and SQLServerExpress installed locally on...
0
by: Ned Balzer | last post by:
I have a puzzling problem. I am using some code I found in another thread here to output the results of a gridview to excel. Here is the subroutine: Sub SendToExcel(ByVal Source As Object,...
9
by: sara | last post by:
Hi - I have code (below) that ran as recently as Monday. We decided to change the location for the output reports, and now the code errors (13 Type Mismatch) on the query. The query runs fine...
1
by: Adrienne Boswell | last post by:
This is the strangest thing. On my local beta server (WinXP Pro SP3, PHP 5.2.3), I am getting an unexpected $end. On the production server, I am not. The files are identical. Just for shits and...
6
by: Bobby Edward | last post by:
Using ASP.NET 3.5 and MySQL (thru DevArt MyDirect.NET)... On the production server I get a "Parser Error" for every XSD dataset. It works perfect on my dev machine. But, on the production...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.