473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Configuration Manager and Publish Website in VS2005

Basically, how do I know that the release versions of all components are
being published?

The Build | Configuration Manager is confusing me a little in VS2005.

I have three projects in my solution:

1) web service website.
2) SOAP Extension Class Lib that compiles to a dll
3) WinForm application with a proxy to test the web service.

In the Config Manager I can set the choices for release / debug for the SOAP
Extension dll and WinForm app. But I am not able to set this choice for the
web service – it just stays at the debug setting.

Also, after I set the Config Manager to release for the SOAP Extension dll,
and then publish the website it looks like the degub version of the SOAP
Extension is always published - the pdb file is included in the published
folder.
Basically, how do I know that the release versions of all components are
being published?

Thanks,

Nick

Nov 19 '05 #1
5 2562

Regarding my previous post, I have proof now that the debug version is being
released. In the output window I get the following when I do a Publish
Website:
------ Build started: Project: http://localhost/TestWS/, Configuration:
Debug .NET ------
Pre-compiling Web Site

Building directory '/TestWS/App_Code/'.
Building directory '/TestWS/'.
Pre-compilation Complete
------ Publish started: Project: http://localhost/TestWS/, Configuration:
Debug .NET ------
========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
How the hell do I set the configuration to RELEASE!?!?!?!?!? In the Config
Manager I am ONLY given the debug option. (In other words, the little
drop-down does not contain the normal choices of: Debug, Release, New . . .,
Edit . . . like it does for other projects. )

What am I missing?

Nov 19 '05 #2
Hi Sir,

Welcome to ASPNET newsgroup.
Regarding on the how to set the VS.NET 2005 project's build configuration
problem, here are some of my understandings:

1. As for the projects in VS.NET IDE, they'll be contained in a Solution, I
assume that your projects are all contains in a central Soluion ,yes? And
all these projects's build configuration are controled by the Solution's
Active Build configuration. We can right click the Solution node in
VS.NET's navigation view and choose properties menu, after that, in the
properties setting panel, locate the "Configuration properties" node in the
left treeview and we can find the "Active Build" configuration for the
whole solution, and when we change this setting (as debug or release) all
the projects contained in the solution will be changed also). Also, we
can do micro adjusting through the Projects build settings listed in the
right ListView( configre each project to have its own build version ...).

