By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,370 Members | 1,590 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,370 IT Pros & Developers. It's quick & easy.

Difference between debug and release bug?

P: n/a
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.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Chris Pielak" <Chris Pi****@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
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.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(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

Nov 21 '05 #2

P: n/a
If you have also switched machines and not only Release/Debug configuration,
it could be a problem of permissions, of different component versions or
whaever. If the problem happens on the same machine only switching from
Debug to Release, maybe your code has some #If DEBUG statement, or you can
fine-tune the release configuration settings in the project properties
window, Optimizations node.

The point is that you need to locate the offending line in your source code,
and reproduce and isolate the problem to fix it.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Chris Pielak" <Chris Pi****@discussions.microsoft.com> escribió en el
mensaje news:2E**********************************@microsof t.com...
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.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(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

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.