When building a windows forms application in C#, I notice that you get two different folders for different builds, debug and release. But when building a web application there is only one, c:\inetpub\wwwr oot\<projectnam e>\bin ..
Am I right in thinking that whether the current build that is prevalent is dependent on what build was done most recently? Is there a magic button or way of defining a macro to "switch to release mode, build, then switch back to debug" ? 3 1605
You need to set debug="true" in Web.config file, here is the magic.
Have a look at "Debugging ASP.NET Web Applications During Development"
in MSDN.
Artem
Hi,
Basically what you say is true, in a web app there is only one directory
where the last build is stored, and is the last compilation result what you
will find there.
This is very easy to see, create a web project compile it and you will see
in the \bin directory the pdb files (that contains debug info) now if you
change to release and compile again you will see that the pdb files are
gone.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Bonj" <an*******@disc ussions.microso ft.com> wrote in message
news:16******** *************** ***********@mic rosoft.com... When building a windows forms application in C#, I notice that you get two
different folders for different builds, debug and release. But when building
a web application there is only one, c:\inetpub\wwwr oot\<projectnam e>\bin
.... Am I right in thinking that whether the current build that is prevalent is
dependent on what build was done most recently? Is there a magic button or
way of defining a macro to "switch to release mode, build, then switch back
to debug" ?
They don't disappear. They don't get created again, but they don't
disappear.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:ua******** *****@TK2MSFTNG P12.phx.gbl... Hi,
Basically what you say is true, in a web app there is only one directory where the last build is stored, and is the last compilation result what
you will find there. This is very easy to see, create a web project compile it and you will
see in the \bin directory the pdb files (that contains debug info) now if you change to release and compile again you will see that the pdb files are gone.
Cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
"Bonj" <an*******@disc ussions.microso ft.com> wrote in message news:16******** *************** ***********@mic rosoft.com... When building a windows forms application in C#, I notice that you get
two different folders for different builds, debug and release. But when
building a web application there is only one, c:\inetpub\wwwr oot\<projectnam e>\bin ... Am I right in thinking that whether the current build that is prevalent
is dependent on what build was done most recently? Is there a magic button or way of defining a macro to "switch to release mode, build, then switch
back to debug" ?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bonj |
last post by:
When building a windows forms application in C#, I notice that you get two different folders for different builds, debug and release. But when building a web application there is only one, c:\inetpub\wwwroot\<projectname>\bin ..
Am I right in thinking that whether the current build that is prevalent is dependent on what build was done most recently? Is there a magic button or way of defining a macro to "switch to release mode, build, then...
|
by: Max M. Power |
last post by:
How can I tell if my C# code is running in debug mode?
I need to execute some extra code only when my project has been compiled in
debug mode. In release mode I don't want to execute this extra code.
I was looking for something simple I could test like:
#if DEBUG
do_extra_code
#endif
|
by: Do |
last post by:
Hi:
Is there somewhere in any config file where debug or release mode get
set when I change the mode before rebuilding in VS.net?
Thanks,
Do
|
by: Dan |
last post by:
I get nothing but problems when trying to debug an ASP.Net project on our
development server (I can debug projects locally on my computer fine). It
keeps giving me this error when trying to debug on the server:
"Error while trying to run project: Unable to start debugging on the web
server. You do not have permissions to debug the server.
Verify that you are a member of the 'Debugger Users' group on the server.
Would you like to disable...
|
by: nospam |
last post by:
All the documentation says that leaving an ASP.NET application in debug
mode has a big performance hit. I can't detect any difference between
debug and non-debug modes. Am I missing something or is the
documentation wrong?
I've been load testing an ASP.NET website (built in VS.NET 2003 in C#).
I've used the ACT to generate heavy loads over several minutes. Debug
or no debug produces almost identical performance results.
| |
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
|
by: Brian Henry |
last post by:
I am trying to tell if my site is running as a debug build or not in asp.net
1.1 you could say
#IF DEBUG
DO SOMETHING HERE
#ENDIF
but in ASP.NET 2.0 it seems not to work anymore... why not?! i have
debug="false" in web config and the debug code still runs...
|
by: Alexander Walker |
last post by:
Hello
I have recently published a web application using the "Publish Web Site" option
of the solution explorer from Visual Studio 2005, I have published the website
so that the pages could not be updated, do I need to set the web.config so that
it contains <compilation defaultLanguage="c#" debug="false"> before I publish
the web site or can I make this configuration change on the deployment machine
after the site has been deployed?
...
|
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 output from the
DLL compile:
/OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
|
by: Andy B |
last post by:
How do you tell vs2005 to keep debug info out of your release builds? When I
build a release and a debug version, there seems to be no difference in them
at all...The release builds still have the debug databases with them...
|
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,...
| |
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |