转自 :http://www.cnblogs.com/kissdodog/archive/2013/04/16/3025315.html

  1. <?xml version="1.0"?>
  2.  
  3. <!--注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“Asp.Net 配置”选项。
  4.  
  5. 设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 "Windows"Microsoft.Net"Framework"v2.x"Config 中。-->
  6.  
  7. <!--Webconfig文件是一个xml文件,configuration是xml文件的根节点,由于xml文件的根节点只能有一个,所以Webconfig的所有配置都是在这个节点内进行的。-->
  8.  
  9. <configuration>
  10.  
  11. <!--指定配置节和命名空间声明。clear:移除对继承的节和节组的所有引用,只允许由当前 section 和 sectionGroup 元素添加的节和节组。remove:移除对继承的节和节组的引用。
  12.  
  13. section:定义配置节处理程序与配置元素之间的关联。sectionGroup:定义配置节处理程序与配置节之间的关联。-->
  14.  
  15. <configSections>
  16.  
  17. <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
  18.  
  19. <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
  20.  
  21. <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
  22.  
  23. </sectionGroup>
  24.  
  25. </sectionGroup>
  26.  
  27. <section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
  28.  
  29. </configSections>
  30.  
  31. <!--appSettings是应用程序设置,可以定义应用程序的全局常量设置等信息-->
  32.  
  33. <appSettings>
  34.  
  35. <add key="1" value="1" />
  36.  
  37. <add key="gao" value="weipeng" />
  38.  
  39. </appSettings>
  40.  
  41. <!--连接字符串设置-->
  42.  
  43. <connectionStrings>
  44.  
  45. <add name="ConnString" connectionString="Data Source=GAO;Initial Catalog=HBWXDate;User ID=sa;password=sa"></add>
  46.  
  47. <add name="111" connectionString="11111" />
  48.  
  49. </connectionStrings>
  50.  
  51. <!--指定应用子配置设置的资源,并锁定配置设置,以防止它们被子配置文件重写。page指定应用包含的配置设置的资源.allowOverride是否允许配置文件的重写,提高配置文件的安全性-->
  52.  
  53. <location path="Default.aspx" allowOverride="false">
  54.  
  55. <!--控制asp.net运行时的行为-->
  56.  
  57. <system.web>
  58.  
  59. <!--identity控制web应用程序的身份验证标识.-->
  60.  
  61. <identity impersonate="false" />
  62.  
  63. <!--标识特定于页的配置设置(如是否启用会话状态、视图状态,是否检测用户的输入等)。<pages>可以在计算机、站点、应用程序和子目录级别声明.
  64.  
  65. 这里的几个属性的意思是默认主页为Index,主题是Default,不检测用户在浏览器输入的内容中是否存在潜在的危险数据(注:该项默认是检测,如果你使用了不检测,一要对用户的输入进行编码或验证),在从客户端回发页时将检查加密的视图状态,以验证视图状态是否已在客户端被篡改。(注:该项默认是不验证)禁用ViewState-->
  66.  
  67. <pages masterPageFile="Index" theme="Default" buffer="true" enableViewStateMac="true" validateRequest="false" enableViewState="false">
  68.  
  69. <!--controls 元素定义标记前缀所在的 register 指令和命名空间的集合-->
  70.  
  71. <controls></controls>
  72.  
  73. <!--将在程序集预编译期间使用的导入指令的集合-->
  74.  
  75. <namespaces></namespaces>
  76.  
  77. </pages>
  78.  
  79. <!--默认错误页设置,mode:具有On,Off,RemoteOnly 3种状态。On表示始终显示自定义的信息; Off表示始终显示详细的asp.net错误信息; RemoteOnly表示只对不在本地Web服务器上运行的用户显示自定义信息.defaultRedirect:用于出现错误时重定向的URL地址-->
  80.  
  81. <customErrors defaultRedirect="Err.html" mode="RemoteOnly">
  82.  
  83. <!--特殊代码编号的错误从定向文件-->
  84.  
  85. <error statusCode="403" redirect="NoAccess.htm" />
  86.  
  87. <error statusCode="404" redirect="FileNotFound.htm" />
  88.  
  89. </customErrors>
  90.  
  91. <!--配置调试和跟踪:下面配置的意思是启动调试(默认),捕获跟踪信息,要缓存的跟踪请求个数(15),跟踪结果的排列顺序-->
  92.  
  93. <trace enabled="true" localOnly="false" pageOutput="true" requestLimit="15" traceMode="SortByCategory"/>
  94.  
  95. <!-- 设置 compilation debug="true" 将调试符号插入已编译的页面中。但由于这会影响性能,因此只在开发过程中将此值设置为 true。设置默认的开发语言C#。batch是否支持批处理-->
  96.  
  97. <compilation debug="true" defaultLanguage="c#" batch="false">
  98.  
  99. <assemblies>
  100.  
  101. <!--加的程序集引用,每添加一个程序集,就表示你的应用程序已经依赖了一个程序集,你就可以在你的应用程序中使用了-->
  102.  
  103. <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  104.  
  105. <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
  106.  
  107. <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  108.  
  109. <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  110.  
  111. <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
  112.  
  113. <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  114.  
  115. <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  116.  
  117. <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
  118.  
  119. <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  120.  
  121. <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
  122.  
  123. <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
  124.  
  125. </assemblies>
  126.  
  127. <!--定义用于编译自定义资源文件的生成提供程序的集合。-->
  128.  
  129. <buildProviders>
  130.  
  131. <!---->
  132.  
  133. <add extension=".aspx" type="System.Web.Compilation.PageBuildProvider"/>
  134.  
  135. <add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider"/>
  136.  
  137. <add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider"/>
  138.  
  139. <add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider"/>
  140.  
  141. <add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider"/>
  142.  
  143. <add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider"/>
  144.  
  145. <add extension=".resx" type="System.Web.Compilation.ResXBuildProvider"/>
  146.  
  147. <add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider"/>
  148.  
  149. <add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider"/>
  150.  
  151. <add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider"/>
  152.  
  153. <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
  154.  
  155. </buildProviders>
  156.  
  157. </compilation>
  158.  
  159. <!--通过 <authentication> 节可以配置 ASP.NET 使用的 安全身份验证模式,以标识传入的用户。Windows: 使用IIS验证方式,Forms: 使用基于窗体的验证方式,Passport: 采用Passport cookie验证模式,None: 不采用任何验证方式-->
  160.  
  161. <authentication mode="Forms">
  162.  
  163. <!--Name: 指定完成身份验证的Http cookie的名称.LoginUrl: 如果未通过验证或超时后重定向的页面URL,一般为登录页面,让用户重新登录。Protection: 指定 cookie数据的保护方式.
  164.  
  165. 可设置为:All表示加密数据,并进行有效性验证两种方式,None表示不保护Cookie,Encryption表示对Cookie内容进行加密,validation表示对Cookie内容进行有效性验证,TimeOut: 指定Cookie的失效时间. 超时后要重新登录。-->
  166.  
  167. <forms name=".ASPXUSERDEMO" loginUrl="Login.aspx" protection="All" timeout="30"/>
  168.  
  169. </authentication>
  170.  
  171. <!--控制对 URL 资源的客户端访问(如允许匿名用户访问)。此元素可以在任何级别(计算机、站点、应用程序、子目录或页)上声明。必需与<authentication> 节配合使用。此处的意思是对匿名用户不进行身份验证。拒绝用户weipeng-->
  172.  
  173. <authorization>
  174.  
  175. <allow users="*"/>
  176.  
  177. <deny users="weipeng"/>
  178.  
  179. <allow users="aa" roles="aa" />
  180.  
  181. </authorization>
  182.  
  183. <!--站点全球化设置,requestEncoding: 它用来检查每一个发来请求的编码.responseEncoding: 用于检查发回的响应内容编码.fileEncoding:用于检查aspx,asax等文件解析的默认编码,默认的编码是utf-8-->
  184.  
  185. <globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312" />
  186.  
  187. <!--会话状态设置。mode: 分为off,Inproc,StateServer,SqlServer几种状态 mode = InProc 存储在进程中特点:具有最佳的性能,速度最快,但不能跨多台服务器存储共享.mode = "StateServer" 存储在状态服务器中特点:当需要跨服务器维护用户会话信息时,使用此方法。但是信息存储在状态服务器上,一旦状态服务器出现故障,信息将丢失. mode="SqlServer" 存储在sql server中特点:工作负载会变大,但信息不会丢失
  188.  
  189. stateConnectionString :指定asp.net应用程序存储远程会话状态的服务器名,默认为本机。sqlConnectionString:当用会话状态数据库时,在这里设置连接字符串。Cookieless:设置为flase时,表示使用cookie会话状态来标识客户.timeout表示会话超时时间。-->
  190.  
  191. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"></sessionState>
  192.  
  193. <!--为 ASP.NET 应用程序配置页的视图状态设置。设置要存储在页历史记录中的项数。-->
  194.  
  195. <sessionPageState historySize="9"/>
  196.  
  197. <!--配置asp.net http运行库的设置。可以在计算机,站点,应用程序和子目录级别声明
  198.  
  199. 允许最多的请求个数100,最长允许执行请求时间为80秒,控制用户上传文件的大小,默认是4M。useFullyQualifiedRedirectUrl客户端重定向不需要被自动转换为完全限定格式。-->
  200.  
  201. <httpRuntime appRequestQueueLimit="100" executionTimeout="80" maxRequestLength="40960" useFullyQualifiedRedirectUrl="false"/>
  202.  
  203. <!--httpModules在一个应用程序内配置 HTTP 模块。-->
  204.  
  205. <httpModules>
  206.  
  207. <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
  208.  
  209. <add name="Session" type="System.Web.SessionState.SessionStateModule" />
  210.  
  211. <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
  212.  
  213. <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
  214.  
  215. <add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
  216.  
  217. <add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
  218.  
  219. <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
  220.  
  221. <add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
  222.  
  223. <add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
  224.  
  225. <!--自定义的URL重写,type基本上就是dll名-->
  226.  
  227. <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" />
  228.  
  229. <add name="Profile" type="System.Web.Profile.ProfileModule" />
  230.  
  231. </httpModules>
  232.  
  233. <!--httpHandlers用于根据用户请求的URL和HTTP谓词将用户的请求交给相应的处理程序。可以在配置级别的任何层次配置此节点,也就是说可以针对某个特定目录下指定的特殊文件进行特殊处理。
  234.  
  235. add:指定映射到处理程序的谓词/路径。clear:移除当前已配置或已继承的所有处理程序映射。remove:移除映射到处理程序的谓词/路径。remove 指令必须与前一个 add 指令的谓词/路径组合完全匹配。该指令不支持通配符。-->
  236.  
  237. <httpHandlers>
  238.  
  239. <remove verb="*" path="*.asmx"/>
  240.  
  241. <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  242.  
  243. <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  244.  
  245. <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
  246.  
  247. <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
  248.  
  249. </httpHandlers>
  250.  
  251. <!--为 Web 应用程序使用的 Cookie 配置属性。domain:设置 Cookie 域名。httpOnlyCookies:在 Internet Explorer 6 SP1 中启用 HttpOnlyCookies Cookie 的输出。默认值为 false。requireSSL:获取一个指示是否需要安全套接字层 (SSL) 通信的值.-->
  252.  
  253. <httpCookies httpOnlyCookies="false" requireSSL="false"/>
  254.  
  255. <!--控制 ASP.NET Web 服务及其客户端的行为。protocols:指定传输协议,ASP.NET 可使用这些传输协议来解密 HTTP-->
  256.  
  257. <webServices>
  258.  
  259. <protocols>
  260.  
  261. <add/>
  262.  
  263. </protocols>
  264.  
  265. </webServices>
  266.  
  267. <!--为 Web 应用程序配置缓存设置。cache:定义全局应用程序缓存设置。outputCache :指定应用程序范围的输出缓存设置。outputCacheSettings:指定可以应用于应用程序中页的输出缓存设置。sqlCacheDependency:为 ASP.NET 应用程序配置 SQL 缓存依赖项。-->
  268.  
  269. <caching>
  270.  
  271. <cache disableMemoryCollection = "false" disableExpiration = "false" privateBytesLimit = "0" percentagePhysicalMemoryUsedLimit = "90" privateBytesPollTime = "00:02:00"/>
  272.  
  273. <!--设计需要以这种方式缓存的页时,您需要向该页添加以下指令:<%@ OutputCache CacheProfile="ServerOnly" %>-->
  274.  
  275. <outputCacheSettings>
  276.  
  277. <outputCacheProfiles>
  278.  
  279. <add name="ServerOnly" duration="60" varyByCustom="browser" location="Server" />
  280.  
  281. </outputCacheProfiles>
  282.  
  283. </outputCacheSettings>
  284.  
  285. </caching>
  286.  
  287. </system.web>
  288.  
  289. </location>
  290.  
  291. <!--网络设置,authenticationModules:指定用于对 Internet 请求进行身份验证的模块。connectionManagement:指定与 Internet 宿主的连接的最大数目。defaultProxy:配置超文本传输协议 (HTTP) 代理服务器。
  292.  
  293. mailSettings:配置简单邮件传输协议 (SMTP) 邮件发送选项。requestCaching:控制网络请求的缓存机制。settings:配置 System.Net 的基本网络选项。-->
  294.  
  295. <system.net>
  296.  
  297. <!--配置SMTP电子邮件设置-->
  298.  
  299. <mailSettings>
  300.  
  301. <smtp from="weipeng">
  302.  
  303. <network host="Gao" password="" userName="" />
  304.  
  305. </smtp>
  306.  
  307. </mailSettings>
  308.  
  309. <!--禁用所有缓存-->
  310.  
  311. <requestCaching disableAllCaching="true"></requestCaching>
  312.  
  313. <!--指定代理地址,并对本地访问和 contoso.com 跳过代理。-->
  314.  
  315. <defaultProxy>
  316.  
  317. <proxy usesystemdefault="True" proxyaddress="http://192.168.1.10:3128" bypassonlocal="True"/>
  318.  
  319. <bypasslist>
  320.  
  321. <add address="[a-z]+".contoso".com" />
  322.  
  323. </bypasslist>
  324.  
  325. </defaultProxy>
  326.  
  327. </system.net>
  328.  
  329. <!--该节替换在 httpHandlers 和 httpModules 节中添加的与 AJAX 相关的 HTTP 处理程序和模块。该节使 IIS 7.0 在集成模式下运行时可使用这些处理程序和模块。在iis7.0 下运行 ASP.NET AJAX 需要 system.webServer
  330.  
  331. 节。对早期版本的 IIS 来说则不需要此节。 -->
  332.  
  333. <system.webServer>
  334.  
  335. <validation validateIntegratedModeConfiguration="false"/>
  336.  
  337. <modules>
  338.  
  339. <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  340.  
  341. </modules>
  342.  
  343. <handlers>
  344.  
  345. <remove name="WebServiceHandlerFactory-Integrated"/>
  346.  
  347. <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  348.  
  349. <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  350.  
  351. <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  352.  
  353. </handlers>
  354.  
  355. </system.webServer>
  356.  
  357. <!--ASP.NET AJAX 中配置 ASP.NET 服务-->
  358.  
  359. <system.web.extensions>
  360.  
  361. <!--配置 JSON 序列化-->
  362.  
  363. <scripting>
  364.  
  365. <webServices>
  366.  
  367. <jsonSerialization maxJsonLength="5000"/>
  368.  
  369. </webServices>
  370.  
  371. </scripting>
  372.  
  373. </system.web.extensions>
  374.  
  375. <!--对WCF的相关配置-->
  376.  
  377. <system.serviceModel>
  378.  
  379. <services>
  380.  
  381. <service name="WCFStudent.WCFStudentText" behaviorConfiguration="ServiceBehavior">
  382.  
  383. <!-- Service Endpoints -->
  384.  
  385. <endpoint address="" binding="wsHttpBinding" contract="WCFStudent.IStuServiceContract">
  386.  
  387. <!-- 部署时,应删除或替换下列标识元素,以反映在其下运行部署服务的标识。删除之后,WCF 将自动推导相应标识。-->
  388.  
  389. <identity>
  390.  
  391. <dns value="localhost"/>
  392.  
  393. </identity>
  394.  
  395. </endpoint>
  396.  
  397. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  398.  
  399. </service>
  400.  
  401. </services>
  402.  
  403. <behaviors>
  404.  
  405. <serviceBehaviors>
  406.  
  407. <behavior name="ServiceBehavior">
  408.  
  409. <!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
  410.  
  411. <serviceMetadata httpGetEnabled="true"/>
  412.  
  413. <!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息-->
  414.  
  415. <serviceDebug includeExceptionDetailInFaults="false"/>
  416.  
  417. </behavior>
  418.  
  419. </serviceBehaviors>
  420.  
  421. </behaviors>
  422.  
  423. </system.serviceModel>
  424.  
  425. <!--URL重定向-->
  426.  
  427. <rewriter>
  428.  
  429. <rewrite url="~/user/u(.+).aspx" to="~/user/index.aspx?r=$1" />
  430.  
  431. <rewrite url="~/ask/q(.+).aspx" to="~/home/ask/content.aspx?id=$1" />
  432.  
  433. <rewrite url="~/blog/b(.+).aspx" to="~/home/blog/article.aspx?r=$1" />
  434.  
  435. <rewrite url="~/news/n(.+).aspx" to="~/home/news/content.aspx?nid=$1" />
  436.  
  437. <rewrite url="~/default.aspx" to="~/home/ram/net.aspx" />
  438.  
  439. </rewriter>
  440.  
  441. </configuration>
  442.   

