Hi,

I have an asp.net webapp that works fine on my development machine,
win2k/iis5 however, when I move the site across to win2k3 / iis6 i get the
following 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.
*------------------------------------------*

This error only ocours on postback of a page.
I assume its a setting somewhere to tweak as it works fine on iis5.

Any advice?

Many thanks

Terry.

Re: Moved to IIS6 from IIS5 by jeff

jeff
Wed May 31 05:54:51 CDT 2006

On Tue, 30 May 2006 13:20:50 +0100, "Terry Strachan"
<terry@nospamthanksimfull.mertongroup.co.uk> wrote:

>Hi,
>
>I have an asp.net webapp that works fine on my development machine,
>win2k/iis5 however, when I move the site across to win2k3 / iis6 i get the
>following 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.
>*------------------------------------------*
>
>This error only ocours on postback of a page.
>I assume its a setting somewhere to tweak as it works fine on iis5.
>
>Any advice?

Obvious checks would be that you had enabled ASP.NET on IIS6 and that
you configured an application root for your app. Many other
possibilities exist here too, outside of IIS settings. Have you
tested on a Hello World ASPX page? Have you changed the framework
version? Probably want to check a .NET group also since these errors
may not be fixable in IIS if IIS is configured to run ASP.NET.

Jeff