PC Review


Reply
Thread Tools Rate Thread

Config Transforms with Web Deployment Projects

 
 
Chuck
Guest
Posts: n/a
 
      25th Jun 2010
Can you use Config Transforms with Web Deployment Projects.

I couldn't get it to work in VS2010. Nothing happened. Other than the
transform files got copied over.

I turned off the web.config files section replacement option in the web
deployment project.
 
Reply With Quote
 
 
 
 
Zhi-Qiang Ni[MSFT]
Guest
Posts: n/a
 
      29th Jun 2010
Hi Chuck,

Please check if you are using correct config file (web.debug.config for
DEBUG web.release.config for RELEASE)

Here are my test steps:
1. Create a C# web application in VS 2010
2. Add follow lines in web.config:
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
3. Add follow lines in web.debug.config:
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
4. Save all files
5. Create the deployment package
6. The customerror element is changed in
\obj\Debug\TransformWebConfig\transformed
--
Sincerely,
Zhi-Qiang Ni
Microsoft Online Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
==================================================

 
Reply With Quote
 
Chuck
Guest
Posts: n/a
 
      29th Jun 2010
Did you create a deployment or a Web Deployment Project.
I was using a web deployment project.

"Zhi-Qiang Ni[MSFT]" wrote:

> Hi Chuck,
>
> Please check if you are using correct config file (web.debug.config for
> DEBUG web.release.config for RELEASE)
>
> Here are my test steps:
> 1. Create a C# web application in VS 2010
> 2. Add follow lines in web.config:
> <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
> <error statusCode="403" redirect="NoAccess.htm" />
> <error statusCode="404" redirect="FileNotFound.htm" />
> </customErrors>
> 3. Add follow lines in web.debug.config:
> <customErrors defaultRedirect="GenericError.htm"
> mode="RemoteOnly" xdt:Transform="Replace">
> <error statusCode="500" redirect="InternalError.htm"/>
> </customErrors>
> 4. Save all files
> 5. Create the deployment package
> 6. The customerror element is changed in
> \obj\Debug\TransformWebConfig\transformed
> --
> Sincerely,
> Zhi-Qiang Ni
> Microsoft Online Support
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/en-us/subs...#notifications.
>
> MSDN Managed Newsgroup support offering is for non-urgent issues where an
> initial response from the community or a Microsoft Support Engineer within
> 2 business day is acceptable. Please note that each follow up response may
> take approximately 2 business days as the support professional working with
> you may need further investigation to reach the most efficient resolution.
> The offering is not appropriate for situations that require urgent,
> real-time or phone-based interactions. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
> ==================================================
>
> .
>

 
Reply With Quote
 
Steven Cheng
Guest
Posts: n/a
 
      12th Jul 2010
Hi Chuck,