webconfig的配置说明的更多相关文章

  1. WebConfig 详解

    一.Web.Config继承特性 首先我们就来看看配置文件的继承层次.都知道在ASP.NET中有很多的配置文件,如machine.config,web.config,特别是web.config出现在很 ...

  2. NHibernate之映射文件配置说明

    NHibernate之映射文件配置说明 1. hibernate-mapping 这个元素包括以下可选的属性.schema属性,指明了这个映射所引用的表所在的schema名称.假若指定了这个属性, 表 ...

  3. IIS7.5+WebConfig实现页面伪静态和301重定向

    IIS7.5+WebConfig实现页面伪静态和301重定向 使用URLRewriter组件在windows 2003 +iis 6.0下配置伪静态的文章网络上一大堆.但在iis7.0或iis 7.5 ...

  4. 虚拟目录webconfig的配置

    昨天需要新建一个虚拟目录放在以前的一个站点下,新建了应用池,配好了环境置顶路径,虚拟目录页建立成功 ,但是程序一直是报错.这个程序我在测试服务器上是测过的,新建了一个站点是可以正常访问的,排除了程序问 ...

  5. WebConfig配置文件详解

    今天看到博客园一位朋友整理的一个WebConfig配置文件详解,觉得不错,转载一下: <?xml version="1.0"?> <!--注意: 除了手动编辑此文 ...

  6. WCF服务器证书配置说明-没有能够进行密钥交换的私钥,或者进程可能没有访问私钥的权限

    WCF服务器证书配置说明 1.创建证书: makecert.exe -sr LocalMachine -ss My -a sha1 -n CN=XXX -sky exchange -pe 说明: -s ...

  7. log4net一些配置说明

    <configuration> <configSections> <section name="log4net" type="System. ...

  8. 区分PC端与移动端代码,涵盖C#、JS、JQuery、webconfig

    1)C#区分PC端或移动端 using System.Text.RegularExpressions string u = Request.ServerVariables["HTTP_USE ...

  9. webconfig中注册HttpHandler报错:检测到在集成的托管管道模式下不适用的 ASP.NET 设置。

    为什么会出现以上错误? 在IIS7的应用程序池有两种模式,一种是"集成模式",一种是"经典模式". 经典模式 则是我们以前习惯的IIS 6 的方式. 如果使用集 ...

