Solved

Deploying ASP.net 2.0 in release mode

Posted on 2006-11-13
9
277 Views
Last Modified: 2008-02-01
Greetings, I'm getting ready to deploy my asp.net 2.0 web application to a prodution server.  all the tutorials I've been looking at talk about changing the "Build Mode" to "releas" instead of Debug.  for some reason, I don't have a "release" option in my drop down menue of build modes.  I only have a debug option. Any idea what I need to do to set my build mode ot release?  Thanks.
0
Comment
Question by:Chaffe
9 Comments
 
LVL 28

Expert Comment

by:mmarinov
ID: 17936603
Hi Chaffe,

I think that it is enough to publish your web site by using Build ->Publish your web project

Cheers!
0
 
LVL 10

Expert Comment

by:thefritterfatboy
ID: 17936694
In your web.config, to release a version of your application, ensure the compilation tage has the debug set to false.

Here's what I use for deployment;

<compilation debug="false" strict="false" explicit="true">

The MS comment in the web.config states:

            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
0
 
LVL 6

Expert Comment

by:badalpatel
ID: 17936844
hiii
u just publish web site in virtual directory..
Under the build menu there is a option of publish web site click on it and publish it in ur virtual directory.
0
 

Author Comment

by:Chaffe
ID: 17936855
badalpatel, the thing about this option is that it doesn't give me the choice to exclude any files that I don't want to upload.   that's why I was leaning more toward the option under "WebSite > Copy web site."  any thoughts?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 12

Expert Comment

by:sandip132
ID: 17936951
0
 
LVL 10

Accepted Solution

by:
thefritterfatboy earned 300 total points
ID: 17936960
>>badalpatel, the thing about this option is that it doesn't give me the choice to exclude any files that I don't want to upload.   that's why I was leaning more toward the option under "WebSite > Copy web site."  any thoughts?<<

Do these files change or are the ones you don't want to upload a specific file type? For example, when I publish my site, I don't want *.doc files to be published as I use these for documentation.

So within my compilation tags I put:

            <compilation debug="false" strict="false" explicit="true">
                  <buildProviders>
                        <add extension=".doc" type="System.Web.Compilation.IgnoreFileBuildProvider"/>
                        <add extension=".vsd" type="System.Web.Compilation.IgnoreFileBuildProvider"/>
                  </buildProviders>
                                </compilation>
0
 

Author Comment

by:Chaffe
ID: 17937002
sandip132, Thanks for the link.

thefritterfatboy, say I want to exclude a whole directory (and its content) from being published.  how do I go about setting that in my web.config?  Thanks.
0
 
LVL 10

Expert Comment

by:thefritterfatboy
ID: 17937008
Not sure if you can. I know if you add the "hidden" attribute to a folder it won't publish but not sure you can exclude a folder from compilation any other way. I'll let you know if I find it.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
call function 8 40
send mail from app.net 8 28
ASP.net GridView with totals at the bottom 2 23
Asp/Net Validation date Issue 9 38
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now