Web.config

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0"?>
<!-- 注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来 
     配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“ASP.NET 配置”
     选项。
     设置和注释的完整列表在
     machine.config.comments 中,该文件通常位于 \Windows\Microsoft.NET\Framework\v2.0.xxxxx\Config 中
     
   
      
 -->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  <appSettings>
    <!--链接SQL Server数据库的链接字符串-->
    <add key="DBCONNECTIONSTRING" value="Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=C:\Users\coder\Desktop\2024Code\7\20240722\update\LeaveMessageMVC\DB_51Aspx\LMDB.mdb"/>
  </appSettings>
  <connectionStrings/>
  <!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.8" />
      </system.Web>
  -->
  <system.web>
    <!-- 
            设置 compilation debug="true" 将调试符号插入已编译的页面中。
            但由于这会影响性能,因此只在开发过程中将此值设置为 true。
        -->
    <compilation debug="true" targetFramework="4.8">
      <assemblies>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>
    <pages validateRequest="false" controlRenderingCompatibilityVersion="4.0"/>
    <!--(注:该项默认是检测,如果你使用了不检测,一要对用户的输入进行编码或验证),
    在从客户端回发页时将检查加密的视图状态,以验证视图状态是否已在客户端被篡改。
    (注:该项默认是不验证)-->
    <!--
            通过 <authentication> 节可以配置 ASP.NET 使用的
            安全身份验证模式,以标识传入的用户。 
        -->
    <authentication mode="Windows"/>
    <!--
            如果在执行请求的过程中出现未处理的错误,则通过 <customErrors> 节
            可以配置相应的处理步骤。具体说来,开发人员通过该节可以
            配置要显示的 html 错误页以代替错误堆栈跟踪。
        -->
    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
      <!-- 
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        -->
    </customErrors>
    <!--
            完全限定客户端重定向的 URL
            有些移动设备要求对客户端重定向的 URL 进行完全限定。
        -->
后面还有 9 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。