随机推荐

  1. cesium导入3D模型(obj转gltf)

    cesium中支持载入3D模型,不过只支持gltf格式.gltf是khronos组织(起草OpenGL标准的那家)定义的一种交换格式,用于互联网或移动设备上展现3d内容,充分支持opengl,webg ...

  2. mysql5.7系列修改root默认密码

    操作系统为centos7 64 1.修改 /etc/my.cnf,在 [mysqld] 小节下添加一行:skip-grant-tables=1 这一行配置让 mysqld 启动时不对密码进行验证 2. ...

  3. 【jmeter】jmeter 压力测试

    1.添加线程组,添加CSV Data set config 设置要读取的文件的路径,内容. 指定文件名称,文件编码,变量名,分割符等. 2.添加HTTP请求,注意参数 3.添加监听信息 模拟高并发 , ...

  4. FileSaver.js 浏览器导出Excel文件

    限制一:不同浏览器对 blob 对象有不同的限制 具体看看下面这个表格(出自 FileSaver.js): Browser Constructs as Filenames Max Blob Size ...

  5. NYOJ 116 士兵杀敌 (线段树,区间和)

    题目链接:NYOJ 116 士兵杀敌 士兵杀敌(二) 时间限制:1000 ms  |  内存限制:65535 KB 难度:5 描写叙述 南将军手下有N个士兵,分别编号1到N,这些士兵的杀敌数都是已知的 ...

  6. WAMP运行分析

  7. HTML 注释

    "<!-- xxx -->" 用于在 HTML 中插入注释,注释是用来给开发人员看的,浏览器不会显示注释内容 <!DOCTYPE HTML> <htm ...

  8. Oracle的闪回技术--闪回已删除的表

    注意闪回技术只能保护非系统表决空间中的表,而且表空间必须本地管理, 外键将不可以被恢复, 索引和约束的名字将会被命名为以BIN开头,由系统生成的名字 查看是否开启闪回: SQL> show pa ...

  9. Python Subprocess Popen 管道阻塞问题分析解决

    http://ju.outofmemory.cn/entry/279026 场景:1>不断播放mp3文件: 2>使用订阅发布模式保持tcp长连接,从服务器接收信息 造成程序hang死,但是 ...

  10. 老树开新花:DLL劫持漏洞新玩法

    本文原创作者:丝绸之路 <img src="http://image.3001.net/images/20150921/14428044502635.jpg!small" t ...