?
Solved

Deploying ASP.net 2.0 in release mode

Posted on 2006-11-13
9
Medium Priority
?
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

777 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