473,725 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic Debug Compilation

Hi,

We have an ASP.NET application built in Release mode via Visual Studio.

All of the C# code is in the code-behind files (i.e. *.aspx.cs files)
and there is no C# in the *.aspx files themselves.

In this scenario, will the following setting have any detrimental
effect if left set to true when running a Release build described
above?

<system.web>

<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to enable ASPX debugging.
Otherwise, setting this value to
false will improve runtime performance of this application.
Set compilation debug="true" to insert debugging symbols (.pdb
information)
into the compiled page. Because this creates a larger file that
executes
more slowly, you should set this value to true only when
debugging and to
false at all other times. For more information, refer to the
documentation about
debugging ASP .NET files.
-->
<compilation
defaultLanguage ="c#"
debug="false"
/>

</system.web>
My understanding is that the setting should *only* have an effect if
code is being dynamically compiled (which we are not doing), however
the MSDN is slightly ambiguous and I wanted to check if there were any
other side effects (performance or otherwise) if this setting has been
left enabled on a live site.
Thanks for your time,

Matt

Nov 19 '05 #1
3 2447
The aspx files are converted to C# files (even if there is no C# code in
them). You can see the generated C# files in
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET Files
The folder name can differ depending on where windows is installed on your
machine, and which framework version you are using.
The flag in web.config affects the compilation of the generated C# files.

Best regards,
Sherif

<kt*******@snea kemail.com> wrote in message
news:11******** **************@ l41g2000cwc.goo glegroups.com.. .
Hi,

We have an ASP.NET application built in Release mode via Visual Studio.

All of the C# code is in the code-behind files (i.e. *.aspx.cs files)
and there is no C# in the *.aspx files themselves.

In this scenario, will the following setting have any detrimental
effect if left set to true when running a Release build described
above?

<system.web>

<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to enable ASPX debugging.
Otherwise, setting this value to
false will improve runtime performance of this application.
Set compilation debug="true" to insert debugging symbols (.pdb
information)
into the compiled page. Because this creates a larger file that
executes
more slowly, you should set this value to true only when
debugging and to
false at all other times. For more information, refer to the
documentation about
debugging ASP .NET files.
-->
<compilation
defaultLanguage ="c#"
debug="false"
/>

</system.web>
My understanding is that the setting should *only* have an effect if
code is being dynamically compiled (which we are not doing), however
the MSDN is slightly ambiguous and I wanted to check if there were any
other side effects (performance or otherwise) if this setting has been
left enabled on a live site.
Thanks for your time,

Matt

Nov 19 '05 #2
Yes there will still be an impact. The debug setting also changes the
way batch compilation works and how many assemblies will be created.
Whether or not the impact would have a noticable effect on your
application could only be determined by some testing, however.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 7 Apr 2005 01:59:13 -0700, kt*******@sneak email.com wrote:
Hi,

We have an ASP.NET application built in Release mode via Visual Studio.

All of the C# code is in the code-behind files (i.e. *.aspx.cs files)
and there is no C# in the *.aspx files themselves.

In this scenario, will the following setting have any detrimental
effect if left set to true when running a Release build described
above?

<system.web>

<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to enable ASPX debugging.
Otherwise, setting this value to
false will improve runtime performance of this application.
Set compilation debug="true" to insert debugging symbols (.pdb
information)
into the compiled page. Because this creates a larger file that
executes
more slowly, you should set this value to true only when
debugging and to
false at all other times. For more information, refer to the
documentatio n about
debugging ASP .NET files.
-->
<compilation
defaultLanguage ="c#"
debug="false"
/>

</system.web>
My understanding is that the setting should *only* have an effect if
code is being dynamically compiled (which we are not doing), however
the MSDN is slightly ambiguous and I wanted to check if there were any
other side effects (performance or otherwise) if this setting has been
left enabled on a live site.
Thanks for your time,

Matt


Nov 19 '05 #3
kt*******@sneak email.com wrote:
My understanding is that the setting should *only* have an effect if
code is being dynamically compiled (which we are not doing), however
the MSDN is slightly ambiguous and I wanted to check if there were any other side effects (performance or otherwise) if this setting has been left enabled on a live site.


Thanks Sherif and Scott, your help is appreciated.

I'll now ensure that this setting is checked specifically as part of
our build process, as it's easy for that setting to be left enabled,
e.g. if a Developer updates the Web.Config from their local copy
they've been using whilst Debugging.
Regards,

Matt

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1106
by: Plat | last post by:
Okay, you'll probably think me crazy for asking this. And I am, but also curious; so please humor me. :) I'm wondering if there's a way to - using dynamic (server-side) compilation - include a ".vb" file from another ".vb" file. For example, let's say I've got a page called Test.aspx, with the following Page directive: <%@Page Language="vb" Src="Test.aspx.vb"
10
1807
by: Joe Befumo | last post by:
When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A pointer would be appreciated. Thanks. Joe
0
1167
by: RonL | last post by:
Using Visual Studio, what is the difference between using Configuration Manager to set the Active Solution Configuration to Debug/Release and using Web.config to set Compilation to "debug=true". Does one option override the other? Example if I set the Active Solution Configuration to "Release" and the Compilation option to "debug="true" does the dll created by the build include debug information? Ron
1
2575
by: J.A. | last post by:
Hi, I'm trying to use the CSharpCompilerProvider to dynamically compile some code. The test console app works fine but I get this error when using the same code in an ASP.NET app: error CS1619: Cannot create temporary file 'c:\WINDOWS\system32\CSCCB.tmp' -- Access is denied. I attached the code I use to compile the dynamic code at the bottom. I tried with and without specifying the TempFileCollection, I also tried to compile
2
2427
by: muriwai | last post by:
Hi, I have <compilation debug="true"in my web.config. The trouble is that I have to manually change this to "false" every time I publish the website. I tried moving this to global machine.config and web.config on the development machine, but then VS 2005 complains that there's no Debug in web.config and asks to modify the file. When I remove the compilation section completely from local web.config, VS 2005 adds a new one. This is a big...
1
1717
by: gfergo | last post by:
Good Morning, I seem to be having a problem. I thought I could display detailed debugging information (including file name and line number) on a page using two different methods: 1.) modify the debug attribute of the compilation element in the web.config file -
1
350
by: alexis.meilland | last post by:
Hello, Well, I have a problem with a dynamic debuging. My program is winform program written in Managed c++. I compile dynamically a dll in vb.net. It works well. To execute a function in my dll I use the invoke function. It works well. However, I would like, if there is a runtime error in my vb.net
3
3270
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of other system include files. The one I am including is <map> . The errors I am getting are: /opt/hp-gcc-4.2.1/lib/gcc/ia64-hp-hpux11.23/4.2.1/../../../../include/c++/4.2.1/debug/debug.h: At global scope:...
8
1616
by: Marc | last post by:
I am studying ASP.NET and have a simple question reading the first lines in this page: http://msdn.microsoft.com/en-us/library/ms366723(VS.80).aspx Are they talking about compilation of C# code to IL code or about compilation of IL code to machine dependant instruction code?
0
8889
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9179
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
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
2
2637
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.