And the Build configuration setting in Project's properties dialog is not
used for set build version, (so if we change the version there, it won't
change the project's actual build version). Actually project level build
configuration setting( the dropdownlist) is provided for use to configure
those detailed build settings under each build version. For example, when
we choose "Release" mode in a Class library project, and set the listed
"define DEBUG constant" or "define TRACE constant" , that means when we
choose to build release version , those settings will be applied. However,
whether to build the project as debug or release is still configured in the
solution propertes as I mentioned above.

2. For ASP.NET2.0 web projects, it is a bit different from the 1.x ones ,
because in asp.net 2.0 , all the code files (include page's code
behind...., any source files in App_Code folder) are dynamically compiled.
so by default we have not design-time prebuild assemblies for our ASP.NET
web project. So you'll find we can not change the build configuration in
the solution build setting for ASP.NET project (always displayed as
"Debug"). So if you're copy all the source files to target and let asp.net
dynamically compile them, the <compilation debug="xxx" /> setting just
controls whether the dynamic compiled assemblies are for debug or release
mode. Also, the ASP.NET 2.0 provide precompiled site function (
Precompiled and publishSite menu function in VS.NET 2005), when we use
this to precompile and our website, I think the output assemblies build
version should be conforms to the Solution's build setting as other
projects contained in the same solution....

Please feel free to let me know if you have anything unclear or I haven't
described clearly.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: Configuration Manager and Publish Website in VS2005
| thread-index: AcXmL/VOymdpjEytR6287vxxrBLDWA==
| X-WBNR-Posting-Host: 208.237.178.229
| From: "=?Utf-8?B?Tm9OaWNrbmFtZQ==?=" <No********@noemail.noemail>
| References: <69**********************************@microsoft.co m>
| Subject: RE: Configuration Manager and Publish Website in VS2005
| Date: Thu, 10 Nov 2005 11:50:10 -0800
| Lines: 28
| Message-ID: <3B**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:357160
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| Regarding my previous post, I have proof now that the debug version is
being
| released. In the output window I get the following when I do a Publish
| Website:
|
|
| ------ Build started: Project: http://localhost/TestWS/, Configuration:
| Debug .NET ------
| Pre-compiling Web Site
|
| Building directory '/TestWS/App_Code/'.
| Building directory '/TestWS/'.
| Pre-compilation Complete
| ------ Publish started: Project: http://localhost/TestWS/, Configuration:
| Debug .NET ------
| ========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped
==========
| ========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
|
|
| How the hell do I set the configuration to RELEASE!?!?!?!?!? In the
Config
| Manager I am ONLY given the debug option. (In other words, the little
| drop-down does not contain the normal choices of: Debug, Release, New . .
..,
| Edit . . . like it does for other projects. )
|
| What am I missing?
|
|
|
|

Nov 19 '05 #3
Steven,

Thanks for your reply. I have a few questions.
So if you're copy all the source files to target and let asp.net
dynamically compile them, the <compilation debug="xxx" /> setting just
controls whether the dynamic compiled assemblies are for debug or release
mode.
OK, but I want to use the _Publish Web Site_ feature rather than putting
source files on a production box and then letting the ASP.NET compile release
versions the first time a customer hits the site. VS2003 let use create
RELEASE dll versions which could them be deployed without having it put
source files on the production box. (I'm sure VS2005 has this; I just can't
seem to figure out how this is done. I guess you guys will soon be taking my
geek card away.)
Also, the ASP.NET 2.0 provide precompiled site function (
Precompiled and publishSite menu function in VS.NET 2005),
Good, so this is what I want to use (as mentioned above).
when we use this to precompile and our website,
I think the output assemblies build version should be conforms
to the Solution's build setting as other projects contained
in the same solution....


But this is my problem.
As you say: the output assemblies build version should be conforms to the
Solution's build setting . . .

And that means that the DEBUG version of the website is being published,
since it is not possible to set the Config Manger setting to RELEASE.
I'm sure that I am missing something really simple. I just can’t seem to
find it.

I've looked around for a link to an MSDN page on how to compile a release
version of a web site but I can't find one (and thus the reason for this
post.) Do you have a link to MSDN(2) that describes this process?

Thanks,
Nick

Nov 19 '05 #4
This may help give you more control.

http://channel9.msdn.com/showpost.aspx?postid=134912

http://msdn.microsoft.com/asp.net/re...p/default.aspx
"NoNickname" <No********@noemail.noemail> wrote in message
news:D9**********************************@microsof t.com...
Steven,

Thanks for your reply. I have a few questions.
So if you're copy all the source files to target and let asp.net
dynamically compile them, the <compilation debug="xxx" /> setting just
controls whether the dynamic compiled assemblies are for debug or release
mode.


OK, but I want to use the _Publish Web Site_ feature rather than putting
source files on a production box and then letting the ASP.NET compile
release
versions the first time a customer hits the site. VS2003 let use create
RELEASE dll versions which could them be deployed without having it put
source files on the production box. (I'm sure VS2005 has this; I just
can't
seem to figure out how this is done. I guess you guys will soon be taking
my
geek card away.)
Also, the ASP.NET 2.0 provide precompiled site function (
Precompiled and publishSite menu function in VS.NET 2005),


Good, so this is what I want to use (as mentioned above).
when we use this to precompile and our website,
I think the output assemblies build version should be conforms
to the Solution's build setting as other projects contained
in the same solution....


But this is my problem.
As you say: the output assemblies build version should be conforms to the
Solution's build setting . . .

And that means that the DEBUG version of the website is being published,
since it is not possible to set the Config Manger setting to RELEASE.
I'm sure that I am missing something really simple. I just can't seem to
find it.

I've looked around for a link to an MSDN page on how to compile a release
version of a web site but I can't find one (and thus the reason for this
post.) Do you have a link to MSDN(2) that describes this process?

Thanks,
Nick

Nov 19 '05 #5
Thanks for Greg's inputs.

Hi Nick,

