<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2373758680936483831</id><updated>2026-08-13T07:45:22.584-07:00</updated><category term="c#"/><category term="php"/><category term="java"/><category term="mysql"/><category term="IIS"/><category term="JSP"/><category term="LDAP"/><category term="SSIS"/><category term="sql"/><category term="AD"/><category term="ASP"/><category term="apache"/><category term="Android"/><category term="javascirpt"/><category term="mail"/><category term="oracle"/><category term="ios"/><category term="javascript"/><category term="plsql"/><category term="svn"/><category term="API"/><category term="C#.Net"/><category term="Itext"/><category term="OS"/><category term="UML"/><category term="Windwos"/><category term="asp.net"/><category term="big5"/><category term="flash.javascirpt"/><category term="google"/><category term="linux"/><category term="protect"/><category term="utf8"/><category term="vb"/><category term="20120"/><category term="DRIVES"/><category term="Eclipse"/><category term="Form"/><category term="IE"/><category term="IP"/><category term="Mac"/><category term="ODBC"/><category term="Port"/><category term="Sort"/><category term="URL"/><category term="adapter"/><category term="adb"/><category term="ado"/><category term="adroid"/><category term="adsl"/><category term="app"/><category term="c"/><category term="color"/><category term="crack"/><category term="crask"/><category term="crystal"/><category term="dos"/><category term="excel"/><category term="file"/><category term="flash"/><category term="gridview"/><category term="hinet"/><category term="html"/><category term="install"/><category term="map"/><category term="pdf"/><category term="pop3"/><category term="seach"/><category term="sqlite"/><category term="sqlserver"/><category term="sso"/><category term="tomcat"/><category term="tool"/><category term="tsql"/><category term="vbscript"/><category term="vmware"/><category term="webconfig"/><category term="webservice"/><category term="xml"/><category term="xp"/><title type='text'>paulwu0115</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>161</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-6231709000101446855</id><published>2018-12-27T03:23:00.002-08:00</published><updated>2018-12-27T03:23:30.729-08:00</updated><title type='text'>[ASP.NET]利用configSource將web.config的connectionStrings移到另一個config檔來維護</title><content type='html'>&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
最近剛好看到這樣的寫法,把它記錄一下&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;connectionStrings：&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
一般web.config的connectionStrings會這樣設定&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
web.config&lt;/div&gt;
&lt;div style=&quot;background-color: #eeeeee; border-color: rgb(204, 204, 204); border-style: solid; border-width: 1px; font-family: Verdana, 細明體; font-size: 10pt; line-height: 16px; margin: 22px 0px; padding: 4px; width: 597.797px; word-break: break-all;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;connectionStrings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;MSSQL&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;connectionString&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;MSSQL&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Oralce&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;connectionString&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Oracle&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;connectionStrings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&amp;nbsp;也可以將connectionStrings移到另一個config檔來維護&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
web.config&lt;/div&gt;
&lt;div style=&quot;background-color: #eeeeee; border-color: rgb(204, 204, 204); border-style: solid; border-width: 1px; font-family: Verdana, 細明體; font-size: 10pt; line-height: 16px; margin: 22px 0px; padding: 4px; width: 597.797px; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;connectionStrings&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;configSource&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;connections.config&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
connections.config&lt;/div&gt;
&lt;div style=&quot;background-color: #eeeeee; border-color: rgb(204, 204, 204); border-style: solid; border-width: 1px; font-family: Verdana, 細明體; font-size: 10pt; line-height: 16px; margin: 22px 0px; padding: 4px; width: 597.797px; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;xml&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;1.0&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;connectionStrings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;MSSQL&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;connectionString&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;MSSQL&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Oralce&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;connectionString&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Oracle&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;connectionStrings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;font-size: medium;&quot;&gt;appSettings：&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
appSettings也可以使用configSource將設定值移到另一個config檔來維護&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
web.config&lt;/div&gt;
&lt;div style=&quot;background-color: #eeeeee; border-color: rgb(204, 204, 204); border-style: solid; border-width: 1px; font-family: Verdana, 細明體; font-size: 10pt; line-height: 16px; margin: 22px 0px; padding: 4px; width: 597.797px; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;appSettings&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;configSource&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;settings.config&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
settings.config&lt;/div&gt;
&lt;div style=&quot;background-color: #eeeeee; border-color: rgb(204, 204, 204); border-style: solid; border-width: 1px; font-family: Verdana, 細明體; font-size: 10pt; line-height: 16px; margin: 22px 0px; padding: 4px; width: 597.797px; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;xml&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;1.0&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;appSettings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Blog&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;F6 Team&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Name&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;puma&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;skill&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;ASP.NET&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;appSettings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
也可以使用file來增加外部config檔的設定值&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
web.config&lt;/div&gt;
&lt;div style=&quot;background-color: #eeeeee; border-color: rgb(204, 204, 204); border-style: solid; border-width: 1px; font-family: Verdana, 細明體; font-size: 10pt; line-height: 16px; margin: 22px 0px; padding: 4px; width: 597.797px; word-break: break-all;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;appSettings&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;settings.config&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Blog&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;F6 Team&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Name&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;puma&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;appSettings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
settings.config&lt;/div&gt;
&lt;div style=&quot;background-color: #eeeeee; border-color: rgb(204, 204, 204); border-style: solid; border-width: 1px; font-family: Verdana, 細明體; font-size: 10pt; line-height: 16px; margin: 22px 0px; padding: 4px; width: 597.797px; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;xml&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;1.0&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;appSettings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;skill&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;ASP.NET&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;appSettings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
file與configSource的差別就是：&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
1.file:可以延伸外部檔案的setting&lt;br /&gt;2.configSource:指定一個xxx.config(但web.cofing就不能設定了,不然會出錯)&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
以上每一種方式的執行結果都一樣,如下圖所示：&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;a href=&quot;https://az787680.vo.msecnd.net/user/puma/1001/2010125184535809.png&quot; rel=&quot;lightbox&quot; style=&quot;background-color: transparent; color: #187a00; overflow-wrap: break-word; text-decoration-line: none; transition: all 0.1s ease-in-out 0s; word-break: break-word;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://az787680.vo.msecnd.net/user/puma/1001/2010125184535809.png&quot; style=&quot;background: rgb(255, 255, 255); border: 1px solid rgb(238, 238, 238); box-sizing: border-box; display: block; height: auto !important; max-width: 100%; padding: 5px;&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
code：&lt;/div&gt;
&lt;pre class=&quot;C#&quot; cols=&quot;70&quot; name=&quot;code&quot; rows=&quot;25&quot; style=&quot;background-color: #eeeeee; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, Courier, monospace; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px; max-width: 100%; overflow: auto; padding: 4.5px 11px;&quot;&gt;using System;
using System.Web.Configuration;
using System.Configuration;

