Difference between debug and release bug?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I'm about to try deploying my ASP.NET application, written with the 1.1
Framework. I'm coming across something odd when compiling in Debug and
Release mode.

When compiling in Debug mode, I am able to run the application smoothly and
get things done in my application.

However, when I switch to Release mode, and try saving data back to my
database (through Remoting) the following exception is thrown:

[NullReferenceException: Object reference not set to an instance of an
object.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) +877

Why wouldn't have this been caught and thrown when I'm in Debug mode? Has
anyone come across this?

Thanks for any help.

Chris Pielak
 
Not neccessarily. I presume you have also switched from development to
production servers? This could have an affect. Its important to test on a
variety of platforms running under a variety of different priviledges before
you release it.

Ian
 

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

Back
Top