![]() |
Config Transforms with Web Deployment Projects
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. |
RE: Config Transforms with Web Deployment Projects
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 ================================================== |
RE: Config Transforms with Web Deployment Projects
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 > ================================================== > > . > |
RE: Config Transforms with Web Deployment Projects
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=?= <nospam34@nospam.nospam> >References: <CDC64B07-D686-44AA-AB02-FC0D2636EBE8@microsoft.com> <CxHd8d1FLHA.2076@TK2MSFTNGHUB02.phx.gbl> >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 >> ================================================== >> >> . >> > |
Config Transforms with Web Deployment Projects in ASP.net
Did you get a chance to speak with the DevDiv (Ming Chen) about this issue?
|
RE: Config Transforms with Web Deployment Projects in ASP.net
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=?= <nospam34@nospam.nospam> >References: <CDC64B07-D686-44AA-AB02-FC0D2636EBE8@microsoft.com> <CxHd8d1FLHA.2076@TK2MSFTNGHUB02.phx.gbl> <BDA6CE0D-368E-4989-A273-F488A7545044@microsoft.com> <hrELXAXILHA.4864@TK2MSFTNGHUB02.phx.gbl> >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? > |
Config Transforms with Web Deployment Projects in ASP.net
> 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. |
RE: Config Transforms with Web Deployment Projects in ASP.net
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=?= <nospam34@nospam.nospam> >References: <CDC64B07-D686-44AA-AB02-FC0D2636EBE8@microsoft.com> <CxHd8d1FLHA.2076@TK2MSFTNGHUB02.phx.gbl> <BDA6CE0D-368E-4989-A273-F488A7545044@microsoft.com> <hrELXAXILHA.4864@TK2MSFTNGHUB02.phx.gbl> <C5B004B6-CDD6-41F8-A0C0-B1C44BEF5AAD@microsoft.com> <WM7uRakILHA.2348@TK2MSFTNGHUB02.phx.gbl> >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. > |
| All times are GMT. The time now is 08:34 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.