Regarding on the problem scenario, I have performed some local
tests(through WebDeployment project in Visual Studio 2010). Yes, I did
repro the same behavior you mentioned, the Visual Studio 2010 web
deployment project works the same as the VS 2008 one. The configuration
Transforms(from the "Build Deployment Package" command) is not available in
the web deployment project.
This seems a by design limitation of the web deployment project and so far
the workaround I've tried is we first generate the transformed web.config
file(either based on debug or release web.config files) in the web
application or web site project (before compiling them using web deployment
project. And in the web deployment project, we still use the web.config
standard file.

Also, as for this limitation, I would recommend you post it to our feedback
center for vs 2010 and .NET framework 4 so that the product team can get
informed on this:

Connect site for Visual Studio 2010 and .NET Framework 4
https://connect.microsoft.com/Visual...?wa=wsignin1.0

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


--------------------
>From: =?Utf-8?B?Q2h1Y2s=?= <(E-Mail Removed)>
>References: <CDC64B07-D686-44AA-AB02-(E-Mail Removed)>

<(E-Mail Removed)>
>Subject: RE: Config Transforms with Web Deployment Projects
>Date: Tue, 29 Jun 2010 15:15:38 -0700


>
>Did you create a deployment or a Web Deployment Project.
>I was using a web deployment project.
>
>"Zhi-Qiang Ni[MSFT]" wrote:
>
>> Hi Chuck,
>>
>> Please check if you are using correct config file (web.debug.config for
>> DEBUG web.release.config for RELEASE)
>>
>> Here are my test steps:
>> 1. Create a C# web application in VS 2010
>> 2. Add follow lines in web.config:
>> <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
>> <error statusCode="403" redirect="NoAccess.htm" />
>> <error statusCode="404" redirect="FileNotFound.htm" />
>> </customErrors>
>> 3. Add follow lines in web.debug.config:
>> <customErrors defaultRedirect="GenericError.htm"
>> mode="RemoteOnly" xdt:Transform="Replace">
>> <error statusCode="500" redirect="InternalError.htm"/>
>> </customErrors>
>> 4. Save all files
>> 5. Create the deployment package
>> 6. The customerror element is changed in
>> \obj\Debug\TransformWebConfig\transformed
>> --
>> Sincerely,
>> Zhi-Qiang Ni
>> Microsoft Online Support
>> ==================================================
>> Get notification to my posts through email? Please refer to
>>

http://msdn.microsoft.com/en-us/subs...#notifications.
>>
>> MSDN Managed Newsgroup support offering is for non-urgent issues where

an
>> initial response from the community or a Microsoft Support Engineer

within
>> 2 business day is acceptable. Please note that each follow up response

may
>> take approximately 2 business days as the support professional working

with
>> you may need further investigation to reach the most efficient

resolution.
>> The offering is not appropriate for situations that require urgent,
>> real-time or phone-based interactions. Issues of this nature are best
>> handled working with a dedicated Microsoft Support Engineer by

contacting
>> Microsoft Customer Support Services (CSS) at
>> http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
>> ==================================================
>>
>> .
>>

>


 
Reply With Quote
 
Chuck
Guest
Posts: n/a
 
      12th Jul 2010
Did you get a chance to speak with the DevDiv (Ming Chen) about this issue?
 
Reply With Quote
 
Steven Cheng
Guest
Posts: n/a
 
      13th Jul 2010
Thanks for reply Chuck,

Though we will have some communication channels with the dev product team,
but there is no direct contact on specific dev engineers and even DEVDIV
group has many teams focus on different products. So far for internal
communication we will periodically forward some hot/frequestly asked issues
to the product team and we can help add this issue into the list also. And
for public, the Connect Feedback site is the recommended channel. BTW, have
you ever worked with some certain engineers in the DevDiv group?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

--------------------
>From: =?Utf-8?B?Q2h1Y2s=?= <(E-Mail Removed)>
>References: <CDC64B07-D686-44AA-AB02-(E-Mail Removed)>

<(E-Mail Removed)>
<BDA6CE0D-368E-4989-A273-(E-Mail Removed)>
<(E-Mail Removed)>
>Subject: Config Transforms with Web Deployment Projects in ASP.net
>Date: Mon, 12 Jul 2010 15:24:02 -0700


>
>Did you get a chance to speak with the DevDiv (Ming Chen) about this

issue?
>


 
Reply With Quote
 
Chuck
Guest
Posts: n/a
 
      13th Jul 2010
> BTW, have
you ever worked with some certain engineers in the DevDiv group?

Periodically these days. Did frequently when asp.net 1.0 was in pre-beta.
 
Reply With Quote
 
Steven Cheng
Guest
Posts: n/a
 
      14th Jul 2010
That's cool! Sometimes it does be much more effecient if you have direct
contact to a specific dev engineer especially when the engineer is just the
owner of the certain product/feature you're working at.

Sincerely,

Steven Cheng

--------------------
>From: =?Utf-8?B?Q2h1Y2s=?= <(E-Mail Removed)>
>References: <CDC64B07-D686-44AA-AB02-(E-Mail Removed)>

<(E-Mail Removed)>
<BDA6CE0D-368E-4989-A273-(E-Mail Removed)>
<(E-Mail Removed)>
<C5B004B6-CDD6-41F8-A0C0-(E-Mail Removed)>
<(E-Mail Removed)>
>Subject: Config Transforms with Web Deployment Projects in ASP.net
>Date: Tue, 13 Jul 2010 08:30:05 -0700


>
>> BTW, have

>you ever worked with some certain engineers in the DevDiv group?
>
>Periodically these days. Did frequently when asp.net 1.0 was in pre-beta.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DLL.config files and MSI Deployment Projects jwinn Microsoft Dot NET 2 3rd Apr 2008 07:27 AM
RE: Bug in Deployment Projects? =?Utf-8?B?S3JhR2lF?= Microsoft Dot NET 0 5th Jul 2004 11:30 AM
Re: Transforms for VS.net deployment via GPO Paul Ashmore Microsoft Dot NET 1 17th Aug 2003 10:18 AM
Setup & Deployment projects - .Net Framework detection and config file management - how to? Darwin Fisk Microsoft Dot NET 2 5th Jul 2003 05:13 PM
Setup & Deployment projects - .Net Framework detection and config file management - how to? Darwin Fisk Microsoft C# .NET 2 5th Jul 2003 05:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:34 AM.