Web.Config Configuration File

问题描述

ServerErrorin'/'Application.RuntimeErrorDescription:Anapplicationerroroccurredontheserver.Thecurrentcustomerrorsettingsforthisapplicationpreventthedetailsoftheapplicationerrorfrombeingviewedremotely(forsecurityreasons).Itcould,however,beviewedbybrowsersrunningonthelocalservermachine.Details:Toenablethedetailsofthisspecificerrormessagetobeviewableonremotemachines,pleasecreatea<customErrors>tagwithina"web.config"configurationfilelocatedintherootdirectoryofthecurrentwebapplication.This<customErrors>tagshouldthenhaveits"mode"attributesetto"Off".<!--Web.ConfigConfigurationFile--><configuration><system.web><customErrorsmode="Off"/></system.web></configuration>Notes:Thecurrenterrorpageyouareseeingcanbereplacedbyacustomerrorpagebymodifyingthe"defaultRedirect"attributeoftheapplication's<customErrors>configurationtagtopointtoacustomerrorpageURL.<!--Web.ConfigConfigurationFile--><configuration><system.web><customErrorsmode="RemoteOnly"defaultRedirect="mycustompage.htm"/></system.web></configuration>网站出现如上错误,请教高人如何解决.

解决方案

解决方案二:
你的web.config文件是怎样的啊

时间: 2024-07-29 12:15:20

Web.Config Configuration File的相关文章

&amp;amp;quot;Web.Config Configuration File&amp;amp;quot; 求助解决方案

问题描述 网站出现如下错误,求高人帮助解决.谢谢==========================================ServerErrorin'/'Application.RuntimeErrorDescription:Anapplicationerroroccurredontheserver.Thecurrentcustomerrorsettingsforthisapplicationpreventthedetailsoftheapplicationerrorfrombeing

.NET的file文件上传控件使用方法 修改web.config文件上传大文件_实用技巧

修改Webcong文件: 以下为引用的内容: 复制代码 代码如下: <system.web> <httpRuntime maxRequestLength="40690" useFullyQualifiedRedirectUrl="true" executionTimeout="6000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8&q

据说可能是介绍 web.config 最详细的文章。大家参考参考[转]

web|参考 Web.Config  Written on: Nov, 16th 2001. Application("DSN") = "Server=moon; Driver=Sql Server; Database=Store; UID=user; PWD=bingo;" Above declaration in the global.asa file might be familiar to almost all ASP programmers. While

asp.net 2.0 中加密web.config 文件中的配置节

asp.net|web|加密 在asp.net2.0中新增了对web.config中的部分数据进行加密的功能,可以使用RSAProtectedConfigurationProvider和DPAPIProtectedConfigurationProvider来加密,本文说明使用RSAProtectedConfigurationProvidert和计算机级别的密钥容器进行加密的步骤. 1.         首先确定要进行加密的web.config中的配置节是否可以加密 2.         创建RS

运行时修改Web.config中的元素值 zhenyu(原作)

大家都知道Asp.Net提供了一个WebApplication的配置文件web.config,让我们可以很方便地设置Web应用程序,另外还可以在appSettings节中增加一些我们常要使用的单元,如数据库连接串等,利用System.Configuration.ConfigurationSetting类我们可以很容易读取这些单元的值,但是要改变这些值就需要一些技巧了,下面我就来告诉大家如何在运行时利用System.Management中的类去改变这些单元的值. 现假设您有一个WebApplica

使用VB.Net做一个配置web.config功能的WinForm

web 界面很简单,五个控件txtServerName.cboDatabase.txtUserName.txtPassword.cbWindowsAuthentication 下面是VB.Net后台代码: Imports SystemImports System.DiagnosticsImports System.ConfigurationImports System.XmlImports System.TextImports System.Reflection Public Class frm

利用xml轻松读取web.config中的用户自定义节

虽然vs.net2.0为我们提供了 ConfigurationManager.AppSettings["..."]; ConfigurationManager.ConnectionStrings["..."]; 这样方便快捷的方法来访问web.config中的AppSettings和ConnectionStrings这二个节的内容 但对于其它节,特别是用户自定义节的访问却并不方便,比如web.config中有这么一段内容 <?xml version="

web.config connectionStrings 数据库连接字符串的解释

原文:web.config connectionStrings 数据库连接字符串的解释(转载)   先来看一下默认的连接SQL Server数据库配置 <connectionStrings> <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb

在web.config中添加连接字符串

web|字符串|字符串 web.config中的文件如下: <?xml version="1.0" encoding="utf-8" ?><configuration><appSettings>      <add key="constring"  value="integrated security=SSPI;data source=localhost;initial catalog=教务管理