Does the information about the VS2005 asp.net deployment project helpful
to you? Also, as I've mentioned in the former message. The ASP.NET 2.0
project is different from other project (class library or winform.. or
asp.net 1.x project..), when we publish the site, all the precompiled
assemblies are release version ones, as we can lookup them through the
ILDasm tool. Through ILDASM, we can find that there is no "Debuggable"
attribute in the publishSite procompiled assembly....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Reply-To: "Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com>
| From: "Greg Burns" <bl*******@newsgroups.nospam>
| References: <69**********************************@microsoft.co m>
<3B**********************************@microsoft.co m>
<vO*************@TK2MSFTNGXA02.phx.gbl>
<D9**********************************@microsoft.co m>
| Subject: Re: Configuration Manager and Publish Website in VS2005
| Date: Fri, 11 Nov 2005 13:07:38 -0500
| Lines: 59
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <O0**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 146.145.213.7
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:357447
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| This may help give you more control.
|
| http://channel9.msdn.com/showpost.aspx?postid=134912
|
|
http://msdn.microsoft.com/asp.net/re...p/default.aspx
|
|
| "NoNickname" <No********@noemail.noemail> wrote in message
| news:D9**********************************@microsof t.com...
| > Steven,
| >
| > Thanks for your reply. I have a few questions.
| >
| >>So if you're copy all the source files to target and let asp.net
| >>dynamically compile them, the <compilation debug="xxx" /> setting just
| >>controls whether the dynamic compiled assemblies are for debug or
release
| >>mode.
| >
| > OK, but I want to use the _Publish Web Site_ feature rather than putting
| > source files on a production box and then letting the ASP.NET compile
| > release
| > versions the first time a customer hits the site. VS2003 let use create
| > RELEASE dll versions which could them be deployed without having it put
| > source files on the production box. (I'm sure VS2005 has this; I just
| > can't
| > seem to figure out how this is done. I guess you guys will soon be
taking
| > my
| > geek card away.)
| >
| >>Also, the ASP.NET 2.0 provide precompiled site function (
| >>Precompiled and publishSite menu function in VS.NET 2005),
| >
| > Good, so this is what I want to use (as mentioned above).
| >
| >>when we use this to precompile and our website,
| >>I think the output assemblies build version should be conforms
| >>to the Solution's build setting as other projects contained
| >>in the same solution....
| >
| > But this is my problem.
| > As you say: the output assemblies build version should be conforms to
the
| > Solution's build setting . . .
| >
| > And that means that the DEBUG version of the website is being published,
| > since it is not possible to set the Config Manger setting to RELEASE.
| >
| >
| > I'm sure that I am missing something really simple. I just can't seem
to
| > find it.
| >
| > I've looked around for a link to an MSDN page on how to compile a
release
| > version of a web site but I can't find one (and thus the reason for this
| > post.) Do you have a link to MSDN(2) that describes this process?
| >
| > Thanks,
| > Nick
| >
|
|
|

Nov 19 '05 #6

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

Similar topics

8
by: Graham | last post by:
I noticed a similar post awhile ago and in terms of my problem it wasnt a suitable answer so I will ask again. I have VS2005 running a on development machine in my office where I do all my...
7
by: Inga2005 | last post by:
I have developed an web site in VS2005 but I can't build a release version since the option is missing in the configuration manager. The second thing is that there isn't a bin folder placed in my...
1
by: cadonahue | last post by:
VS 2005 Professional RTM (8.0.50727.42) on Windows 2000 ASP.NET website Last week I converted a 1.1 ASP.NET (VB) project to 2.0. The conversion was painless on the VB code side. It was a lot of...
2
by: WB | last post by:
Hi, I'm building a Windows application using Visual Studio 2005. For some reason, the Configuration Manager is missing from my Toolbar. So now in order to change my build mode (eg. Debug,...
0
by: bdtmike | last post by:
When I create a website in the default folder for VS2005 and try to publish it to my localhost I get the error: "you must choose a publish location that is not a sub-folder of the source web...
1
by: JP.Gantlin | last post by:
I don't have the tool! What can I do? as mentioned in the web.config file: Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your...
1
by: William Sullivan | last post by:
K, got a website, need to publish it to the test server. Publish the website, k. As its publishing, it creates a copy of my bin directory under my bin directory on my dev box. Now I've got...
3
by: =?Utf-8?B?UGFvbG8gTmljY29sw7IgR2l1YmVsbGkgW0F4ZXR0 | last post by:
I have a website with a public folder (users can upload images into it) so I'm wondering if it's possible to avoid the deletion of this folder when I re-publish the website from visual studio. Do I...
0
by: celoftis | last post by:
Using VS2005, VB.NET, I have an application that makes several webservice calls. These services are on a network that requires authentication of login credentails. As the application starts the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

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.