Solved

Deploying ASP.net 2.0 in release mode

Posted on 2006-11-13
9
279 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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

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
 
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

803 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