public partial class webconfig : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        foreach (string set in WebConfigurationManager.AppSettings)
        {
            Response.Write(string.Format(&quot;key：{0}，value：{1}&amp;lt;br/&amp;gt;&quot;, set, WebConfigurationManager.AppSettings.Get(set)));
        }

        foreach (ConnectionStringSettings conn in WebConfigurationManager.ConnectionStrings)
        {
            Response.Write(string.Format(&quot;name：{0}，connectionString：{1}&amp;lt;br/&amp;gt;&quot;, conn.Name, conn.ConnectionString));
        }
    }
}&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/6231709000101446855/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2018/12/aspnetconfigsourcewebconfigconnectionst.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6231709000101446855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6231709000101446855'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2018/12/aspnetconfigsourcewebconfigconnectionst.html' title='[ASP.NET]利用configSource將web.config的connectionStrings移到另一個config檔來維護'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-5251380877342229031</id><published>2018-11-22T07:32:00.003-08:00</published><updated>2018-11-22T07:34:55.646-08:00</updated><title type='text'>201207232016微軟教你免費用永久使用測試版的 Terminal Licensing</title><content type='html'>&lt;div&gt;
微軟教你免費用永久使用測試版的 Terminal Licensing&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
還在為專案用的主機同時只能有二個使用者使用遠端桌面煩惱嗎?&lt;/div&gt;
&lt;div&gt;
建議您可以安裝 Microsoft 的 Terminal Services Licensing&lt;/div&gt;
&lt;div&gt;
(在 新增移除 Windows 元件中可以找到，且可由安裝光碟中直接安裝測試版)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
因為是測試版的，所以只能免費使用 90 天，&lt;/div&gt;
&lt;div&gt;
算法是 &quot;用戶電腦&quot; 第一次由遠端桌面登入主機時算起 (CAL DEVICE 授權)&lt;/div&gt;
&lt;div&gt;
可由下列步驟找到目前有授權使用的電腦(有使用遠端桌面登入過的電腦)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;開始-&amp;gt;所有程式-&amp;gt;系統管理工具-&amp;gt;終端機伺機器授權-&amp;gt;連線到 LOCALHOST&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;在臨時的授權 Windows Server2003-終端機伺服器 CAL 權杖 中&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;可以看到每一台有使用遠端桌面登入過的電腦及他們的授權時間(90天)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
雖然購買 Microsoft 的 CAL(Client Access Licensing) DEVICE 授權還不太貴(1個大慨 $3,000 NTD)，&lt;/div&gt;
&lt;div&gt;
但是如果一整個專案，或部門要使用，加起來要買的 CAL 授權也是個不小的開支，&lt;/div&gt;
&lt;div&gt;
而且 DEVICE CAL 還是每一台伺服都要買一次，授權只是一年的。&lt;/div&gt;
&lt;div&gt;
永久免費使用授權的方法，其實是利用 Microsoft 在授權流程上的漏洞&lt;/div&gt;
&lt;div&gt;
只要在用戶端移除 MSLicensing 的註冊碼就可以了&lt;/div&gt;
&lt;div&gt;
執行一行指令&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;reg delete HKLM\SOFTWARE\Microsoft\MSLicensing /f&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
這行指令對你的系統完全沒有任何影響!&lt;/div&gt;
&lt;div&gt;
(在 Microsoft 網站其實已經有不小心洩漏出來破解的方法了 http://support.microsoft.com/?id=839878 原因 2)&lt;/div&gt;
&lt;div&gt;
用戶端可透過這行指令無限的延申使用 Terminal Licensing&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
針對如何無限的使用測試版的 Terminal Licensing 有幫各位歸納有以下二種情況：&lt;/div&gt;
&lt;div&gt;
1. Server 未安裝過 Licensing&lt;/div&gt;
&lt;div&gt;
2. Server 已經安裝 Licensing ，且已經開始有人使用了&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
針對以上二種情況可依下列步驟處理&lt;/div&gt;
&lt;div&gt;
1. Server 未安裝過 Licensing&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;a. 安裝 Licensing&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;b. 在每一作用戶的電腦中，移除 CAL TS 註冊值，&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 在每個用戶電腦上執行指令&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; reg delete HKLM\SOFTWARE\Microsoft\MSLicensing /f&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;c. 重開電腦&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
2. Server 已經安裝 Licensing ，且已經開始有人使用了&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;a. 中斷所有線上 Terminal 中的使用者&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;b. 如果自己本身也是 Terminal 進入Windlows 可以先中斷本身的連線&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;c. 停止 Termianl Licensing&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;d. 到目錄 %WINDIR%\system32\lserver 內將檔案 TSLIC.edb 修改為 tslic.old (為防萬一，備份用的)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;e. 啟重 Termianl Licensing&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;e. 在每一作用戶的電腦中，移除 CAL TS 註冊值，&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 在每個用戶電腦上執行指令&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; reg delete HKLM\SOFTWARE\Microsoft\MSLicensing /f&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;f. 重開電腦&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
註：如果不想動 Server 也可以三個月只重新執行一次指令就可以重新開始使用 Licensing 了&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/5251380877342229031/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2018/11/201207232016-terminal-licensing.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5251380877342229031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5251380877342229031'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2018/11/201207232016-terminal-licensing.html' title='201207232016微軟教你免費用永久使用測試版的 Terminal Licensing'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-1209273209912953506</id><published>2018-11-19T21:46:00.002-08:00</published><updated>2018-11-19T21:46:37.908-08:00</updated><title type='text'>Is it possible to autostart a VMware virtual machine in background as a Windows service, and shut it down elegantly when Windows shuts down?</title><content type='html'>&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
You can also use the&amp;nbsp;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;vmrun&lt;/code&gt;&amp;nbsp;command.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
You can use a script to start a VM, for example:&lt;/div&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;vmrun -T ws start &quot;F:\VMWare-VMs\S1.vmx&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
and you add the script at Windows startup.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
More info about vmrun:&amp;nbsp;&lt;a href=&quot;http://www.sysadmit.com/2016/11/vmware-workstation-vmrun.html&quot; rel=&quot;noreferrer&quot; style=&quot;border: 0px; box-sizing: inherit; color: #50aec6; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;http://www.sysadmit.com/2016/11/vmware-workstation-vmrun.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/1209273209912953506/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2018/11/is-it-possible-to-autostart-vmware.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/1209273209912953506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/1209273209912953506'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2018/11/is-it-possible-to-autostart-vmware.html' title='Is it possible to autostart a VMware virtual machine in background as a Windows service, and shut it down elegantly when Windows shuts down?'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-4137226149547464647</id><published>2018-11-19T09:33:00.001-08:00</published><updated>2018-11-19T09:33:44.289-08:00</updated><title type='text'>Change Remote Desktop RDP Port</title><content type='html'>&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;open sans&amp;quot;, &amp;quot;segoe ui&amp;quot;, avenir-light, avenirnext-regular, &amp;quot;trebuchet ms&amp;quot;, Helvetica, Arial; font-size: 16px; line-height: 27.2px; margin-bottom: 10px; padding: 5px 10px;&quot;&gt;
Follow these steps to change the Remote Desktop server port:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;open sans&amp;quot;, &amp;quot;segoe ui&amp;quot;, avenir-light, avenirnext-regular, &amp;quot;trebuchet ms&amp;quot;, Helvetica, Arial; font-size: 16px; line-height: 32px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Open up Registry Editor by clicking on the Start Button, type in&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 700;&quot;&gt;regedit&lt;/span&gt;&amp;nbsp;and then hit Enter.&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;In Registry Editor, navigate to HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Control, Terminal Server, WinStations and RDP-Tcp.&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Right click on&amp;nbsp;the PortNumber dword and select Modify.&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Change the base to Decimal and enter a new port between 1025 and 65535 that is not already in use.&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Click OK and reboot.&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/4137226149547464647/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2018/11/change-remote-desktop-rdp-port.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/4137226149547464647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/4137226149547464647'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2018/11/change-remote-desktop-rdp-port.html' title='Change Remote Desktop RDP Port'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-7645525328261612468</id><published>2017-03-30T11:39:00.007-07:00</published><updated>2026-08-13T07:45:22.584-07:00</updated><title type='text'>  仕女按摩，外出到旅館服務 全身推拿油壓／男按摩師  ( 新竹 竹北 中壢 桃園 台北地區) </title><content type='html'>&lt;div&gt;仕女按摩，外出到旅館服務 全身推拿油壓／男按摩師&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;( 新竹 竹北 中壢 桃園 台北 地區)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ben老師，，173/70。&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;單純素質高，體型健壯，不抽煙，不喝酒，&lt;/div&gt;&lt;div&gt;不吃檳榔，無體味，斯文有禮，貼心服務，&lt;/div&gt;&lt;div&gt;且手法純熟，提供 尊重，安全，專業，溫柔服務。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ben老師針對全身經絡穴位精油推拿按摩的服務周到，&lt;/div&gt;&lt;div&gt;平價收費，為仕女們省荷包，&lt;/div&gt;&lt;div&gt;讓您體驗備感呵護的關心。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;小資族仕女們也能享受彷佛渾然忘我，CP值超高的服務，&lt;/div&gt;&lt;div&gt;可外出到府及旅館服務按摩，卸除您的疲憊與壓力。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;特色：&lt;/div&gt;&lt;div&gt;(1) 改善睡眠、按摩腦部、放鬆腦神經壓力。&lt;/div&gt;&lt;div&gt;(2) 改善長期睡眠品質不佳，放鬆肩頸、腰背及全身疲勞。&lt;/div&gt;&lt;div&gt;(3) 針對長期的過度疲勞，造成的疲勞痠痛。&lt;/div&gt;&lt;div&gt;(4) 改善身體左右失衡而造成的肩頸僵硬、腰酸背痛等。&lt;/div&gt;&lt;div&gt;(5) 超高品質放鬆舒暢的享受。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;服務對象： 限女性&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;聯絡方式&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Line : paulwu0117&lt;/div&gt;&lt;div&gt;電話: 0965705598&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;每次一人　全身經絡穴道、淋巴按摩油壓服務&amp;nbsp;&lt;/div&gt;&lt;div&gt;旅館 ：90分鐘　NTD：2000元&amp;nbsp; (不含車資,車資另計)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;按摩事前準備：&lt;/div&gt;&lt;div&gt;1.可預先自行盥洗，泡腳或蒸汽浴，以達到全身按摩最佳效果。&lt;/div&gt;&lt;div&gt;2.請著寬鬆純棉內褲(全程只著紙內褲為佳）或包浴巾即可。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;@按摩流程：&lt;/div&gt;&lt;div&gt;燈光會調暗，先用毛巾蓋著，首先做背部指油壓，舒鬆經絡，&lt;/div&gt;&lt;div&gt;再來是正面油壓淋巴周圍，並依客戶需求及想要加強的部位，重點式按摩。&lt;/div&gt;&lt;div&gt;經由指壓、油壓、重點式按摩之順序，如此身心舒暢，方達最佳調理效果。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;注意事項：&lt;/div&gt;&lt;div&gt;1.需事先預約，現場請一律先以台幣現金或LINE PAY, 網路銀行轉帳 支付按摩費用。&lt;/div&gt;&lt;div&gt;2.當日預約需在&quot;4小時前&quot;詢問。&lt;/div&gt;&lt;div&gt;3.已確認預約者，請勿任意取消。&lt;/div&gt;&lt;div&gt;4.按摩基本時數以90分鐘為限，按摩部位可配合客戶需求。&lt;/div&gt;&lt;div&gt;5.到旅館者，請顧客自行找喜歡的旅館訂房及並付房費用。&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;6.生理期或懷孕期間，扭挫傷者，急性期中，不宜推拿。&lt;/div&gt;&lt;div&gt;7.飯後1小時內不宜推拿，按摩推拿結束後請多喝溫熱水。&amp;nbsp;&lt;/div&gt;&lt;div&gt;8.長期的經絡不暢、過勞痠痛者，建議每1、2周預約一次，以達最佳調理效果。&lt;/div&gt;&lt;div&gt;9.異性SPA推拿按摩會從心理上到生理上產生一種變化， 會調節內分泌，使仕女們的皮膚得到很大的改善。&lt;/div&gt;&lt;div&gt;10.預約後，您已認同上述的注意事項。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/7645525328261612468/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2017/03/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/7645525328261612468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/7645525328261612468'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2017/03/blog-post.html' title='  仕女按摩，外出到旅館服務 全身推拿油壓／男按摩師  ( 新竹 竹北 中壢 桃園 台北地區) '/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-3340041416328378625</id><published>2017-03-30T11:38:00.001-07:00</published><updated>2017-03-30T11:38:59.640-07:00</updated><title type='text'></title><content type='html'>Body Essential Oil Hydraulic Massage Male Masseur (north of Hsinchu)&lt;br /&gt;
&lt;br /&gt;
Male masseur, 173/75, simple high quality, do not smoke, do not drink, do not eat betel nut,&lt;br /&gt;
Gentle and polite, caring service, the whole time does not steal the guests time, customer first, experience the care of care.&lt;br /&gt;
Can go out or go to the studio press to remove your fatigue and stress.&lt;br /&gt;
&lt;br /&gt;
Line: paulwu0114&lt;br /&gt;
&lt;br /&gt;
Massage costs: go out the basic two hours 1800 yuan, to the studio by two hours 1300 yuan. (Outside the county and then subsidize transportation)&lt;br /&gt;
Other costs: scraping and heat does not increase the price&lt;br /&gt;
&lt;br /&gt;
Massage clothing: the first kimono anti-wear, oil pressure can wear paper underwear, do the back first, the front to see the guests have no need.&lt;br /&gt;
&lt;br /&gt;
Massage process: the light will be dimmed, placed soft music, first covered with a towel on the back, the first to do acupressure, Shu pressure meridian, and then around the hydraulic lymph&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
1. There are disposable bed paper. Essential oil. Emulsion. Towel was. Paper underwear. Electric blanket.&lt;br /&gt;
2. Out of service to 2 hours as the basic unit.&lt;br /&gt;
3. Outside the massage object is currently only accepted female, Mr. can accompany his wife to go, waiting in the next.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/3340041416328378625/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2017/03/body-essential-oil-hydraulic-massage.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3340041416328378625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3340041416328378625'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2017/03/body-essential-oil-hydraulic-massage.html' title=''/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-6459962207483269804</id><published>2016-08-04T01:22:00.003-07:00</published><updated>2018-11-20T11:18:15.698-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>[IIS][ASP.NET] 拒絕訪問Temp目錄</title><content type='html'>&lt;blockquote style=&quot;background: none rgb(255, 255, 255); border: 2px solid rgb(239, 239, 239); color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px 0px; padding: 5px 10px;&quot;&gt;
&lt;div style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;創建BlogConfigurationSettings 的配置節處理程序時出錯: 拒絕訪問臨時目錄。&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;以其運行XmlSerializer 的身份“IIS APPPOOL\www.cnblogs.com”沒有足夠的權限訪問臨時目錄。&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;CodeDom 將使用此進程用於進行編譯的用戶帳戶，因此如果用戶對系統臨時目錄沒有訪問權限，則將無法編譯。&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;使用Path.GetTempPath() API 可找到臨時目錄位置。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;Access to the temp directory is denied. Identity &#39;IIS APPPOOL\www.cnblogs.com&#39; under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;CS0016: 未能寫入輸出文件“c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\946055b8\92eead15\App_global.asax.qakaesxx.dll”--“拒絕訪問。 ”&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;開始以為是“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files”文件夾權限的問題，但怎麼設置這個權限也解決不了問題。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;後來在應用程序池設置中將“加載用戶配置文件”（Load User Profile）設置為true，問題就解決。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsj1WzdqKGQnbeDmbPi0BNs8DxaYhaGIyaZ_CM5Hm8QDBefaDuMYPLcOi80vKxdPJOyzkrVVmEtDFqYtkuoHned3JPu18v80yx1hAGOXH6EZx2sNolYxFR5PCs-9Y_66mzrwnMEFS93g4/s1600/2018-11-21+%25E4%25B8%258A%25E5%258D%2588+03-02-56.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;266&quot; data-original-width=&quot;406&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsj1WzdqKGQnbeDmbPi0BNs8DxaYhaGIyaZ_CM5Hm8QDBefaDuMYPLcOi80vKxdPJOyzkrVVmEtDFqYtkuoHned3JPu18v80yx1hAGOXH6EZx2sNolYxFR5PCs-9Y_66mzrwnMEFS93g4/s1600/2018-11-21+%25E4%25B8%258A%25E5%258D%2588+03-02-56.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/6459962207483269804/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/08/iisaspnet-temp_4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6459962207483269804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6459962207483269804'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/08/iisaspnet-temp_4.html' title='[IIS][ASP.NET] 拒絕訪問Temp目錄'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsj1WzdqKGQnbeDmbPi0BNs8DxaYhaGIyaZ_CM5Hm8QDBefaDuMYPLcOi80vKxdPJOyzkrVVmEtDFqYtkuoHned3JPu18v80yx1hAGOXH6EZx2sNolYxFR5PCs-9Y_66mzrwnMEFS93g4/s72-c/2018-11-21+%25E4%25B8%258A%25E5%258D%2588+03-02-56.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-5191499056186093944</id><published>2016-08-04T01:22:00.001-07:00</published><updated>2016-08-04T01:22:38.767-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>[IIS][ASP.NET] 拒絕訪問Temp目錄</title><content type='html'>&lt;blockquote style=&quot;background: none rgb(255, 255, 255); border: 2px solid rgb(239, 239, 239); color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px 0px; padding: 5px 10px;&quot;&gt;
&lt;div style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;創建BlogConfigurationSettings 的配置節處理程序時出錯: 拒絕訪問臨時目錄。&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;以其運行XmlSerializer 的身份“IIS APPPOOL\www.cnblogs.com”沒有足夠的權限訪問臨時目錄。&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;CodeDom 將使用此進程用於進行編譯的用戶帳戶，因此如果用戶對系統臨時目錄沒有訪問權限，則將無法編譯。&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;使用Path.GetTempPath() API 可找到臨時目錄位置。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;Access to the temp directory is denied. Identity &#39;IIS APPPOOL\www.cnblogs.com&#39; under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;CS0016: 未能寫入輸出文件“c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\946055b8\92eead15\App_global.asax.qakaesxx.dll”--“拒絕訪問。 ”&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;開始以為是“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files”文件夾權限的問題，但怎麼設置這個權限也解決不了問題。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;後來在應用程序池設置中將“加載用戶配置文件”（Load User Profile）設置為true，問題就解決。&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://images.cnitblog.com/blog/1/201302/03220622-9ad676fc4c2c41e1a8058f1f9c257ffd.png&quot; style=&quot;border: 0px; margin: 0px; max-width: 900px; padding: 0px;&quot; width=&quot;360&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 23.4px; margin: 10px auto; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://images.cnitblog.com/blog/1/201302/03220759-dcd98873b28946d3a26dde88ca91667d.png&quot; style=&quot;border: 0px; margin: 0px; max-width: 900px; padding: 0px;&quot; width=&quot;332&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/5191499056186093944/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/08/iisaspnet-temp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5191499056186093944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5191499056186093944'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/08/iisaspnet-temp.html' title='[IIS][ASP.NET] 拒絕訪問Temp目錄'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-4035000080607668294</id><published>2016-07-29T00:15:00.001-07:00</published><updated>2016-07-29T00:15:19.784-07:00</updated><title type='text'>Includes Files Dynamically</title><content type='html'>&lt;span style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px;&quot;&gt;下面說明，因為include 為SEVER SIDE SSI語法，所以前後的if、select判斷式都不會執行&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; line-height: 25.5px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; line-height: 25.5px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px;&quot;&gt;&lt;a href=&quot;http://www.learnasp.com/freebook/asp/inc.aspx&quot; style=&quot;border-bottom-color: rgb(145, 184, 193); border-bottom-style: dashed; border-bottom-width: 1px; color: #669999; padding-bottom: 1px; text-decoration: none;&quot;&gt;http://www.learnasp.com/freebook/asp/inc.aspx&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;left&quot; style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: medium;&quot;&gt;&lt;strong&gt;Include Files&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;small&gt;The include option is the heart of making efficient ASP files and re-usable chunks. It basically&amp;nbsp;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;has two forms and now we will present the forms and their differences:&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;strong&gt;&lt;big&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;!--#include&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Courier;&quot;&gt;virtual&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;=&quot;/whatever.asp&quot;--&amp;gt;&lt;/span&gt;&lt;/big&gt;&lt;/strong&gt;&lt;small&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;would include any file on your site (in this example, whatever.asp is in the web server&#39;s root directory)&amp;nbsp;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;but you must fully qualify the filename with a path.&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;strong&gt;&lt;big&gt;&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;lt;!--#include&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;file&lt;/span&gt;=&quot;whatever.asp&quot;--&amp;gt;&lt;/span&gt;&lt;/big&gt;&lt;/strong&gt;&lt;small&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;can include the whatever.asp file in&amp;nbsp; the directory of the script that contains the statement.&amp;nbsp;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;It ASSUMES the current directory!&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;strong&gt;&lt;small&gt;Example #1&lt;/small&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&amp;lt;!--#include virtual=&quot;/sally/filename.asp&quot;--&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;small&gt;&lt;strong&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;&lt;/strong&gt;could include a file from sally&#39;s directory, even if the page with this statement is (for example)&amp;nbsp;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;in the /fred/finance folder.&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;small&gt;&lt;strong&gt;Example #2:&lt;/strong&gt;&lt;/small&gt;&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;lt;!--#include file=&quot;/sally/filename.asp&quot;--&amp;gt;&lt;/span&gt;&lt;small&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;will fail from fred&#39;s directory.&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;strong&gt;&lt;small&gt;Example #3:&lt;/small&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;lt;!--#include file=&quot;../sally/filename.asp&quot;--&amp;gt;&lt;/span&gt;&lt;small&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;will succed from fred&#39;s directory but if the script that contains it is moved to a different level in the tree structure&amp;nbsp;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;it will fail to locate the file. INCLUDE VIRTUAL is better if a script may be moved and is immune to relative path issues.&lt;/small&gt;&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; color: #5d5d5d; font-family: Arial; font-size: 15px; letter-spacing: 1.5px; line-height: 25.5px; margin: 0px; padding: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;small&gt;&lt;strong&gt;IMPORTANT:&amp;nbsp;&lt;/strong&gt;Include files are always processed and inserted before ASP scripts on the page are calculated. Thus a page with many IFs and SELECT CASEs that selectively include files in fact always include the file before the script begins executing.&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;請參考下面的動態載入方式&lt;/small&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: medium;&quot;&gt;&lt;strong&gt;Includes Files Dynamically&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;small&gt;The include files are gathered and processed BEFORE any ASP code. Soif your code looks like this:&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;small&gt;&amp;lt;%SELECT CASE&amp;nbsp;&lt;/small&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;&lt;small&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 1 %&amp;gt;&lt;/small&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--#include virtual=&quot;whatever1.asp&quot;--&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;small&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 2 %&amp;gt;&lt;/small&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--#include virtual=&quot;whatever2.asp&quot;--&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;small&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 3 %&amp;gt;&lt;/small&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--#include virtual=&quot;whatever3.asp&quot;--&amp;gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;&amp;lt;%END SELECT%&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;small&gt;Three includes are performed before any ASP code is executed.&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Arial;&quot;&gt;&lt;strong&gt;&lt;small&gt;YOU CANNOT DO:&lt;/small&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;small&gt;&amp;lt;%&lt;/small&gt;&lt;br style=&quot;letter-spacing: normal;&quot; /&gt;&lt;small&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whichfile=&quot;1&quot;%&amp;gt;&lt;/small&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;nbsp; &amp;lt;!--#include virtual=&quot;whatever&amp;lt;%=whichfil%&amp;gt;.asp&quot;--&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;small&gt;Though this is a reasonable idea.&lt;/small&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Courier;&quot;&gt;&amp;lt;!--#include virtual=&quot;whatever.asp&quot;--&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;small&gt;We however have coded a workaround that is FREE you may find useful. The workaround is:&lt;/small&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span id=&quot;_ctl0_BasicContent__ctrl_0_fauxform&quot;&gt;&lt;small&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;filename=&lt;strong&gt;&lt;span style=&quot;color: red;&quot;&gt;/learn/test/includedynamic.asp&lt;/span&gt;&lt;/strong&gt;&lt;/small&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/4035000080607668294/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/includes-files-dynamically.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/4035000080607668294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/4035000080607668294'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/includes-files-dynamically.html' title='Includes Files Dynamically'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-5743106782353809199</id><published>2016-07-28T19:20:00.000-07:00</published><updated>2016-07-28T19:20:09.226-07:00</updated><title type='text'>How to Use JavaScript to Change a Cascading Style Sheet (CSS) Dynamically</title><content type='html'>&lt;h1 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.4em; line-height: 1.1em; margin: 1px;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
It may be useful sometimes to provide your visitors with the option to change the appearance of your website. Perhaps you want to provide theme support for your site. Or you may simply want to provide a bigger font size version of your site for older users who may not be able to read the small-sized text you use by default. This article describes how you can use JavaScript to dynamically change the cascading style sheets, or CSS, of your website.&lt;/div&gt;
&lt;/h1&gt;
&lt;h2 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.1em; line-height: 20.8px; margin: 1px;&quot;&gt;
Prerequisites&lt;/h2&gt;
&lt;h1 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.4em; line-height: 1.1em; margin: 1px;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
One of the assumptions I will make in&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/javascripts/change-style-sheets.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;this tutorial&lt;/a&gt;&amp;nbsp;is that you know how to write HTML and&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/archive/css.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot; title=&quot;Introduction to CSS&quot;&gt;CSS&lt;/a&gt;. You do not have to be highly proficient in either of these, but you should have at least a basic working knowledge. Some JavaScript knowledge is also necessary.&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
If you have not already done so, you may want to read the following articles as well. This guide was written as the part of a series of articles on how to provide alternate style sheets for your website and change them.&lt;/div&gt;
&lt;ol style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://www.thesitewizard.com/css/switch-alternate-css-styles.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;How to Allow Your Visitors to Switch Between Alternate CSS Styles / Themes&lt;/a&gt;. It deals with the CSS aspect of switching style sheets.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.thesitewizard.com/javascripts/cookies.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;How to Use Cookies in JavaScript&lt;/a&gt;. Although not strictly part of the CSS style switcher series, the cookie management code provided in that article is used to preserve the theme selection that your visitors make on your site. Without setting a cookie, their CSS setting will not be retained when they go to the other pages on your website.&lt;/li&gt;
&lt;/ol&gt;
&lt;/h1&gt;
&lt;h2 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.1em; line-height: 20.8px; margin: 1px;&quot;&gt;
Steps to Adding a Style Sheet Switcher in JavaScript&lt;/h2&gt;
&lt;h1 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.4em; line-height: 1.1em; margin: 1px;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
Let&#39;s assume that we have the following style sheets defined in our&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;HEAD&lt;/code&gt;&amp;nbsp;section. This is the same code described and explained in&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/css/switch-alternate-css-styles.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;the first instalment&lt;/a&gt;&amp;nbsp;of this tutorial.&lt;/div&gt;
&lt;div class=&quot;codeblock&quot; style=&quot;border: 1px solid green; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; font-weight: normal; line-height: 20.8px; padding: 8px;&quot;&gt;
&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; title=&quot;blue&quot; href=&quot;http://example.com/css/blue.css&quot;&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;alternate stylesheet&quot; type=&quot;text/css&quot; title=&quot;pink&quot; href=&quot;http://example.com/css/pink.css&quot;&amp;gt;&lt;/div&gt;
&lt;/h1&gt;
&lt;h3 style=&quot;font-size: 1.1em; margin: 1px;&quot;&gt;
HTML Code to Provide a Way for Your Users to Choose the Style Sheet&lt;/h3&gt;
&lt;h1 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.4em; line-height: 1.1em; margin: 1px;&quot;&gt;
&lt;ol style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
&lt;li&gt;You will need to provide some way for your visitors to select the theme or CSS they want. There are many ways to do this, including the use of radio buttons, drop down selection boxes, normal submit buttons, text links, and so on. For&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/webdesign/index.shtml#usability&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;usability&lt;/a&gt;&amp;nbsp;reasons, you should&amp;nbsp;&lt;strong&gt;not&lt;/strong&gt;&amp;nbsp;use things like checkboxes which suggests to users that they can simultaneously select a few themes and have them work together.&lt;br /&gt;
Here&#39;s an example of HTML code using normal submit buttons.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot; style=&quot;border: 1px solid green; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; padding: 8px;&quot;&gt;
&amp;lt;form&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;submit&quot; onclick=&quot;switch_style(&#39;blue&#39;);return false;&quot; name=&quot;theme&quot; value=&quot;Blue Theme&quot; id=&quot;blue&quot;&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;submit&quot; onclick=&quot;switch_style(&#39;pink&#39;);return false;&quot; name=&quot;theme&quot; value=&quot;Pink Theme&quot; id=&quot;pink&quot;&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/div&gt;
When the visitor clicks any of the buttons, the JavaScript&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;onclick&lt;/code&gt;&amp;nbsp;handler,&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;switch_style()&lt;/code&gt;, will run. The function will be passed either &#39;blue&#39; or &#39;pink&#39; as its parameters, depending on which button is clicked. The words &quot;blue&quot; and &quot;pink&quot; correspond to the title attributes for the&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;link&lt;/code&gt;&amp;nbsp;elements referencing the style sheets.&lt;/li&gt;
&lt;/ol&gt;
&lt;/h1&gt;
&lt;h3 style=&quot;font-size: 1.1em; margin: 1px;&quot;&gt;
JavaScript Function to Change Style Sheets&lt;/h3&gt;
&lt;h1 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.4em; line-height: 1.1em; margin: 1px;&quot;&gt;
&lt;ol style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
&lt;li&gt;The actual JavaScript code needed to implement CSS style switching can be found below.&lt;br /&gt;
&lt;form action=&quot;http://www.thesitewizard.com/dontcrawl/&quot;&gt;
&lt;textarea cols=&quot;60&quot; id=&quot;tswswitch&quot; readonly=&quot;readonly&quot; rows=&quot;67&quot; title=&quot;Copy and paste the text in this box into a text file&quot;&gt;&lt;/textarea&gt;&lt;/form&gt;
Note that this script includes the&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;set_cookie()&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;get_cookie()&lt;/code&gt;&amp;nbsp;functions from the&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/javascripts/cookies.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;How to Use Cookies in JavaScript&lt;/a&gt;&amp;nbsp;article. For your convenience, I have already included those functions in the block of code above, so you do not need to copy and paste from that article. However, you may still want to read&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/javascripts/cookies.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;that article&lt;/a&gt;&amp;nbsp;to understand the default settings and assumptions I make in my cookie code.&lt;br /&gt;
The&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;switch_style()&lt;/code&gt;&amp;nbsp;function essentially iterates through all your&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;link&lt;/code&gt;&amp;nbsp;tags looking for a style sheet with the same title as the text specified in its argument (parameter). If it matches, it sets a special property, called&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;disabled&lt;/code&gt;, to false, thus enabling that style sheet. In the meantime, all other relevant style sheets are disabled. The function ignores all&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/css/switch-alternate-css-styles.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;persistent style sheets&lt;/a&gt;&amp;nbsp;as well as any non-style-sheet&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;link&lt;/code&gt;&amp;nbsp;tags, such as those used for your&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/archive/favicon.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;site&#39;s favicon&lt;/a&gt;.&lt;br /&gt;
When it finishes, it sets a cookie with the necessary information about the style sheet setting. By default, the name of the cookie is &quot;style&quot; and it is retained for 30 days. You can change this by altering the values of the&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;style_cookie_name&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;style_cookie_duration&lt;/code&gt;&amp;nbsp;variables at the start of the script. You should also change the value of the&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;style_domain&lt;/code&gt;variable to that of&amp;nbsp;&lt;a href=&quot;http://www.thesitewizard.com/archive/registerdomain.shtml&quot; style=&quot;background-color: transparent; color: purple;&quot; target=&quot;_top&quot;&gt;your own domain&lt;/a&gt;.&lt;br /&gt;
To ensure that the visitors&#39; style sheet settings remain when they visit other pages of your site, as well as when they reload the page, you will also need to add an&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;onload&lt;/code&gt;&amp;nbsp;attribute to your web pages&#39;&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;body&lt;/code&gt;&amp;nbsp;tag. For example, change&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;&amp;lt;body&amp;gt;&lt;/code&gt;&amp;nbsp;to the following:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot; style=&quot;border: 1px solid green; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; padding: 8px;&quot;&gt;
&amp;lt;body onload=&quot;set_style_from_cookie()&quot;&amp;gt;&lt;/div&gt;
This causes the browser to run the&amp;nbsp;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em;&quot;&gt;set_style_from_cookie()&lt;/code&gt;&amp;nbsp;function when the page is loaded. The function merely checks for the style-setting cookie, and if present, switches the style sheets accordingly. Otherwise, it does nothing.&lt;/li&gt;
&lt;/ol&gt;
&lt;/h1&gt;
&lt;h2 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.1em; line-height: 20.8px; margin: 1px;&quot;&gt;
Demo&lt;/h2&gt;
&lt;h1 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.4em; line-height: 1.1em; margin: 1px;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
You can check out how the script works using the test copy loaded with this page. To change between the current style sheet used on thesitewizard.com and the older version, simply select the appropriate button below.&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
Note that the code used for this demo sets a cookie called &quot;demo_theme&quot; in your browser that is valid for only 1 day. The cookie will contain either the word &quot;blue&quot; or &quot;grey&quot;, depending on which button you click. Your setting will only affect this page, and no other page on this site, since none of the other pages includes the style switcher JavaScript code.&lt;/div&gt;
&lt;form action=&quot;http://www.thesitewizard.com/dontcrawl/&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 20.8px;&quot;&gt;
&lt;input id=&quot;blue&quot; name=&quot;theme&quot; type=&quot;submit&quot; value=&quot;Blue Theme (Current theme)&quot; /&gt;&amp;nbsp;&lt;input id=&quot;grey&quot; name=&quot;theme&quot; type=&quot;submit&quot; value=&quot;Grey Theme (Old theme)&quot; /&gt;&lt;/form&gt;
&lt;/h1&gt;
&lt;h2 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 1.1em; line-height: 20.8px; margin: 1px;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/5743106782353809199/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/how-to-use-javascript-to-change.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5743106782353809199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5743106782353809199'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/how-to-use-javascript-to-change.html' title='How to Use JavaScript to Change a Cascading Style Sheet (CSS) Dynamically'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-5022250004242594060</id><published>2016-07-25T23:01:00.001-07:00</published><updated>2016-07-27T10:22:02.864-07:00</updated><title type='text'>ASP.Net : 如何追蹤執行時所花費時間</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;
    &lt;br clear=&quot;all&quot; /&gt;
    &lt;div&gt;
        &lt;div dir=&quot;ltr&quot;&gt;
            &lt;div dir=&quot;ltr&quot;&gt;
                &lt;div dir=&quot;ltr&quot;&gt;
                    &lt;div dir=&quot;ltr&quot;&gt;
                        &lt;div dir=&quot;ltr&quot;&gt;
                            &lt;div dir=&quot;ltr&quot;&gt;
                                &lt;div dir=&quot;ltr&quot;&gt;
                                    &lt;div dir=&quot;ltr&quot;&gt;
                                        &lt;div&gt;
                                            &lt;div class=&quot;gmail-article__desc&quot; style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                &lt;div style=&quot;margin: 22px 0px;&quot;&gt;
                                                    介紹如何使用 Stopwatch 類別來追蹤執行時間，以及使用時的小技巧
                                                &lt;/div&gt;
                                            &lt;/div&gt;
                                            &lt;div style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                我們常常會需要去追蹤一段code執行所花費的時間，&lt;br /&gt;
                                                一般的做法會像這樣
                                            &lt;/div&gt;
&lt;pre style=&quot;font-size: 12.597px; line-height: 12.471px; padding: 0px;&quot;&gt;
&lt;code&gt;
 ////示範一 
 DateTime dtstart = DateTime.Now;                
                                            &lt;span class=&quot;gmail-hljs-comment&quot; style=&quot;color: rgb(0 , 128 , 0);&quot;&gt;//// code&lt;/span&gt;
 System.Threading.Thread.Sleep(&lt;span class=&quot;gmail-hljs-number&quot;&gt;100&lt;/span&gt;);         
 TimeSpan ts = DateTime.Now - dtstart;  
 Response.Write(ts.TotalSeconds.ToString());
                                            &lt;code&gt;
&lt;/pre&gt;
                                            &lt;div style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                這邊分享另一個類別&amp;nbsp;&lt;span style=&quot;font-weight: bolder;&quot;&gt;【Stopwatch】&lt;/span&gt;
                                                &lt;/code&gt;
                                            &lt;/div&gt;
&lt;pre style=&quot;font-size: 12.597px; line-height: 12.471px; padding: 0px;&quot;&gt;
&lt;code&gt; 
////示範二             
    System.Diagnostics.Stopwatch sw =
                                            &lt;span class=&quot;gmail-hljs-keyword&quot; style=&quot;color: rgb(0 , 0 , 255);&quot;&gt;new&lt;/span&gt; 
    System.Diagnostics.Stopwatch();              
    sw.Start();                
                                            &lt;span class=&quot;gmail-hljs-comment&quot; style=&quot;color: rgb(0 , 128 , 0);&quot;&gt;
//// code&lt;/span&gt;              
System.Threading.Thread.Sleep(&lt;span class=&quot;gmail-hljs-number&quot;&gt;100&lt;/span&gt;);                
sw.Stop();              
Response.Write(sw.Elapsed.TotalSeconds.ToString());
&lt;/code&gt;
&lt;/pre&gt;
                                            &lt;div style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                一樣可以達到相同效果。
                                            &lt;/div&gt;
                                            &lt;div style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                那兩者的差異在哪呢，&lt;br /&gt;
                                                【Stopwatch】提供較高精確度的計量，&lt;br /&gt;
                                                如果硬體和OS支援高解析度效能計數器，Stopwatch 類別會使用該計數器來測量已耗用時間。&lt;br /&gt;
                                                不然，Stopwatch 類別會使用系統計時器來測量已耗用時間，&lt;br /&gt;
                                                並且可重複呼叫Start及Stop方法，來累積更多執行區間所耗用時間，&lt;br /&gt;
                                                然後利用【Elapsed】屬性取得累積耗用時間。
                                            &lt;/div&gt;
                                            &lt;div style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                &lt;br /&gt;
                                            &lt;/div&gt;
                                            &lt;div style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                再分享一下，&lt;br /&gt;
                                                為了方便在線上環境追蹤執行狀況，有時可以利用 #if DEBUG 搭配 Stopwatch，埋一些追蹤的code，&lt;br /&gt;
                                                只要將 web.config 的 debug mode 設定為 true，就可以輸出執行時間，&lt;br /&gt;
                                                在將 debug mode 設定為 false，就可以隱藏執行時間，類似作法如下
                                            &lt;/div&gt;
&lt;pre style=&quot;background-color: rgb(238 , 238 , 238); border: 1px solid rgb(221 , 221 , 221); color: rgb(51 , 51 , 51); font-family: &amp;quot;source code pro&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px; max-width: 100%; overflow: auto; padding: 4.5px 11px;&quot;&gt;&lt;code class=&quot;gmail-language-cpp gmail-hljs&quot; style=&quot;border-radius: 0px; border: none; display: block; font-family: &amp;quot;source code pro&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 1em; line-height: inherit; margin: 0px; overflow-x: auto; padding: 0px;&quot;&gt; 
&lt;code&gt;
&lt;span class=&quot;gmail-hljs-comment&quot; style=&quot;color: rgb(0 , 128 , 0);&quot;&gt;////示範三 #if DEBUG 搭配 Stopwatch&lt;/span&gt; 
&lt;span class=&quot;gmail-hljs-preprocessor&quot; style=&quot;color: rgb(43 , 145 , 175);&quot;&gt;#&lt;span class=&quot;gmail-hljs-keyword&quot; style=&quot;color: rgb(0 , 0 , 255);&quot;&gt;if&lt;/span&gt; DEBUG&lt;/span&gt;
System.Diagnostics.Stopwatch sw = &lt;span class=&quot;gmail-hljs-keyword&quot; style=&quot;color: rgb(0 , 0 , 255);&quot;&gt;new&lt;/span&gt; System.Diagnostics.Stopwatch();
sw.Start();  
&lt;span class=&quot;gmail-hljs-preprocessor&quot; style=&quot;color: rgb(43 , 145 , 175);&quot;&gt;#&lt;span class=&quot;gmail-hljs-keyword&quot; style=&quot;color: rgb(0 , 0 , 255);&quot;&gt;endif&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;gmail-hljs-comment&quot; style=&quot;color: rgb(0 , 128 , 0);&quot;&gt;//// code&lt;/span&gt;         
 System.Threading.Thread.Sleep(&lt;span class=&quot;gmail-hljs-number&quot;&gt;100&lt;/span&gt;);    
&lt;span class=&quot;gmail-hljs-preprocessor&quot; style=&quot;color: rgb(43 , 145 , 175);&quot;&gt;#&lt;span class=&quot;gmail-hljs-keyword&quot; style=&quot;color: rgb(0 , 0 , 255);&quot;&gt;if&lt;/span&gt; DEBUG&lt;/span&gt; 
sw.Stop();          
Response.Write(sw.Elapsed.TotalSeconds.ToString());  
&lt;span class=&quot;gmail-hljs-preprocessor&quot; style=&quot;color: rgb(43 , 145 , 175);&quot;&gt;#&lt;span class=&quot;gmail-hljs-keyword&quot; style=&quot;color: rgb(0 , 0 , 255);&quot;&gt;endif&lt;/span&gt;&lt;/span&gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;div style=&quot;background-color: rgb(245 , 245 , 245); color: rgb(85 , 85 , 85); font-family: , sans-serif , &amp;quot;arial&amp;quot;; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
                                                此範例是將時間直接輸出，&lt;br /&gt;
                                                各位可以修改將時間輸出到檔案或是別的地方。
                                            &lt;/div&gt;
                                        &lt;/div&gt;
                                        &lt;div&gt;
                                            &lt;br /&gt;
                                            程式碼工作室 &amp;nbsp;吳 Sir&lt;br /&gt;
                                            Skype: wu_chung_pin
                                        &lt;/div&gt;
                                        &lt;div&gt;
                                            Line: paulwu0114
                                        &lt;/div&gt;
                                        &lt;div&gt;
                                            亞太:0977387198
                                        &lt;/div&gt;
                                        &lt;div&gt;
                                            電話:03-5509853
                                        &lt;/div&gt;
                                        &lt;div&gt;
                                            傳真:03-5509853
                                        &lt;/div&gt;
                                        &lt;div&gt;
                                            &lt;div style=&quot;font-size: small;&quot;&gt;
                                                官方網址: &lt;a href=&quot;http://www.runcode.com.tw/&quot; target=&quot;_blank&quot;&gt;http://www.runcode.com.tw&lt;/a&gt;
                                            &lt;/div&gt;
                                        &lt;/div&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/5022250004242594060/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/aspnet.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5022250004242594060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/5022250004242594060'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/aspnet.html' title='ASP.Net : 如何追蹤執行時所花費時間'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-8338499375023719780</id><published>2016-07-21T20:00:00.001-07:00</published><updated>2016-07-21T20:06:16.032-07:00</updated><title type='text'>資料指標(CURSOR)</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;
&lt;pre style=&quot;color: rgb(0 , 0 , 0); white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/*** 資料指標(CURSOR) ***/


/* 1. 基本用法 */
/***********************************************************/
DECLARE cur1 CURSOR FOR SELECT PRODUCTID,PRODUCTNAME 
  FROM PRODUCTS --(1.宣告Cursor)

DECLARE @ProdId int, @ProdName VARCHAR(40),
        @Count NUMERIC(10,0)

OPEN cur1      --(2.開啟Cursor)
SET @Count = 0
FETCH NEXT FROM cur1 
    INTO @ProdId,@ProdName  --(3.抓取Cursor中之記錄資料)
WHILE @@FETCH_STATUS=0   /*0: Fetch成功 -1: Fetch失敗 
                          -2: 要Fetch之記錄已不存在(一般發生
                              在KEYSET之CURSOR) */ 
BEGIN
  PRINT CONVERT(CHAR(5),@ProdId)+&#39; &#39;+@ProdName
  SET @Count = @Count + 1
  FETCH NEXT FROM cur1 INTO @ProdId,@ProdName
END
PRINT &#39;&#39;
PRINT &#39;共 &#39;+ CONVERT(VARCHAR(10),@Count)+&#39; 筆&#39;

CLOSE cur1                  --(4.關閉Cursor)
DEALLOCATE cur1             --(5.移除Cursor)


/* 2. CURSOR 深入探討 */
/***********************************************************/

/* 2.1 Cursor宣告 */
/***********************************************************/
  /* 2.1.1 用SQL-92標準語法宣告 */
    /*===========================================*/
  DECLARE cur_name [INSENSITIVE] [SCROLL] CURSOR
  FOR select_statement
  [FOR {READ ONLY| UPDATE [OF col_name [,...n] ] } ]

  (註1) INSENSITIVE: 1.SQL Server會在Tempdb資料庫,
                     建立暫存資料表存放Cursor內容
                     (當其他使用者在Cursor開啟之後
                      才異動之資料,並不會反映於Cursor內容上);
                     2.此類Cursor不可用來更改或刪除資料
                     3.可加快資料讀取速度 
  (註2) SCROLL: 唯有此設定之Cursor,才可跳躍式地被讀取資料
                例如Fetch Fisrt/Last/Prior/Relative/Absolute
                (預設只能由前往後循序被讀取)
  (註3) FOR UPDATE OF ... : 指定資料表可異動之欄位


  /* 2.1.2 用T-SQL擴充語法宣告 */
    /*===========================================*/
  DECLARE cur_name CURSOR
  [LOCAL|GLOBAL]      /* Cursor 有效範圍(cursor_scope) */
                      --LOCAL: 當相關批次結束時,該Cursor自動被
                               SQL Server移除(Close and Deallocate)
                      --GLOBAL(預設):該Cursor可於整個登入連線過程
                                     中被使用
  [FORWARD_ONLY|SCROLL] /* 資料可否跳躍式讀取(scrollable) */
                        --FORWARD_ONLY: 相當於SQL-92未設定SCROLL者
                        --SCROLL: 相當於SQL-92之SCROLL

  [STATIC|KEYSET|DYNAMIC] /* Cursor內容是否會自動更新(model) */
                          --STATIC: 相當於SQL-92之INSENSITIVE者
                          --KEYSET: 1.只有鍵值欄位之資料存入暫存資料表,
                                      其他欄位內容可動態更新反映;
                                    2.當來源資料表之鍵值欄位被異動時,
                                      讀取Cursor中之對應記錄會產生錯誤
                                      (@@FETCH_STATUS =&amp;gt; -2)
                          --DYNAMIC: 相當於SQL-92未設訂INSENSITIVE者
                     
  [READ_ONLY|SCROLL_LOCKS|OPTIMISTIC]
                          /* Cursor可否被異動(concurrency) */
                          --READ_ONLY: 相當於SQL-92之 FOR READ ONLY
                          --SCROLL_LOCKS: 經由Cursor讀取到的記錄皆被
                                          SQL Server自動鎖住(Lock);
                                          以確定資料修改或刪除不會被他人
                                          妨礙
                          --OPTIMISTIC:  1.經由Cursor讀取到的記錄不會被
                                           鎖住,但允許由此Cursor去更改
                                           資料;
                                         2.原始資料中之記錄若已被異動,再
                                           由Cursor去異動該筆記錄時會導致
                                           失敗
  
  FOR select_statement
  [FOR UPDATE [OF col_name [,...n] ] ]  --相當於SQL-92之 FOR UPDATE 


  ◎最簡單範例:
  DECLARE cur1 CURSOR FOR SELECT * FROM PRODUCTID 

  --&amp;gt; 預設設定:GLOBAL + FORWARD_ONLY + DYNAMIC + OPTIMISTIC
                          
                             

/* 2.2 Cursor開啟(Open) */
/***********************************************************/
  ◎建立Cursor與來源資料表之連結

  (註1)開啟INSENSITIVE 或 STATIC CURSOR: 
       SQL Server會在Tempdb資料庫,建立暫存資料表
       存放Cursor內容(當其他使用者在Cursor開啟之後
       才異動之資料,並不會反映於Cursor內容上)
  (註2)開啟KEYSET CURSOR:
       SQL Server只會將鍵值欄位資料存入暫存資料表



/* 2.3 Cursor關閉(Close) */
/***********************************************************/
  ◎解除Cursor與來源資料表之連結 



/* 2.4 Cursor移除(Deallocate) */
/***********************************************************/
  ◎從記憶體中移除Cursor定義 



/* 2.5. FETCH用法深入探討 */
/***********************************************************/
FETCH [NEXT             --(1) 預設 
                              (註: Cursor被Open時,
                                   記錄位置是在第一筆之前)
       PRIOR  
       FIRST
       LAST
       ABSOLUTE n
       RELATIVE n ]
[FROM] cur1 
[INTO @Var1,@Var2,... ] --(2) 省略INTO項,則抓取之資料
                              將傳回給前端應用程式

  --2.5.1 巢狀Cursor應用
  /*===========================================*/
DECLARE @cust_id VARCHAR(5), @ord_id INT, @ord_date DATETIME

/*** 外層 ***/
DECLARE cust_cur INSENSITIVE CURSOR FOR 
  SELECT CUSTOMERID   FROM CUSTOMERS 
  ORDER BY CUSTOMERID
OPEN cust_cur
FETCH cust_cur INTO @cust_id

WHILE @@FETCH_STATUS=0
BEGIN
  PRINT &#39;客戶&#39; + @cust_id + &#39; 訂單:&#39;

  /*** 內層 ***/
  DECLARE ord_cur CURSOR FOR 
    SELECT ORDERID,ORDERDATE 
    FROM ORDERS 
    WHERE CUSTOMERID=@cust_id 
      -- @cust_id變數在左式之Cursor宣告時會以實際值取代
  OPEN ord_cur
  FETCH ord_cur INTO @ord_id,@ord_date
  WHILE @@FETCH_STATUS=0
  BEGIN
    PRINT &#39;      &#39; + convert(varchar,@ord_id)+ &#39; &#39;+ 
          convert(varchar,@ord_date,111)
    FETCH ord_cur INTO @ord_id,@ord_date
  END
  CLOSE ord_cur
  DEALLOCATE ord_cur
  /************/

  FETCH cust_cur INTO @cust_id
END

CLOSE cust_cur
DEALLOCATE cust_cur
   


/* 3. 透過CURSOR修改或刪除資料 */
/***********************************************************/
(註1)此Cursor不可是READ_ONLY

USE NORTHWIND
DROP TABLE PRODUCTS2
SELECT * INTO PRODUCTS2 FROM PRODUCTS

DECLARE @unitprc numeric(10,4)
DECLARE cur1 CURSOR FOR SELECT UNITPRICE FROM PRODUCTS2
OPEN cur1
FETCH cur1 INTO @unitprc 
WHILE @@FETCH_STATUS=0
BEGIN
 UPDATE PRODUCTS2 SET UNITPRICE = @unitprc*1.1
   WHERE CURRENT OF cur1

 FETCH cur1 INTO @unitprc
END
CLOSE cur1
DEALLOCATE cur1


/* 4. 預存程序之OUTPUT 參數使用Cursor變數 */
/***********************************************************/
CREATE PROC sp_EmpCur @cur_var CURSOR VARYING OUTPUT
AS
  Set @cur_var = CURSOR FOR SELECT EMPLOYEEID,LASTNAME+&#39; &#39;+FIRSTNAME FROM EMPLOYEES
  /* 上敘述產生區域性CURSOR,即此CURSOR只限被呼叫之程式使用
     (其他批次之程式不可使用) */
  Open @cur_var
GO

/***** 呼叫上述預存程序 *****/
DECLARE @cur_var CURSOR
DECLARE @empid int,@name VARCHAR(80)

EXEC sp_EmpCur @cur_var OUTPUT

FETCH NEXT FROM @cur_var INTO @empid, @name
WHILE @@FETCH_STATUS=0
BEGIN
  PRINT convert(varchar,@empid)+&#39; &#39;+@name
  FETCH NEXT FROM @cur_var INTO @empid, @name
END
 
/* 本批次結束後,CURSOR自動被Close及Deallocate */
GO


/* 5. Local Cursor與Global Cursor之命名空間 */
/***********************************************************/
--5.1 Global Cursor與Local Cursor可有相同的名稱
      當有同名之Cursor存在時,欲存取Global Cursor必須加上Global關鍵字

--5.2 實例示範 
DECLARE cur1 CURSOR FOR SELECT * FROM PRODUCTS
DECLARE cur1 CURSOR LOCAL FOR SELECT * FROM CUSTOMERS

OPEN cur1           --Local Cursor
FETCH cur1

OPEN GLOBAL cur1
FETCH GLOBAL cur1
CLOSE GLOBAL cur1
DEALLOCATE GLOBAL cur1
&lt;/pre&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;div&gt;
&lt;div class=&quot;gmail_signature&quot; data-smartmail=&quot;gmail_signature&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: small;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/8338499375023719780/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/cursor.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/8338499375023719780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/8338499375023719780'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/cursor.html' title='資料指標(CURSOR)'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-6206402582236529291</id><published>2016-07-20T20:25:00.001-07:00</published><updated>2016-07-20T20:25:31.014-07:00</updated><title type='text'>Using a cursor with dynamic SQL in a stored procedure</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;div class=&quot;gmail_signature&quot; data-smartmail=&quot;gmail_signature&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;I have a dynamic SQL statement I&amp;#39;ve created in a stored procedure. I need to iterate over the results using a cursor. I&amp;#39;m having a hard time figuring out the right syntax. Here&amp;#39;s what I&amp;#39;m doing.&lt;/p&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;SQLStatement &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;&amp;#39;SELECT userId FROM users&amp;#39;&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;DECLARE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserId    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;DECLARE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;CURSOR&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FOR&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;EXECUTE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;SQLStatment &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(133,140,147)&quot;&gt;--Fails here. Doesn&amp;#39;&amp;#39;t like this&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;OPEN&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FETCH&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; NEXT &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;INTO&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserId    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;WHILE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;FETCH_STATUS &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;BEGIN&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;EXEC&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; asp_DoSomethingStoredProc &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserId    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;END&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;CLOSE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;DEALLOCATE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;What&amp;#39;s the right way to do this?&lt;/p&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;&lt;br&gt;&lt;/p&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;&lt;br&gt;&lt;/p&gt;&lt;table style=&quot;margin:0px;padding:0px;border:0px;font-size:13px;border-spacing:0px;border-collapse:collapse;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:16.9px&quot;&gt;&lt;tbody style=&quot;margin:0px;padding:0px;border:0px&quot;&gt;&lt;tr style=&quot;margin:0px;padding:0px;border:0px&quot;&gt;&lt;td class=&quot;&quot; style=&quot;padding:0px 15px 0px 0px;border:0px;vertical-align:top&quot;&gt;&lt;div class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;text-align:center;min-width:46px&quot;&gt;&lt;span itemprop=&quot;upvoteCount&quot; class=&quot;&quot; style=&quot;margin:8px 0px;padding:0px;border:0px;font-size:20px;display:block;color:rgb(106,115,124)&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;a class=&quot;&quot; title=&quot;This answer is not useful&quot; style=&quot;margin:0px auto 10px;padding:0px;border:0px;font-size:1px;color:rgb(0,119,204);overflow:hidden;display:block;width:40px;height:30px;background-image:url(&amp;quot;img/sprites.svg?v=8c1c8cba242e&amp;quot;),none;background-repeat:no-repeat&quot;&gt;&lt;br&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;&quot; style=&quot;padding:0px;border:0px;vertical-align:top&quot;&gt;&lt;div class=&quot;&quot; itemprop=&quot;text&quot; style=&quot;margin:0px 0px 5px;padding:0px;border:0px;font-size:15px;width:660px;word-wrap:break-word;line-height:1.3&quot;&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;clear:both&quot;&gt;A cursor will only accept a select statement, so if the SQL really needs to be dynamic make the declare cursor part of the statement you are executing. For the below to work your server will have to be using global cursors.&lt;/p&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;Declare&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserID varchar&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;declare&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;sqlstatement nvarchar&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;4000&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(133,140,147)&quot;&gt;--move declare cursor into sql to be executed&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;sqlstatement &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;&amp;#39;Declare  users_cursor CURSOR FOR SELECT userId FROM users&amp;#39;&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;exec&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; sp_executesql &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;sqlstatement      &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;OPEN&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FETCH&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; NEXT &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;INTO&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserId    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;WHILE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;FETCH_STATUS &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;BEGIN&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;Print&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserID  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;EXEC&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; asp_DoSomethingStoredProc &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserId    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FETCH&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; NEXT &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(133,140,147)&quot;&gt;--have to fetch again within loop&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;INTO&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;UserId    &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;END&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;CLOSE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;DEALLOCATE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; users_cursor&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;程式碼工作室  吳 Sir&lt;br&gt;Skype: wu_chung_pin&lt;/div&gt;&lt;div&gt;Line: paulwu0114&lt;/div&gt;  &lt;div&gt;亞太:0977387198&lt;/div&gt;&lt;div&gt;電話:03-5509853&lt;/div&gt;  &lt;div&gt;傳真:03-5509853&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size:small&quot;&gt;官方網址: &lt;a href=&quot;http://www.runcode.com.tw&quot; target=&quot;_blank&quot;&gt;http://www.runcode.com.tw&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/6206402582236529291/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/using-cursor-with-dynamic-sql-in-stored.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6206402582236529291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6206402582236529291'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/using-cursor-with-dynamic-sql-in-stored.html' title='Using a cursor with dynamic SQL in a stored procedure'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-3941785797825211688</id><published>2016-07-20T09:16:00.001-07:00</published><updated>2016-07-20T09:16:39.026-07:00</updated><title type='text'>SQL Server: combining multiple rows into one row</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;I have a SQL query like this;&lt;/p&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Jira&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;customfieldvalue  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; CUSTOMFIELD &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;12534&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;AND&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; ISSUE &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;19602&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;And that&amp;#39;s the results;&lt;/p&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;&lt;img src=&quot;http://i.stack.imgur.com/GC0Pi.jpg&quot; alt=&quot;enter image description here&quot; style=&quot;margin: 0px; padding: 0px; border: 0px; max-width: 100%;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px&quot;&gt;What I want is; showing in one row (cell) combined all &lt;code style=&quot;margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:pre-wrap;background-color:rgb(239,240,241)&quot;&gt;STRINGVALUE&lt;/code&gt;&amp;#39;s and they are separated with a comma. Like this;&lt;/p&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(133,140,147)&quot;&gt;--some process with STRINGVALUE--&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Jira&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;customfieldvalue  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; CUSTOMFIELD &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;12534&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;AND&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; ISSUE &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;19602&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;    Ara&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ç&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Listesi &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;C2&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; K1 vb&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;Belgeler&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; yoksa Ruhsat Fotokopileri&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Min&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;  ara&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ç&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; plakas&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; i&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ç&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;İ&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;nternet Sorgusu&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Son &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Y&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;la Ait Onayl&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Y&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;l Sonu  Bilan&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ç&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;o &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Gelir Tablosu&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Son Y&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;l &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;Y&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;l Sonuna ait&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Detay Mizan&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;İç&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;inde  Bulundu&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ğ&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;umuz Y&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ı&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;la ait Ara D&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ö&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;nem Ge&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ç&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;ici Vergi Beyannamesi&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Bayi Yorum  E-Maili&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Proforma Fatura&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;line-height:19.5px;white-space:normal;background-color:rgb(255,255,255)&quot;&gt;You can achieve this is to combine For XML Path and STUFF as follows:&lt;/p&gt;&lt;pre class=&quot;&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;white-space:inherit&quot;&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;STUFF&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;          &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;&amp;#39;, &amp;#39;&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; StringValue          &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; Jira&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;customfieldvalue          &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; CUSTOMFIELD &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;12534&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;          &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;AND&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; ISSUE &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;19602&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;          &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;FOR&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;XML&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; PATH&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;          &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(125,39,39)&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(16,16,148)&quot;&gt;AS&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;margin:0px;padding:0px;border:0px;color:rgb(48,51,54)&quot;&gt; StringValue&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;  &lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/3941785797825211688/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/sql-server-combining-multiple-rows-into.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3941785797825211688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3941785797825211688'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/sql-server-combining-multiple-rows-into.html' title='SQL Server: combining multiple rows into one row'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-9013100382743303729</id><published>2016-07-20T09:05:00.004-07:00</published><updated>2016-07-27T10:08:55.870-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Port"/><title type='text'>How Can I Tell What is Listening on a TCP/IP Port in Windows?</title><content type='html'>&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
Open up a command prompt and type in the following—you may have to open in Administrator mode to see all processes:&lt;/div&gt;
&lt;blockquote style=&quot;background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); clear: both; font-family: monospace; font-size: 14.82px; line-height: 1.1em; margin: 0px 0px 10px; max-width: 618px; overflow-x: auto; padding: 10px;&quot;&gt;
&lt;pre style=&quot;font-size: 12.597px; line-height: 12.471px; padding: 0px;&quot;&gt;netstat&amp;nbsp;-ab | more
a
b
c  
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
This will immediately show you a list, although it’s maybe a little complicated. You’ll see the process name in the list, and you can search for it.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
You can also use this other method, which takes an extra step, but makes it easier to locate the actual process:&lt;/div&gt;
&lt;blockquote style=&quot;background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); clear: both; font-family: monospace; font-size: 14.82px; line-height: 1.1em; margin: 0px 0px 10px; max-width: 618px; overflow-x: auto; padding: 10px;&quot;&gt;
&lt;div style=&quot;color: #222222; line-height: 21px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;code style=&quot;color: #006000; line-height: 14.6718px; margin: 0px; padding: 0px;&quot;&gt;netstat -aon | more&lt;/code&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
If you look on the right-hand side, you’ll see where I’ve highlighted the list of PIDs, or Process Identifiers. Find the one that’s bound to the port that you’re trying to troubleshoot—for this example, you’ll see that 0.0.0.0:80, or port 80, is in use by PID 4708.&lt;br /&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;262&quot; src=&quot;https://www.howtogeek.com/wp-content/uploads/2010/09/640x262ximage108.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.DFyH0aQZKU.png&quot; style=&quot;background-image: none; border: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;640&quot;&gt;&lt;br /&gt;
Now you can simply open up Task Manager—you might have to use the option to Show Processes for All Users, and then you’ll be able to find the PID in the list. Once you’re there, you can use the End Process, Open File Location, or Go to Service(s) options to control the process or stop it.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;img alt=&quot;image&quot; src=&quot;https://www.howtogeek.com/wp-content/uploads/2010/09/508x592ximage109.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.S85uFpLpHt.png&quot;&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
You can also use CurrPorts to directly kill the process if you want.&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.nirsoft.net%2Futils%2Fcports.html&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfHSVFegiMtLJZDVv11EBQdwyhIxw&quot; style=&quot;color: #114491;&quot;&gt;Download CurrPorts from nirsoft.net&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/9013100382743303729/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/how-can-i-tell-what-is-listening-on.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/9013100382743303729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/9013100382743303729'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/how-can-i-tell-what-is-listening-on.html' title='How Can I Tell What is Listening on a TCP/IP Port in Windows?'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-2393683436761810641</id><published>2016-07-20T09:05:00.001-07:00</published><updated>2016-07-20T09:05:05.400-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ODBC"/><title type='text'>64/32 BIT ODBC 設定</title><content type='html'>&lt;div style=&quot;background-color: white; border: 0px; color: #515151; font-family: &amp;quot;Source Sans Pro&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; line-height: 23px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
最近把手邊維護的系統做一個升級，從原本的 Windows Server 2003 32bit 升級到 Windows Server 2008 64bit，由於該系統中有很多的程式會透過 ODBC 連線資料庫，所以想說依照先前的設定方法設定就好，但是卻發生生程式可以跑但是卻無法正常連線資料庫的狀況，經過同事提點才知道 ODBC 設定是有分 32/64 bit 的。&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;通常設定 ODBC，就是開啟&amp;nbsp;&lt;b style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;控制台-&amp;gt;系統管理工具-&amp;gt; ODBC 設定 -&amp;gt; 新增&lt;/b&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;b style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; line-height: 22.4px; margin: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb7MksWj5g6yCtS5XpkC3UNXD6-gxbsuVIE3ceXia7KvyJlNQDV-ZlCs7GPtwMP_CMEzY_7sv6fMKG63k_i76KKJHaz12gjsOkim5xxvgE9JshItOwWJDmWNdw4EfsoJhmZ7yiAn28qj0/s1600/odbc.jpg&quot; imageanchor=&quot;1&quot; style=&quot;background: none; border-style: initial; border-width: 0px; color: #333333; cursor: text; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 1em; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb7MksWj5g6yCtS5XpkC3UNXD6-gxbsuVIE3ceXia7KvyJlNQDV-ZlCs7GPtwMP_CMEzY_7sv6fMKG63k_i76KKJHaz12gjsOkim5xxvgE9JshItOwWJDmWNdw4EfsoJhmZ7yiAn28qj0/s320/odbc.jpg&quot; style=&quot;border: 0px none; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 0px; max-width: 100%; outline: none; padding: 0px; vertical-align: baseline;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px; margin: 0px; padding: 0px;&quot; /&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;more&quot; style=&quot;background-color: white; border: 0px; color: #333333; cursor: text; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; line-height: 22.4px; margin: 0px; padding: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;&lt;/a&gt;&lt;b style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; line-height: 22.4px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px;&quot;&gt;如果你的系統是 『64位元的作業系統』但是程式是『32位元』，雖然設定的方法一樣，但是是要開啟&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; line-height: 22.4px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;C:\Windows\SysWOW64\odbcad32.exe&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px;&quot;&gt;來設定『32位元的ODBC』，由於 32/64 ODBC設定的路徑不一樣，預設的路徑是設定『64位元的ODBC』，所以要注意這一點，並且也要注意 ODBC Driver 的版本。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px; margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px;&quot;&gt;64 位元 ODBC 位置：C:\Windows\System32\odbcad32.exe&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px;&quot;&gt;32 位元 ODBC 位置：C:\Windows\SysWOW64\odbcad32.exe&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/2393683436761810641/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/6432-bit-odbc.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/2393683436761810641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/2393683436761810641'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/6432-bit-odbc.html' title='64/32 BIT ODBC 設定'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb7MksWj5g6yCtS5XpkC3UNXD6-gxbsuVIE3ceXia7KvyJlNQDV-ZlCs7GPtwMP_CMEzY_7sv6fMKG63k_i76KKJHaz12gjsOkim5xxvgE9JshItOwWJDmWNdw4EfsoJhmZ7yiAn28qj0/s72-c/odbc.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-6096706413975806632</id><published>2016-07-20T09:04:00.003-07:00</published><updated>2016-07-20T09:04:43.795-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>009 在IIS7中顯示ASP偵錯訊息</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;sites-canvas-main&quot; id=&quot;sites-canvas-main&quot; style=&quot;min-height: 150px; overflow: hidden; padding-bottom: 5px; padding-top: 15px;&quot;&gt;
&lt;div id=&quot;sites-canvas-main-content&quot;&gt;
&lt;table cellspacing=&quot;0&quot; class=&quot;sites-layout-name-one-column sites-layout-hbox&quot; style=&quot;margin: 0px; table-layout: fixed; width: 742px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;sites-layout-tile sites-tile-name-content-1&quot; style=&quot;padding: 10px; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 22px; margin-top: 22px;&quot;&gt;
在IIS7中顯示ASP偵錯訊息&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
最近接到一個案子，是學校的案子，所以因為學校的政策關係，沒辦法使用我比較熱悉的ASP.net，只能硬著頭皮，用高職學的ASP來寫程式，而我的作業系統上WINDOWS 7內建的是IIS 7 。但是發現了一個問題，當我程式發生錯誤的時候他出現很不討喜的錯誤訊息&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;An error occurred on the server when processing the URL. Please contact the system administrator.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;If you are the system administrator please click&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkID%3D82731&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfW71sbTg1zY4jkMeu7yRfIptAJIg&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;to find out more about this error.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Faz787680.vo.msecnd.net%2Fuser%2Fcorner%2F1003%2FIIS7ASP_FB4E%2Fimage_2.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzflBI75fH0phdYRKGsVRJqwhHQtVg&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;453&quot; src=&quot;https://az787680.vo.msecnd.net/user/corner/1003/IIS7ASP_FB4E/image_thumb.png&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; display: inline; height: auto !important; max-width: 100%; padding: 5px;&quot; title=&quot;image&quot; width=&quot;644&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
我本人之前還笨笨的把他移到IIS 5上去執行，這樣來來回回浪費了不少時間！&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
原來，在IIS 7中 ASP的偵錯訊息是預設關閉的&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
只要在IIS 7 中你需要改的站台中&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Faz787680.vo.msecnd.net%2Fuser%2Fcorner%2F1003%2FIIS7ASP_FB4E%2Fimage_4.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzdfUAODwd4qGAdEDc2s5vUjxQ68rw&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;629&quot; src=&quot;https://az787680.vo.msecnd.net/user/corner/1003/IIS7ASP_FB4E/image_thumb_1.png&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; display: inline; height: auto !important; max-width: 100%; padding: 5px;&quot; title=&quot;image&quot; width=&quot;1084&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
看到ASP這個按鈕點下去&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Faz787680.vo.msecnd.net%2Fuser%2Fcorner%2F1003%2FIIS7ASP_FB4E%2Fimage_6.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfOq9oVPh7qcPDC3GQXYz88YcGTdQ&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;461&quot; src=&quot;https://az787680.vo.msecnd.net/user/corner/1003/IIS7ASP_FB4E/image_thumb_2.png&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; display: inline; height: auto !important; max-width: 100%; padding: 5px;&quot; title=&quot;image&quot; width=&quot;632&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
有一個「將錯誤傳送到瀏覽器」&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
把他改成&lt;span style=&quot;color: red;&quot;&gt;True&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
之後套用！&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
你在開啟一次你錯誤的網頁&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Faz787680.vo.msecnd.net%2Fuser%2Fcorner%2F1003%2FIIS7ASP_FB4E%2Fimage_8.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzepCILt5SEoWfqFJo4c9GOmqMG-Ew&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://az787680.vo.msecnd.net/user/corner/1003/IIS7ASP_FB4E/image_thumb_3.png&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; display: inline; height: auto !important; max-width: 100%; padding: 5px;&quot; title=&quot;image&quot; width=&quot;443&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;sites-canvas-bottom-panel&quot; style=&quot;padding-left: 0px; padding-right: 9px;&quot;&gt;
&lt;div id=&quot;COMP_page-subpages&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;sites-attachments-container&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;div id=&quot;sites-attachments&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;div class=&quot;sites-attachments-row&quot; style=&quot;height: 40px; position: relative;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/6096706413975806632/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/009-iis7asp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6096706413975806632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6096706413975806632'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/009-iis7asp.html' title='009 在IIS7中顯示ASP偵錯訊息'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-3509731819867627866</id><published>2016-07-20T09:03:00.001-07:00</published><updated>2016-07-20T09:03:49.487-07:00</updated><title type='text'>IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5</title><content type='html'>&lt;h2 style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border-bottom-color: rgb(204, 210, 211); border-bottom-style: solid; border-width: 0px 0px 1px; clear: both; color: #4f4f4f; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 20px; font-stretch: inherit; font-weight: normal; line-height: 24px; margin: 50px 0px 25px; padding: 0px 0px 15px; vertical-align: baseline;&quot;&gt;
Problem&lt;/h2&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
Windows Server 2012 includes .NET Framework 4.5 by default, as well as optional installation of the .NET 3.5 Framework. Developers frequently need to run mixed web applications across multiple .NET Framework versions.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border-bottom-color: rgb(204, 210, 211); border-bottom-style: solid; border-width: 0px 0px 1px; clear: both; color: #4f4f4f; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 20px; font-stretch: inherit; font-weight: normal; line-height: 24px; margin: 50px 0px 25px; padding: 0px 0px 15px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC301258516&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;TOC301258516&quot;&gt;&lt;/a&gt;Solution&lt;/h2&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
IIS 8.0 on Windows Server 2012 runs ASP.NET applications on all .NET Framework versions supported on Windows Server 2012. This means ASP.NET applications can run on IIS 8.0 using either .NET Framework 3.5, or .NET Framework 4.5. IIS 8.0 hosts versions of the .NET Framework in different application pools, thus allowing multiple ASP.NET applications with different .NET Framework versions to run simultaneously on Windows Server 2012.&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
IIS 8.0 also supports managing both ASP.NET 3.5 and ASP.NET 4.5 applications using both the graphical IIS Manager tool as well as IIS&#39; command-line management tools. Refer to&amp;nbsp;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.iis.net%2Flearn%2Fget-started%2Fwhats-new-in-iis-8%2Fiis-80-aspnet-configuration-management&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfYm6dlSwrkr7OEe8gOcn78a1YcBA&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;this&lt;/a&gt;&amp;nbsp;article for more information.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border-bottom-color: rgb(204, 210, 211); border-bottom-style: solid; border-width: 0px 0px 1px; clear: both; color: #4f4f4f; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 20px; font-stretch: inherit; font-weight: normal; line-height: 24px; margin: 50px 0px 25px; padding: 0px 0px 15px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC301258517&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;TOC301258517&quot;&gt;&lt;/a&gt;Step by Step Instructions&lt;/h2&gt;
&lt;h4 style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin: 25px 0px 12px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC-Prerequisites:&quot; style=&quot;color: #0033cc; text-decoration: underline;&quot;&gt;&lt;/a&gt;Prerequisites:&lt;/h4&gt;
&lt;ul style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; list-style: none; margin: 16px 0px 40px 40px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: outside; list-style-type: disc; margin: 13px 0px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;IIS is installed on Windows Server 2012. To learn more about installing IIS 8, see&amp;nbsp;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.iis.net%2Flearn%2Fget-started%2Fwhats-new-in-iis-8%2Finstalling-iis-8-on-windows-server-2012&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzdZjJegPiMkeYboHk8P3w3vUHf0WQ&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Installing IIS 8 on Windows Server 2012&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; color: #4f4f4f; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif; font-size: 14px; font-stretch: inherit; letter-spacing: 1px; line-height: 24px; margin: 35px 0px 12px; padding: 0px; text-transform: uppercase; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC301268619&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;TOC301268619&quot;&gt;&lt;/a&gt;SETTING UP IIS 8.0 WITH SUPPORT FOR ASP.NET 3.5 AND ASP.NET 4.5&lt;/h3&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
In Windows Server 2012, both the .NET Framework 3.5 and .NET Framework 4.5 are natively recognized by the operating system. This means both UI-based and command-line driven setup can be used to turn on both versions of the .NET Framework, as well as enabling integration of both versions of ASP.NET with IIS 8.0.&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
For this walkthrough we will use the new Server Manager UI in Windows Server 2012 Server to demonstrate enabling both ASP.NET 3.5 and ASP.NET 4.5 on IIS 8.0.&lt;/div&gt;
&lt;ol style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; list-style: none; margin: 16px 0px 50px 20px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;When you first login to a new Windows Server 2012 machine, the new Server Manager UI will display. Click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;add roles&lt;/span&gt;&amp;nbsp;as shown below:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186844%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image001.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcGCmst3mkMIPAwSfHJKGudVqQFRA&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186844/iis-80-using-aspnet-35-and-aspnet-45-1097-image001.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;On the first screen of&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add Roles and Features Wizard&lt;/span&gt;, click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Next&lt;/span&gt;. This display a page where you select the desired installation type. Choose either&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Role-based&lt;/span&gt;&amp;nbsp;or&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Feature-based&lt;/span&gt;&amp;nbsp;installation as shown below:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186838%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image003.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcTlzMFUz070zyJQJj9VEkp1JfzBw&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186838/iis-80-using-aspnet-35-and-aspnet-45-1097-image003.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Next.&lt;/span&gt;&amp;nbsp;The next screen of the wizard asks you to choose the server that you are configuring.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;On the next wizard step you will be asked to select one or more server roles. Scroll down in the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Roles&lt;/span&gt;&amp;nbsp;list, and make sure to check the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Web Server (IIS)&lt;/span&gt;&amp;nbsp;checkbox as shown below:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186832%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image005.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcPtcdvqUqMooWZpFFtW0y8QdpPfw&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186832/iis-80-using-aspnet-35-and-aspnet-45-1097-image005.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Next&lt;/span&gt;&amp;nbsp;to proceed to the next step, which enables you to select additional specific features to install on the server. Click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Next&lt;/span&gt;&amp;nbsp;again and proceed to the next step.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;The next wizard step displays some introductory information about the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Web Server (IIS)&lt;/span&gt;role. Click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Next&lt;/span&gt;&amp;nbsp;again and proceed to the next step. Now you should be at a wizard step that looks like the following:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186826%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image007.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzeSiZZx7GXhCgHolzAUlav13tJiCw&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186826/iis-80-using-aspnet-35-and-aspnet-45-1097-image007.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Note that a number of default sub-features for IIS have already been turned on because you selected the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Web Server (IIS)&lt;/span&gt;&amp;nbsp;server role earlier. However we want to enable both ASP.NET 3.5 and ASP.NET 4.5 to run on IIS 8.0, so we need to enable some additional IIS related features. Scroll down in the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Role services&lt;/span&gt;&amp;nbsp;list until the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Application Development&lt;/span&gt;&amp;nbsp;node is showing. This node is collapsed initially, click on the node and expand it so that its children are showing:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186820%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image009.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzd0-Za3wwLe2IjXfvxlvCFv2slN0Q&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186880/iis-80-using-aspnet-35-and-aspnet-45-1097-asp.net%20sm.jpg&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;The&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Application Development&lt;/span&gt;&amp;nbsp;node is where we enable ASP.NET integration with IIS. Note that there are a few checkboxes in the feature list with similar names. The pair of checkboxes that are of interest for this walkthrough are:&lt;ul style=&quot;background: transparent; border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; list-style: none; margin: 16px 0px 13px 40px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: disc; margin: 13px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ASP.NET 3.&lt;/span&gt;5 - This option enables ASP.NET 3.5 to run on IIS 8.0. Note that with Windows Server 2012, .NET Framework 3.5 is not available as a part of the base OS image. Instead, the payload is downloaded from the Internet and you need to connect to the Internet.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: disc; margin: 13px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ASP.NET 4.5&lt;/span&gt;&amp;nbsp;- This option enables ASP.NET 4.5 to run on IIS 8.0.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;First click the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ASP.NET 3.5&lt;/span&gt;&amp;nbsp;check box. When you do so an additional dialog box will popup as shown below:&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186862/iis-80-using-aspnet-35-and-aspnet-45-1097-smasp3.5_new.jpg&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Since ASP.NET 3.5 is integrated into the Windows Server 2012 setup, Windows Server 2012 knows all of the related dependencies necessary to enable ASP.NET 3.5 on IIS 8.0. This popup dialog is just showing you what will be automatically pulled in and installed. Since we do want ASP.NET 3.5 enabled, click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add Required Features&lt;/span&gt;.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Next, click the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ASP.NET 4.5&lt;/span&gt;&amp;nbsp;check box in the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Role services&lt;/span&gt;&amp;nbsp;feature list. The end result of clicking both ASP.NET related checkboxes is shown below:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186856%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-smasp4.5.jpg&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzezZi4_KSKF3FpOifBF-jdf5MJZXw&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186856/iis-80-using-aspnet-35-and-aspnet-45-1097-smasp4.5.jpg&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Even though you only directly selected the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ASP.NET 3.5&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ASP.NET 4.5&lt;/span&gt;&amp;nbsp;features, the wizard automatically turned on a number of other items. This is done automatically so that developers do not have to explicitly choose the various component pieces needed to &quot;assembly&quot; of ASP.NET on Windows Server 2012. At this point click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Next&lt;/span&gt;&amp;nbsp;to accept the changes.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;The&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Confirm installation selections&lt;/span&gt;&amp;nbsp;step displays a list of all of features that are installed if you accept the changes.&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186874%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-confirmnew.jpg&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzee_CI1CBd7B8NGhfQesGtlEJg63w&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186874/iis-80-using-aspnet-35-and-aspnet-45-1097-confirmnew.jpg&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;At this point, click&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;Install&lt;/span&gt;&amp;nbsp;to accept the changes and install full ASP.NET support on Windows Server 2012.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Since the installation will take a small amount of time to complete, the wizard displays a progress dialog while the installation progresses:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186868%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-install.jpg&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfYNTmQa9AiOWYLGD__4YfVscQ6zA&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186868/iis-80-using-aspnet-35-and-aspnet-45-1097-install.jpg&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;After a few minutes the wizard shows that the installation has completed:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186814%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image019.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfWPZ3zIm6cV7rw6Ly72yuJDmdWgw&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186814/iis-80-using-aspnet-35-and-aspnet-45-1097-image019.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;At this point, you can click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Close&lt;/span&gt;&amp;nbsp;and exit the wizard.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; color: #4f4f4f; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif; font-size: 14px; font-stretch: inherit; letter-spacing: 1px; line-height: 24px; margin: 35px 0px 12px; padding: 0px; text-transform: uppercase; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC301268620&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;TOC301268620&quot;&gt;&lt;/a&gt;EXPLORING THE IIS 8.0 INSTALLATION&lt;/h3&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
With both IIS 8.0 and ASP.NET integration installed we can take a look at the basic ASP.NET footprint for IIS 8.0.&lt;/div&gt;
&lt;ol style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; list-style: none; margin: 16px 0px 50px 20px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;From the Windows Start menu select&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;All Programs&lt;/span&gt;&amp;nbsp;and then expand the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Administrative Tools&lt;/span&gt;&amp;nbsp;menu. In the resulting list, find&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Internet Information Services (IIS) Manager&lt;/span&gt;&amp;nbsp;and select it to launch the graphical IIS management tool:&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186808/iis-80-using-aspnet-35-and-aspnet-45-1097-image021.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Once the IIS Manager starts up, expand the server node in the left-hand window so that both the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Application Pools&lt;/span&gt;&amp;nbsp;node and&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Sites&lt;/span&gt;&amp;nbsp;node are showing. When you do this the IIS Manager will popup a dialog asking if you want to stay connected with the latest Web Platform Components. For this walkthrough, you can click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;No&lt;/span&gt;. However on real-world installations you will probably want to click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Yes&lt;/span&gt;&amp;nbsp;so that the Web Platform Installer is available for your use to download various IIS extensions such as the URL Rewrite Module. At this point the IIS Manager looks like the following picture:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186802%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image023.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzdcRcFcDDeflsILl0OPc98eeAvbiQ&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186802/iis-80-using-aspnet-35-and-aspnet-45-1097-image023.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Click the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Application Pools&lt;/span&gt;&amp;nbsp;node to display the application pools that have now been installed for use by IIS 8.0:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186796%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image025.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcGytSgZeTctDdI9gILdXf1LtLpHw&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186796/iis-80-using-aspnet-35-and-aspnet-45-1097-image025.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;You can see that six different application pools are created by default when both ASP.NET 3.5 and ASP.NET 4.5 are enabled for IIS 8.0. Four of the applications are new for IIS 8.0, while two other application pools have been carried forward from previous Windows releases.&lt;ul style=&quot;background: transparent; border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; list-style: none; margin: 16px 0px 13px 40px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: disc; margin: 13px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Note that although the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.NET Framework Version&lt;/span&gt;&amp;nbsp;column shows &quot;v2.0&quot; and &quot;v4.0&quot; for .NET Framework versions, these equate to ASP.NET 3.5 and ASP.NET 4.5. Due to the internals of how application pools bind to .NET Framework versions, the actual version name written to configuration (and thus displayed in the tool) corresponds to the original .NET Framework file version.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: disc; margin: 13px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Classic .NET AppPool&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DefaultAppPool&lt;/span&gt;&amp;nbsp;existed in previous versions of Windows, and thus continue to be created for IIS 8.0. Note however that since .NET 4.5 is the default .NET Framework for use by Windows Server 2012, the &quot;DefaultAppPool&quot; on IIS 8.0 also defaults to using the newer version of the .NET Framework.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: disc; margin: 13px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;The other four application pools are new in Windows Server 2012. There are two application pools for running .NET Framework 3.5 (&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.NET v2.0&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.NET v2.0 Classic&lt;/span&gt;), and two application pools for running .NET Framework 4.5 (&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.NET 4.5&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.NET 4.5 Classic&lt;/span&gt;).&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: disc; margin: 13px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;The difference between &quot;classic&quot; and &quot;not classic&quot; application pools is the managed pipeline mode supported in each application pool type. The two application pools ending in &quot;Classic&quot; support the older Windows Server 2003-era classic pipeline mode for ASP.NET, while the other two application pools use the newer integrated pipeline mode for ASP.NET introduced in Vista/IIS7.0.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Exploring a little bit further, expand the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Sites&lt;/span&gt;&amp;nbsp;node in the left-hand side of the screen so that the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Default Web Site&lt;/span&gt;&amp;nbsp;node is visible:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186790%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image027.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzeWLbAYPqQtUnx_E6nFqnCzOSuY_w&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186790/iis-80-using-aspnet-35-and-aspnet-45-1097-image027.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Default installations of IIS always have a &quot;Default Web Site&quot; configured to listen for HTTP requests on port 80. Drill into the &quot;Default Web Site&quot; to see what version of ASP.NET it supports by default. Right-click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Default Web Site&lt;/span&gt;, then select&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Manage Website&lt;/span&gt;, and select&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Advanced Settings&lt;/span&gt;&amp;nbsp;as shown below:&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186784/iis-80-using-aspnet-35-and-aspnet-45-1097-image029.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;The&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Advanced Settings&lt;/span&gt;&amp;nbsp;dialog pops up, showing (amongst other things) the application pool used to run the &quot;Default Web Site&quot;. As shown in the picture below, the &quot;Default Web Site&quot; runs in the application pool called &quot;DefaultAppPool&quot;:&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186778/iis-80-using-aspnet-35-and-aspnet-45-1097-image031.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;If you click the small ellipsis-button on the right-hand side of the application pool , an additional dialog pops up displaying more information about the &quot;DefaultAppPool&quot;. As noted earlier the &quot;DefaultAppPool&quot; defaults to ASP.NET 4.5 for IIS 8.0, so ASP.NET 4.5 applications deployed in the &quot;Default Web Site&quot; will work without any further configuration.&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186772/iis-80-using-aspnet-35-and-aspnet-45-1097-image033.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;At this point, click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Cancel&amp;nbsp;&lt;/span&gt;to cancel both the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Select Application Pool&lt;/span&gt;&amp;nbsp;dialog, and the&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Advanced Settings&lt;/span&gt;&amp;nbsp;dialog.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; color: #4f4f4f; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif; font-size: 14px; font-stretch: inherit; letter-spacing: 1px; line-height: 24px; margin: 35px 0px 12px; padding: 0px; text-transform: uppercase; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC301268621&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;TOC301268621&quot;&gt;&lt;/a&gt;RUNNING BOTH ASP.NET 3.5 AND ASP.NET 4.5 APPLICATIONS&lt;/h3&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
Now that you have explored the setup state of IIS 8.0, try running some sample ASP.NET code to confirm that both ASP.NET 3.5 and ASP.NET 4.5 applications can run simultaneously on a single IIS 8.0 installation.&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
Sample code for both ASP.NET 3.5 and ASP.NET 4.5 is contained in the following .zip:&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;background: transparent; border: 0px; clear: both; color: #1f2834; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186850%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-examples.zip&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzeU5M448v9JBTjxC4GH-MxFsgFQow&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186766/iis-80-using-aspnet-35-and-aspnet-45-1097-image035.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
First, set up a simple ASP.NET 3.5 application on IIS 8.0:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; list-style: none; margin: 16px 0px 50px 20px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Open the &quot;examples.zip&quot; file.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;In Windows Explorer on your Windows Server 2012 machine, navigate to the &quot;wwwroot&quot; directory for your IIS installation. For example if you installed IIS on the &quot;C:\&quot; drive, the &quot;wwwroot&quot; directory will be at &quot;c:\inetpub\wwwroot&quot;.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Copy the folder &quot;example35&quot; from &quot;examples.zip&quot;, and paste it into the directory &quot;c:\inetpub\wwwroot&quot;. When you are done the directory structure should look like the following:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186760%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image037.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfcbSBA4Iyy1hxDxi90ZgF0ePAqNQ&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186760/iis-80-using-aspnet-35-and-aspnet-45-1097-image037.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;The newly created &quot;example35&quot; folder needs to be configured as an ASP.NET 3.5 application in the IIS Manager. Go back to the IIS Manager window, click on the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Default Web Site&lt;/span&gt;&amp;nbsp;node, and select&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Refresh&lt;/span&gt;. The treeview of child nodes under the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Default Web Site&lt;/span&gt;&amp;nbsp;now shows the &quot;example35&quot; folder:&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186754/iis-80-using-aspnet-35-and-aspnet-45-1097-image039.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Right-click the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;example35&lt;/span&gt;&amp;nbsp;folder and select&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Convert to Application&lt;/span&gt;:&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186748/iis-80-using-aspnet-35-and-aspnet-45-1097-image041.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;The&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add Application&lt;/span&gt;&amp;nbsp;dialog will pop up. By default all directories within&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Default Web Site&lt;/span&gt;are part of the application pool called&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DefaultAppPool&lt;/span&gt;. This means that newly created folders containing ASP.NET run as ASP.NET 4.5 applications by default.&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186742/iis-80-using-aspnet-35-and-aspnet-45-1097-image043.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Since we want to run the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;example35&lt;/span&gt;&amp;nbsp;folder as an ASP.NET 3.5 application, the application pool needs to be changed. Click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Select&lt;/span&gt;, and the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Select Application Pool&lt;/span&gt;&amp;nbsp;dialog that pops up. Change the application pool to&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.NET v2.0&lt;/span&gt;&amp;nbsp;as shown below:&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186736/iis-80-using-aspnet-35-and-aspnet-45-1097-image045.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OK&lt;/span&gt;&amp;nbsp;button to accept the application pool change, and then click&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Tahoma Bold&amp;quot;, &amp;quot;Arial Bold&amp;quot;, &amp;quot;Helvetica Bold&amp;quot;, sans-serif !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OK&lt;/span&gt;&amp;nbsp;again to commit the changes to IIS. The IIS Manager window appears again. In the treeview showing &quot;Default Web Site&quot;, the icon for &quot;example35&quot; is changed to indicate it is now a separate ASP.NET application.&lt;br /&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186730/iis-80-using-aspnet-35-and-aspnet-45-1097-image047.png&quot; style=&quot;background: transparent; border: 0px; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;At this point start an instance of Internet Explorer and navigate to the following Url:&lt;div style=&quot;background: transparent; border: 0px; clear: both; color: #1f2834; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
http://localhost/example35&lt;/div&gt;
After a short pause the application displays a list of .NET Framework features supported in this application.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;in Windows Explorer, if you navigate to the &quot;c:\inetpub\wwwroot\example35&quot; directory, you can use notepad to look at the code for &quot;default.aspx&quot; and the information in &quot;web.config&quot;. For example, the contents of web.config include directives that configure the .NET Framework compilers to run in &quot;3.5&quot; mode. The .NET Framework code in &quot;default.aspx&quot; demonstrates some C# constructs that were introduced in .NET 3.5 - specifically LINQ-to-Object queries.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; clear: both; color: #1f2834; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
Now that there is an ASP.NET 3.5 application running, you can create a second ASP.NET application, but this time configure it to use .NET 4.5.&lt;/div&gt;
&lt;ol style=&quot;background-color: white; background-image: initial; background-position: initial; background-repeat: initial; border: 0px; font-family: &amp;quot;Segoe UI&amp;quot;, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; font-stretch: inherit; line-height: 24px; list-style: none; margin: 16px 0px 50px 20px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Go back to the Windows Explorer window that has the .zip file &quot;examples.zip&quot; open.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Open up the contents of the &quot;example45&quot; folder.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;In the second Windows Explorer window that you have open, navigate to &quot;c:\inetpub\wwwroot&quot;.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Copy the &quot;default.aspx&quot; file from the .zip file and paste it directly into &quot;c:\inetpub\wwwroot&quot;. The folder contents for &quot;c:\inetpub\wwwroot&quot; should now look like:&lt;br /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmedia-www-iis.azureedge.net%2Fmedia%2F7186724%2Fiis-80-using-aspnet-35-and-aspnet-45-1097-image049.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzfZU-HjbhG6EfAg0Jf3SfwKG5CPeg&quot; style=&quot;background: transparent; border: 0px; color: #1ca0da; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;2&quot; src=&quot;http://media-www-iis.azureedge.net/media/7186724/iis-80-using-aspnet-35-and-aspnet-45-1097-image049.png&quot; style=&quot;background: transparent; border: none; display: block; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 30px 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;Now go back to Internet Explorer and navigate to the following Url:&lt;div style=&quot;background: transparent; border: 0px; clear: both; color: #1f2834; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 25px; padding: 0px; vertical-align: baseline;&quot;&gt;
http://localhost/default.aspx&lt;/div&gt;
After a short pause a second application pool will start running an ASP.NET 4.5 application for the &quot;Default Web Site&quot;. The browser once again displays a list of .NET Framework features supported in this application with a new entry at the end of the list for dynamically typed variables (i.e. the&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;dynamic&lt;/span&gt;&amp;nbsp;keyword introduced in .NET 4.0/4.5). Notice that unlike the &quot;example35&quot; application that required special web.config entries, no web.config file was required to configure and run the &quot;default.aspx&quot; page in the &quot;Default Web Site&quot;. This is because .NET Framework 4.5 is the default .NET Framework used by ASP.NET applications in IIS 8.0, and as a result no extra configuration is required.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-position: inside; list-style-type: decimal; margin: 0px 0px 13px; padding: 0px; vertical-align: baseline;&quot;&gt;If you use Notepad to open the &quot;default.aspx&quot; page that you just copied, you will also see a few changes compared to the version in the &quot;example35&quot; directory. There are no namespace directives at the top of the page since the .NET Framework 4.5 is the default on IIS 8.0. The code on the page demonstrates using a&amp;nbsp;&lt;span style=&quot;background: transparent; border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;dynamic&lt;/span&gt;&amp;nbsp;variable, which is a compiler concept introduced in .NET 4.0/4.5.&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/3509731819867627866/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/iis-80-using-aspnet-35-and-aspnet-45.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3509731819867627866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3509731819867627866'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/iis-80-using-aspnet-35-and-aspnet-45.html' title='IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-7307404109732962606</id><published>2016-07-20T09:02:00.004-07:00</published><updated>2016-07-20T09:02:58.499-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>偵測出ASP.NET設定沒有套用到整合式Managed管線模式</title><content type='html'>&lt;h3 style=&quot;background-color: white; color: #187a00; font-family: Arial, Verdana, sans-serif; font-size: 18px; font-weight: normal; margin: 0px;&quot;&gt;
執行ASP.NET應用程式時，發生【HTTP錯誤500.21-Internal Server Error，處理常式 &quot;PageHandlerFactory-Integrated&quot; 的模組清單中有錯誤的模組 &quot;ManagedPipelineHandler&quot;】錯誤的故障排除&lt;/h3&gt;
&lt;ul style=&quot;background-color: white; color: #aaaaaa; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px; list-style: none; margin: 5.5px 0px; padding: 0px;&quot;&gt;
&lt;li style=&quot;float: left; list-style-position: outside; list-style-type: square; margin-right: 33px;&quot;&gt;33343&lt;/li&gt;
&lt;li style=&quot;float: left; list-style-position: outside; list-style-type: square; margin-right: 33px;&quot;&gt;&amp;nbsp;&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Fdotblogs.com.tw%2Fterrychuang%2F2011%2F09%2F28%2F38059%23disqus_thread&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzeC89ACddMLU8knA9XEX-hAHCpkYQ&quot; style=&quot;background-color: transparent; color: #8bb724; text-decoration: none;&quot;&gt;0&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;float: left; list-style-position: outside; list-style-type: square; margin-right: 33px;&quot;&gt;&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Fdotblogs.com.tw%2Fterrychuang%2Fseries%2F1%3Fqq%3DIIS&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcM4PGluAyanW55AboUYvVIiR-kyw&quot; style=&quot;background-color: transparent; color: #8bb724; text-decoration: none;&quot;&gt;IIS&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;float: left; list-style-position: outside; list-style-type: square; margin-right: 0px;&quot;&gt;&amp;nbsp;&lt;a href=&quot;https://www.blogger.com/null&quot; style=&quot;background-color: transparent; color: #8bb724;&quot;&gt;檢舉文章&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: whitesmoke; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin: 22px 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 22px; margin-top: 22px;&quot;&gt;
本文將介紹在執行ASP.NET應用程式時，發生【HTTP錯誤500.21-Internal Server Error，處理常式 &quot;PageHandlerFactory-Integrated&quot; 的模組清單中有錯誤的模組 &quot;ManagedPipelineHandler&quot;】錯誤的故障排除&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
當您嘗試在IIS 7.5上執行ASP.NET應用程式（以.NET Framework 4.0為例）時，遇到&lt;span style=&quot;font-weight: bolder;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;處理常式 &quot;PageHandlerFactory-Integrated&quot; 的模組清單中有錯誤的模組 &quot;ManagedPipelineHandler&quot;的錯誤&lt;/span&gt;&lt;/span&gt;時該如何排除，本文將提供可能的解決方案。&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Faz787680.vo.msecnd.net%2Fuser%2Fterrychuang%2F1109%2F-PageHandlerFactory-Integrated--ManagedP_930D%2F2011-09-27_174647_2.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcuuju1NVN9bIbmZqgBSSkDJFgytw&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot;&gt;&lt;img alt=&quot;2011-09-27_174647&quot; border=&quot;0&quot; height=&quot;146&quot; src=&quot;https://az787680.vo.msecnd.net/user/terrychuang/1109/-PageHandlerFactory-Integrated--ManagedP_930D/2011-09-27_174647_thumb.png&quot; style=&quot;background: none rgb(255, 255, 255); border: 0px; display: inline; height: auto !important; max-width: 100%; padding: 0px 0px 5px;&quot; title=&quot;2011-09-27_174647&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
若您是先安裝&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fzh-tw%2Fdetails.aspx%3FFamilyID%3D0a391abd-25c1-4fc0-919f-b21f31ab88b7&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzdX-a5v47TLcHfcYWf-hP37unGl-w&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;.NET Framework 4.0獨立安裝程式&lt;/a&gt;再啟用IIS角色就可能遇到上述的錯誤訊息，原因在於IIS角色在啟用時並未更新現有的應用程式以使用ASP.NET 4 版本的應用程式集區 ，以及在 IIS Metabase 中未更新傳統模式及 IIS 整合模式下ASP.NET 4的處理常式與指令對應，以至於出現上述的錯誤訊息。&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
解決步驟如下：&lt;/div&gt;
&lt;ul style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; list-style: square; margin: 22px 0px 22px 22px;&quot;&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square; margin-bottom: 5.5px;&quot;&gt;Win + R開啟執行視窗後輸入cmd按確定，開啟命令提示字元。&lt;/li&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square; margin-bottom: 5.5px;&quot;&gt;依據作業系統的位元數切換至相對應的目錄。&lt;ul style=&quot;list-style: square; margin: 0px 0px 0px 22px;&quot;&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square; margin-bottom: 5.5px;&quot;&gt;32位元的作業系統請切換至【%systemroot%\Microsoft.NET\Framework】。&lt;/li&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square; margin-bottom: 5.5px;&quot;&gt;64位元的作業系統請切換至【%systemroot%\Microsoft.NET\Framework64】。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square; margin-bottom: 5.5px;&quot;&gt;輸入【aspnet_regiis -i】後按ENTER，下圖的為在64位元的作業系統下所做的範例。&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; font-style: italic; line-height: 22px; margin: 0px; padding: 22px 44px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 22px; margin-top: 22px;&quot;&gt;
&lt;a href=&quot;https://www.google.com/url?q=https%3A%2F%2Faz787680.vo.msecnd.net%2Fuser%2Fterrychuang%2F1109%2F-PageHandlerFactory-Integrated--ManagedP_930D%2Fimage_4.png&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcR-MZW6WgC4K5lARVJmJqUI0TX3g&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://az787680.vo.msecnd.net/user/terrychuang/1109/-PageHandlerFactory-Integrated--ManagedP_930D/image_thumb_1.png&quot; style=&quot;background: none rgb(255, 255, 255); border: 0px; display: inline; height: auto !important; margin: 0px; max-width: 100%; padding: 0px 0px 5px;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
依照上述步驟即可於IIS 7.5上執行ASP.NET 4.0應用程式。以本文所舉的情境為例，建議要讓ASP.NET順利在IIS 7.5上執行的設定步驟如下：&lt;/div&gt;
&lt;ol style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin: 22px 0px 22px 22px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 5.5px;&quot;&gt;啟用IIS角色，並選取ASP.NET角色服務。&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5.5px;&quot;&gt;安裝.Net Framework 4.0獨立安裝程式。&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; margin-bottom: 22px; margin-top: 22px;&quot;&gt;
【參考資料】&lt;/div&gt;
&lt;ul style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px; list-style: square; margin: 22px 0px 22px 22px;&quot;&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square; margin-bottom: 5.5px;&quot;&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fmsdn.microsoft.com%2Fzh-tw%2Flibrary%2Fk6h9cz8h.aspx&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzef9fKqrFLt27fDGdzs2acAHBWiwQ&quot; style=&quot;background-color: transparent; color: #187a00; text-decoration: none; word-break: break-word; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;ASP.NET IIS 註冊工具 (Aspnet_regiis.exe)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: #555555; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Heiti TC&amp;quot;, &amp;quot;Apple LiGothic Medium&amp;quot;, 微軟正黑體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #555555; font-family: Helvetica Neue, Helvetica, Arial, Heiti TC, Apple LiGothic Medium, 微軟正黑體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #555555; font-family: Helvetica Neue, Helvetica, Arial, Heiti TC, Apple LiGothic Medium, 微軟正黑體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 22px;&quot;&gt;error&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #555555; font-family: Helvetica Neue, Helvetica, Arial, Heiti TC, Apple LiGothic Medium, 微軟正黑體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 22px;&quot;&gt;&lt;div&gt;
在本機電腦上安裝及解除安裝 ASP.NET 的管理公用程式。&lt;/div&gt;
&lt;div&gt;
Copyright (C) Microsoft Corporation. &amp;nbsp;著作權所有，並保留一切權利。&lt;/div&gt;
&lt;div&gt;
開始安裝 ASP.NET (4.0.30319.0)。&lt;/div&gt;
&lt;div&gt;
這個作業系統版本不支援這個選項。系統管理員應該改用 [開啟或關閉 Windows 功能] 對&lt;/div&gt;
&lt;div&gt;
話方塊、[伺服器管理員] 管理工具或 dism.exe 命令列工具，隨著 IIS8 一起安裝/解除安&lt;/div&gt;
&lt;div&gt;
裝 ASP.NET 4.5。如需詳細資訊，請參閱 http://go.microsoft.com/fwlink/?LinkID=2167&lt;/div&gt;
&lt;div&gt;
71。&lt;/div&gt;
&lt;div&gt;
完成安裝 ASP.NET (4.0.30319.0)。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
C:\Windows\Microsoft.NET\Framework\v4.0.30319&amp;gt;aspnet_regiis -i&lt;/div&gt;
&lt;div&gt;
Microsoft (R) ASP.NET RegIIS 版本 4.0.30319.0&lt;/div&gt;
&lt;div&gt;
在本機電腦上安裝及解除安裝 ASP.NET 的管理公用程式。&lt;/div&gt;
&lt;div&gt;
Copyright (C) Microsoft Corporation. &amp;nbsp;著作權所有，並保留一切權利。&lt;/div&gt;
&lt;div&gt;
開始安裝 ASP.NET (4.0.30319.0)。&lt;/div&gt;
&lt;div&gt;
這個作業系統版本不支援這個選項。系統管理員應該改用 [開啟或關閉 Windows 功能] 對&lt;/div&gt;
&lt;div&gt;
話方塊、[伺服器管理員] 管理工具或 dism.exe 命令列工具，隨著 IIS8 一起安裝/解除安&lt;/div&gt;
&lt;div&gt;
裝 ASP.NET 4.5。如需詳細資訊，請參閱 http://go.microsoft.com/fwlink/?LinkID=2167&lt;/div&gt;
&lt;div&gt;
71。&lt;/div&gt;
&lt;div&gt;
完成安裝 ASP.NET (4.0.30319.0)。&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/7307404109732962606/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/aspnetmanaged.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/7307404109732962606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/7307404109732962606'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/aspnetmanaged.html' title='偵測出ASP.NET設定沒有套用到整合式Managed管線模式'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-3839920029994763218</id><published>2016-07-20T09:02:00.001-07:00</published><updated>2016-07-20T09:02:21.839-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>How do I enable upload of large files in classic ASP on IIS 7?</title><content type='html'>&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Recently I had to get an old ASP application working in IIS 7.5 on a W2K8 server. Almost everything works fine, except that I can&#39;t seem to get it to accept uploads larger than ~200kB. I did find a setting, that from what I can understand should to the trick, in the applicationHost.config, I set the max request size to 100 MB like this:&lt;/div&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; color: #006000; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;location&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;path&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;TheNameOfMySite&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;system.webServer&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;security&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
            &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;requestFiltering&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
                &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;requestLimits&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;maxAllowedContentLength&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;104857600&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
            &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/requestFiltering&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/security&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/system.webServer&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/location&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Unfortunately, this seems to do nothing at all, it still refuses to accept any files larger than about 200 kB, and in the log file it gives this error message:&lt;/div&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
ASP_0104_:_80004005|Operation_not_Allowed&lt;/div&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Googling that points to increasing the maxAllowedContentLength as I have done above. So I&#39;m fresh out of ideas, but confident that the clever stackoverflow crowd can solve this in less time than it took for me to write this question.&lt;/div&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
The&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #006000; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;maxAllowedContentLength&lt;/code&gt;&amp;nbsp;controls how much data is allowed to be sent in a response. However you want to control how much can be accepted in a request. This is handled by the&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #006000; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;maxRequestEntityAllowed&lt;/code&gt;&amp;nbsp;attribute of the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #006000; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;limits&lt;/code&gt;&amp;nbsp;element in the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #006000; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;asp&lt;/code&gt;&amp;nbsp;section of the config file. An example might look like:-&lt;/div&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; color: #006000; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;system.webServer&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;asp&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
     &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;cache&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;diskTemplateCacheDirectory&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;%SystemDrive%\inetpub\temp\ASP Compiled Templates&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
     &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;limits&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;scriptTimeout&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;00:02:00&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;queueConnectionTestTime&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;00:00:05&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;requestQueueMax&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;1000&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;maxRequestEntityAllowed&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;104857600&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/asp&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
You can configure this in the IIS7 manager under the &quot;Limit Properties&quot; category in the property grid for the ASP feature. Alternatively you can use a command line:-&lt;/div&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; color: #006000; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;appcmd &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; config &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;section&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;asp &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;limits&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;maxRequestEntityAllowed&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;104857600&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Note that extending this value increase the window for DOS attack where the attacker sends large content to the server so don&#39;t be tempted to extend this beyond what you really need.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/3839920029994763218/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/how-do-i-enable-upload-of-large-files.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3839920029994763218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3839920029994763218'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/how-do-i-enable-upload-of-large-files.html' title='How do I enable upload of large files in classic ASP on IIS 7?'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-6110336700354698061</id><published>2016-07-20T09:01:00.001-07:00</published><updated>2016-07-20T09:01:19.568-07:00</updated><title type='text'>IIS 7.0 設定顯示詳細錯誤訊息 (HTTP 500 - 內部伺服器錯誤)</title><content type='html'>&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot;&gt;IIS 的 站台&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot;&gt;- 錯誤網頁(要點兩下進去)&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot;&gt;- 編輯功能設定(在右邊動作區塊)&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot;&gt;- 請選擇&quot;詳細錯誤&quot;(無論本機遠端都顯示錯誤, 預設是是本機顯示錯誤,遠端不顯示錯誤)&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px;&quot; /&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2F2.bp.blogspot.com%2F-xbQBiLlDMls%2FTpZKLATxnHI%2FAAAAAAAAMPw%2FKcyLx01g8RI%2Fs1600%2F2011-10-12_174841.jpg&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzcmrAdkWZhe3NGfWIPIx7CVQ1t53g&quot; style=&quot;background-color: white; color: #7c93a1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif, 微軟正黑體; font-size: 15px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXPVUiuGVf6O3-GC0S8MxtxQYIEMQoVInVNG46jENjXft7DkH-Cvi9qEamxHEwBwyINaQ3ABeMArs0B7iU5DYgx_NXoQzMmznADOaCzUs2Bif95__N2FLRTJJDlXDijAGeVKZb8EdboKec/s400/2011-10-12_174841.jpg&quot; style=&quot;border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; height: 347px; padding: 5px; width: 400px;&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/6110336700354698061/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/iis-70-http-500.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6110336700354698061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/6110336700354698061'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/iis-70-http-500.html' title='IIS 7.0 設定顯示詳細錯誤訊息 (HTTP 500 - 內部伺服器錯誤)'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXPVUiuGVf6O3-GC0S8MxtxQYIEMQoVInVNG46jENjXft7DkH-Cvi9qEamxHEwBwyINaQ3ABeMArs0B7iU5DYgx_NXoQzMmznADOaCzUs2Bif95__N2FLRTJJDlXDijAGeVKZb8EdboKec/s72-c/2011-10-12_174841.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-7608306612591465174</id><published>2016-07-20T09:00:00.004-07:00</published><updated>2016-07-20T09:00:49.426-07:00</updated><title type='text'>設定錯誤 無法讀取設定檔案，因為權限不足</title><content type='html'>&lt;span style=&quot;background-color: #fff2cc; color: #4e2800; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.3333px; line-height: 18px;&quot;&gt;1 &amp;nbsp;檢查看看檔案夾是否是唯讀, 不可以是唯讀&lt;/span&gt;&lt;br style=&quot;background-color: #fff2cc; color: #4e2800; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.3333px; line-height: 18px;&quot; /&gt;&lt;span style=&quot;background-color: #fff2cc; color: #4e2800; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.3333px; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;我在IIS 管理員 console內, 將wwwroot及我站台的目錄&lt;/span&gt;&lt;br style=&quot;background-color: #fff2cc; color: #4e2800; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.3333px; line-height: 18px;&quot; /&gt;&lt;span style=&quot;background-color: #fff2cc; color: #4e2800; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.3333px; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;權限都取消唯讀.&lt;/span&gt;&lt;br style=&quot;background-color: #fff2cc; color: #4e2800; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.3333px; line-height: 18px;&quot; /&gt;&lt;span style=&quot;background-color: #fff2cc; color: #4e2800; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.3333px; line-height: 18px;&quot;&gt;2. 然後在&quot;安全性&quot;內, 新增一個Users的使用者.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/7608306612591465174/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/7608306612591465174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/7608306612591465174'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/blog-post.html' title='設定錯誤 無法讀取設定檔案，因為權限不足'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-8703846385885045458</id><published>2016-07-20T09:00:00.000-07:00</published><updated>2016-07-20T09:00:05.296-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>IIS7.0 ASP 啟用上層路徑</title><content type='html'>&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; line-height: 1.6;&quot;&gt;http://itgroup.blueshop.com.tw/inmarkblue/markshu?n=convew&amp;amp;i=6684&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; line-height: 1.6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Verdana, sans-serif; font-size: 13.3333px; line-height: 21.3333px;&quot;&gt;
&lt;div style=&quot;color: #004949; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 15px; line-height: 25px;&quot;&gt;
&lt;span style=&quot;color: teal;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;開啟IIS管理員&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #004949; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 15px; line-height: 25px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://cbbtra.blu.livefilestore.com/y1phKc7tzIZnj9j5MJG9A7xF-Dn2r_qPmxM1T86Idd7fHuZBrs75-onATy_td4TIEoPCH4__E-XeZFC88Wn5bGORnXcVzIJ_-Pp/20904101markshu.gif&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #004949; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 15px; line-height: 25px;&quot;&gt;
&lt;span style=&quot;color: teal;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;ASP/ 開啟功能&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #004949; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 15px; line-height: 25px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://cbbtra.blu.livefilestore.com/y1py2FCHQiNnvxbab5b8aed8m4pxLaYwr-aEmKdu0XvuiIJZEEVpAMbcFpHN-mQnMuO9wkf9R1yMrO1E7rwoWmMBcxcwpwKNAMG/200904102markshu.gif&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #004949; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 15px; line-height: 25px;&quot;&gt;
&lt;span style=&quot;color: teal;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;將啟用上層路徑 及 將錯誤傳送到瀏覽器 選取&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #004949; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 15px; line-height: 25px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://cbbtra.blu.livefilestore.com/y1pVvpzDzIpgkeH6zOR_b-mKOwCMPaVdBYVvSo6LdT2MRndVvSX6wGj9sUuyaRawR6aMPFojlicer8ETaaEgM-2IYyKSWVULJn_/200904103markshu.gif&quot; /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/8703846385885045458/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/iis70-asp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/8703846385885045458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/8703846385885045458'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/iis70-asp.html' title='IIS7.0 ASP 啟用上層路徑'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-1186818590467573994</id><published>2016-07-20T08:58:00.001-07:00</published><updated>2016-07-20T08:58:37.278-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>部署傳統 ASP 伺服器</title><content type='html'>&lt;h2 style=&quot;background-color: white; color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 1.692em; font-weight: normal; margin: 0px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
若要部署傳統 ASP 伺服器&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13.3333px; line-height: 17px;&quot;&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
使用 Web Platform Installer (Web PI) 可以讓您輕鬆安裝 IIS 以及在 IIS 上執行的應用程式。 因為 Web PI 會安裝最新版本的可用 Web Platform 提供項目，所以只需要幾個簡單的按選動作，您就可以下載並安裝任何新工具或更新。 如需深入了解 Web PI，請參閱&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkID%3D145510&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzeC1RzDS1Su-evBxxvA5TYjqnS_Hg&quot; style=&quot;color: #0066dd; text-decoration: none;&quot;&gt;深入了解並安裝 Web PI (英文)&lt;/a&gt;。&lt;/div&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
您也可以藉由使用 Windows 使用者介面 (UI) 或是從命令列來執行這個程序。&lt;/div&gt;
&lt;h4 style=&quot;font-size: 1.231em; font-weight: normal; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC-Windows-Server-2008-Server-2008-R2-UI&quot; style=&quot;color: #0033cc; text-decoration: underline;&quot;&gt;&lt;/a&gt;若要在 Windows Server 2008 或 Server 2008 R2 中使用 UI&lt;/h4&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
按一下 [&lt;strong&gt;開始&lt;/strong&gt;]，指向 [&lt;strong&gt;系統管理工具&lt;/strong&gt;]，然後按一下 [&lt;strong&gt;伺服器管理員&lt;/strong&gt;]。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
在 [角色摘要] 中，按一下 [&lt;strong&gt;新增角色&lt;/strong&gt;]。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
使用 [新增角色精靈] 新增 [&lt;strong&gt;網頁伺服器 (IIS)&lt;/strong&gt;] 角色。&lt;/div&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
如需如何安裝預設 IIS&amp;nbsp;7 網頁伺服器的詳細資訊，請參閱&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Ftechnet.microsoft.com%2Fzh-tw%2Flibrary%2Fcc732612(v%3Dws.10).aspx&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFrqEzdSsr1neMhWdRIIicnKVCj2QchzYg&quot; style=&quot;color: #0066dd; text-decoration: none;&quot;&gt;部署靜態內容伺服器 (IIS 7)&lt;/a&gt;。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
在 [選取角色服務] 頁面上，注意預設安裝之預先選擇的角色服務，然後選取下列其他角色服務：&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square;&quot;&gt;&lt;strong&gt;ASP&lt;/strong&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square;&quot;&gt;&lt;strong&gt;要求篩選&lt;/strong&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square;&quot;&gt;&lt;strong&gt;ISAPI 擴充程式&lt;/strong&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
在 [要安裝的功能摘要] 頁面上，確認您所做的選擇，然後按一下 [&lt;strong&gt;安裝&lt;/strong&gt;]。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
在 [安裝結果] 頁面上，確認成功完成要安裝的網頁伺服器 (IIS) 角色以及所需的角色服務，然後按一下 [&lt;strong&gt;關閉&lt;/strong&gt;]。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
若要確認 IIS 安裝成功，請將下列網址輸入網頁瀏覽器：&lt;/div&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
&lt;strong&gt;http://localhost&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
您應該會看見預設的 IIS 7 歡迎使用畫面。&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;h4 style=&quot;font-size: 1.231em; font-weight: normal; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC-Windows-Vista-Windows-7-UI&quot; style=&quot;color: #0033cc; text-decoration: underline;&quot;&gt;&lt;/a&gt;若要在 Windows Vista 或 Windows 7 中使用 UI&lt;/h4&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
按一下 [&lt;strong&gt;開始&lt;/strong&gt;]，然後按一下 [&lt;strong&gt;控制台&lt;/strong&gt;]。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
在 [控制台] 中，按一下 [&lt;strong&gt;程式集&lt;/strong&gt;]，再按一下 [&lt;strong&gt;開啟或關閉 Windows 功能&lt;/strong&gt;]。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
在 [Windows 功能] 對話方塊中，按一下 [&lt;strong&gt;Internet Information Services&lt;/strong&gt;] 以安裝預設功能，然後選取下列其他功能：&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square;&quot;&gt;&lt;strong&gt;ASP&lt;/strong&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square;&quot;&gt;&lt;strong&gt;要求篩選&lt;/strong&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square;&quot;&gt;&lt;strong&gt;ISAPI 擴充程式&lt;/strong&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
按一下 [&lt;strong&gt;確定&lt;/strong&gt;]，關閉 [Windows 功能] 對話方塊。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
若要確認 IIS 安裝成功，請將下列網址輸入網頁瀏覽器：&lt;/div&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
&lt;strong&gt;http://localhost&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
您應該會看見預設的 IIS 歡迎使用畫面。&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;h4 style=&quot;font-size: 1.231em; font-weight: normal; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;TOC--&quot; style=&quot;color: #0033cc; text-decoration: underline;&quot;&gt;&lt;/a&gt;若要使用命令列&lt;/h4&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li style=&quot;list-style-position: outside; list-style-type: square;&quot;&gt;&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
將下列命令輸入成一個指令碼：&lt;/div&gt;
&lt;div style=&quot;line-height: 18px; padding-bottom: 15px;&quot;&gt;
&lt;strong&gt;Start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASP;IIS-ISAPIExtensions;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole; WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/1186818590467573994/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/asp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/1186818590467573994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/1186818590467573994'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/asp.html' title='部署傳統 ASP 伺服器'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2373758680936483831.post-3975667346659088815</id><published>2016-07-20T08:57:00.002-07:00</published><updated>2016-07-20T08:57:34.742-07:00</updated><title type='text'>An error occurred on the server when processing the URL. Please contact the system administrato</title><content type='html'>&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
在WINDOWS7或SERVER2008上安裝了IIS7.5，調試ASP程序時出現以下錯誤：&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; An error occurred on the server when processing the URL. Please contact the system administrator&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 解决方法如下：&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red; list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 設置方法一:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 以管理員身份運行CMD，將目錄定位到%windir%\system32\inetsrv\，然後執行appcmd set config -section:asp -scriptErrorSentToBrowser:true。&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red; list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 設置方法二:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 打開IIS7的&lt;span style=&quot;color: red; list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;asp設置&lt;/span&gt;，展開“&lt;span style=&quot;color: red; list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;調試屬性&lt;/span&gt;”選項，“&lt;span style=&quot;color: red; list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;將錯誤發送到瀏覽器&lt;/span&gt;”這項默認的是&lt;span style=&quot;color: red; list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;False&lt;/span&gt;，改为&lt;span style=&quot;color: red; list-style-type: none; margin: 0px; padding: 0px;&quot;&gt;True&lt;/span&gt;，然後點右側的應用！如圖所示：&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;454&quot; src=&quot;https://rritw.com/uploads/allimg/2011-05-09/1304963421078266.jpg&quot; style=&quot;border: none; list-style-type: none; margin: 0px; padding: 0px;&quot; width=&quot;600&quot; /&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; margin: 0px; padding: 0px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 宋體; font-size: 14px; line-height: 25px; list-style-type: none; padding: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 通過以上設置後，再從瀏覽時打開出錯ASP頁面時就能看到頁面出錯的詳細信息，方使調試。如果是公開的Web服務器建議不要打開此選項，以防出錯信息被他人利用。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingpaulwu.blogspot.com/feeds/3975667346659088815/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/an-error-occurred-on-server-when.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3975667346659088815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2373758680936483831/posts/default/3975667346659088815'/><link rel='alternate' type='text/html' href='http://codingpaulwu.blogspot.com/2016/07/an-error-occurred-on-server-when.html' title='An error occurred on the server when processing the URL. Please contact the system administrato'/><author><name>paulwu</name><uri>http://www.blogger.com/profile/04400361120341476881</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>