Re: Error problem: asp.net app trying to reference local file?

From: John Oakes (john_at_networkproductions.net)
Date: 02/16/04


Date: Mon, 16 Feb 2004 08:48:17 -0500

You are trying to access an object that hasn't been instantiated. Look at
quote_processing.aspx.vb, line 359.

"steve_o" <anonymous@discussions.microsoft.com> wrote in message
news:2C21D3EB-9DCB-4CA1-A57C-00128202402A@microsoft.com...
> I have had to create a new project file to update a deployed asp.net
application. I then built the project and using "Copy Project" to deploy to
the live server. Now when the application tries to use code that I have
updated, it crashes with the following error trying to reference the local
file on my development machine.
>
> snip -------------------
>
> 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.]
> admin_feb2004.pnlQuoteProcessing.Send_Quote(Object sender, EventArgs e)
in C:\Inetpub\wwwroot\admin_feb2004\quote_processing.aspx.vb:359
> System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)
+108
>
System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandl
er.RaisePostBackEvent(String eventArgument) +57
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
> System.Web.UI.Page.ProcessRequestMain() +1315
>
> end snip ------------------
>
> The only code changed within this file before building the project was a
url for the source file property of an image. The application prevoiusly
worked fine with another url. I can't imagine that this would start this
frustration.
>
> Any help would be appreciated.