web.config-transform

SlowCheetah not transforming file on build

喜欢而已 提交于 2019-12-18 11:11:50
问题 I have a project I am trying to use SlowCheetah for. I have created my config file (Test.web.config) and all the transformations I want to use (Debug_Mock.config, Debug_SQL.config, Release) in my Build configuration I have a post-build event is supposed to copy the transformed file into another directory but the file cannot be found (error xcopy exited with code 4) SlowCheetah doesn't seem to be transforming the file and placing it in the output directory (bin folder) like I would expect.

Define a Connection String on Web Host similar to EF Connection String in Debug Mode on Local Machine

守給你的承諾、 提交于 2019-12-13 00:48:23
问题 This s the connection String I am using in my local asp.net mvc site, I want to publish the website over a web hosting. They have SQL Instance of .\SQLEXPRESS12 and I have created a database name myapp_db as well. I have created a user with that db also. How can I modify the EF generated Connection String, and will it effect my auto generated models too ? P.S. I know this question might not be StackOverflow's guidelines, but I would appreciate any help. <connectionStrings> <add name=

Bamboo does not transform Web.config file for any custom build configuration

一曲冷凌霜 提交于 2019-12-12 15:06:33
问题 Here is the scenario: I have a website which has a web.config file along with many other environment specific config files like Web.Staging.config/Web.Release.config/Web.OnPrem.config Now, I have configured the BeforeBuild Target in the csproj file of my website project: <Target Name="BeforeBuild"> <TransformXml Source="Web.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> </Target> This works well when I setup bamboo to build and create artifacts in Release mode (so

MSBuild config transform issues - desination folder and reverting file back to original state

拈花ヽ惹草 提交于 2019-12-12 04:25:11
问题 Problem: DataFolder.config file is not reverting back to previous state (the patch element's value). Also, none of the custom config file transforms are being pushed out to the destination folder. What's interesting is the ConnectionStrings.config file is being converted back to the original state after the transformation, but not the DataFolder.config . <Target Name="BeforeBuild"> <!-- Web.config, ConnectionStrings.config, DataFolder.config Duplicates original config files into a temp file -

Web Config Transforms are HTML Encoding some of the config and breaking it

别来无恙 提交于 2019-12-11 19:42:14
问题 I have the following: Web.Config (this is a segment of an NLog configuration) <target name="fileAsException" xsi:type="FilteringWrapper" condition="length('${exception}')>0"> ... removed ... </target> This is translated to the following when built with release: <target name="fileAsException" xsi:type="FilteringWrapper" condition="length('${exception}')>0"> ... removed ... </target> As you can see the condition expression has been HTML Encoded resulting in the > replacing the > . This causes

Get value from web.config into XSLT file

我与影子孤独终老i 提交于 2019-12-11 08:59:03
问题 I have some values in my web.config that I want to access in my XSLT file. How do I do that? I have done this to load the config file in my XSLT: <xsl:variable name="config" select="document('..//Website//web.config')"/> <p><xsl:value-of select="$config//appSettings/add[@key='Test']/@value"/> </p> After this I am stuck - nothing gets rendered. Ok.I have done some changes.I have tried using a separate XML file and i am able to get value from the file in my variable. <xsl:apply-templates select

.htaccess to web.config iis issues route

自古美人都是妖i 提交于 2019-12-11 07:19:35
问题 Good night. I have a site in php/apache and the file of configurations of routes is the .htaccess . I need pass the site to azure plataform web.config But, I can not work the routes in the IIS. I did a schematic of how the site works. I want to hide the .php extension and make the route work 100%. The url https://mysite.azurewebsites.net/notify/f/43 has 2 variables: f and 43 . My first .htaccess file from the \wwwroot\site directory and my second .htaccess file from folder_1 directory is:

Rewrite query string url in web.config in PHP

时光怂恿深爱的人放手 提交于 2019-12-10 20:29:12
问题 I want to redirect url From http://example.com/page-name/?id=45 to http://example.com/page-name/45 in web.config in IIS. How can I write it's rule for web.config? 回答1: I am using below code <rule name="Redirect to url" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^page-name/([^/]+)/?$" /> </conditions> <action type="Redirect" url="page-name/?id={R:0}" redirectType="Permanent" /> </rule> but I am getting 404 Error if I use this code. what is the

No element in the source document matches /configuration/system.web/authorization/

*爱你&永不变心* 提交于 2019-12-10 18:21:31
问题 I have the next issue when transforming my Web.Config: No element in the source document matches '/configuration/system.web/authorization/allow[@roles='WhateverGroupNameRenamedForProd']' Here my Web.Config: <system.web> <compilation targetFramework="4.5.2" debug="true" /> <httpRuntime targetFramework="4.5" /> <authorization> <allow roles="WhateverGroupName" /> <deny users="*" /> </authorization> And the Web.Production.Config: <system.web> <compilation xdt:Transform="RemoveAttributes(debug)" /

Visual Studio Online website gets deployed to Azure in debug mode

倖福魔咒の 提交于 2019-12-10 14:50:41
问题 I created an ASP.NET MVC web application project which I commit to Visual Studio Online (Git repo) and is linked to a Windows Azure website for automatic deployment (if all unit tests succeed). My project contains the default Web.Release.config transformation that should remove the Web.config attribute /configuration/system.web/compilation/@debug which should (amongst others) enable script bundling. It appears the web.config transformation is not executed during deployment, so I guess it