473,545 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difference between debug and release bug?

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:

[NullReferenceEx ception: Object reference not set to an instance of an
object.]
System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
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
2 2294
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****@discussi ons.microsoft.c om> wrote in message
news:2E******** *************** ***********@mic rosoft.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:

[NullReferenceEx ception: Object reference not set to an instance of an
object.]
System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
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
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****@discussi ons.microsoft.c om> escribió en el
mensaje news:2E******** *************** ***********@mic rosoft.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:

[NullReferenceEx ception: Object reference not set to an instance of an
object.]
System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6971
by: codymanix | last post by:
What are the Differences between Debug & Release? Is the byte code the same and there is only difference in JIT compilation? And is there a great impact to Performance? In c++, there where checks in generated code that verified in debug mode that objects are valid, checks to verify the integrity of the stack, delete filled objects with...
6
3839
by: ss | last post by:
Hi I built an exe in console debug mode & Release mode . The console debug mode -exe works fine ...but the release mode EXE starts well but fails mid way . The exe is being started as a service. So I need the Release mode EXE. I've checked the dlls being used . they are working fine for other services.
0
1222
by: Vani | last post by:
Has anyone come across this issue? There seems to be a behavioral difference (and possible bug) in visual strudio 2003 when building a vc.net solution through IDE and building the same solution through command line using "devenv". The linker seems to be failing when build is invoked through command line. Here are the differences: (There...
9
1986
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb file? Is the .pdb necessary for the release version? Thanks a bunch. Dara
3
2180
by: | last post by:
Since I need to dotfuscate my exe file anyway, does it make any difference if I use Debug or Release versions. Would a Debug version be easier to decompile/study/reverse engineer than a Release version, both having been dotfuscated by the standard dotfuscator of visual studio 2003 ? Tia
3
1227
by: Soundman32 | last post by:
I have written a program that runs fine when launched from a PC with VS2005 installed, but crashes when launched on a PC with just the redistributable installed. The message is the standard dialog box '..has encountered a problem and needs to close'. Please tell microsoft about this problem. There is no exception shown. I can't...
6
9126
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the...
5
3389
by: Jonas Hallgren | last post by:
Hello, Is there any general tips on how to solve this problem: my Debug version runs fine but when I do a Release version I get error messages!? I'm hoping it is a simple option somewhere or a flag I can set... Regards, Jonas
3
1969
by: TBass | last post by:
Hello, Is there a way to get Visual Studio 2003 look to one directory for debug version dlls when set to DEBUG and then to another directory where I store the release version of a dll when set to RELEASE? My current project uses about 8 dlls I've written in the past, but I don't want to keep re-compiling them for debug/release depending...
0
7502
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7692
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7457
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7791
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6026
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.