Mercurial > pub > bltoolkit
comparison Demo/WebServices/NorthwindDataService/Web.Release.config @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --> | |
4 | |
5 <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
6 <!-- | |
7 In the example below, the "SetAttributes" transform will change the value of | |
8 "connectionString" to use "ReleaseSQLServer" only when the "Match" locator | |
9 finds an atrribute "name" that has a value of "MyDB". | |
10 | |
11 <connectionStrings> | |
12 <add name="MyDB" | |
13 connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" | |
14 xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> | |
15 </connectionStrings> | |
16 --> | |
17 <system.web> | |
18 <compilation xdt:Transform="RemoveAttributes(debug)" /> | |
19 <!-- | |
20 In the example below, the "Replace" transform will replace the entire | |
21 <customErrors> section of your web.config file. | |
22 Note that because there is only one customErrors section under the | |
23 <system.web> node, there is no need to use the "xdt:Locator" attribute. | |
24 | |
25 <customErrors defaultRedirect="GenericError.htm" | |
26 mode="RemoteOnly" xdt:Transform="Replace"> | |
27 <error statusCode="500" redirect="InternalError.htm"/> | |
28 </customErrors> | |
29 --> | |
30 </system.web> | |
31 </configuration> |