在web.config里面:
行 177: <system.web>
行 178: <httpModules>
行 179: <add name="Tanson.WebSite.FlowStatistics.SqlINC" type="Tanson.WebSite.FlowStatistics.SqlINC"/>
行 180: </httpModules>
行 181: <httpHandlers>行179是起什么作用的?报这样的错是什么原因?跟服务器的登录权限有关吗?“/CentalineServer”应用程序中的服务器错误。
--------------------------------------------------------------------------------配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 分析器错误信息: 未能加载类型“Tanson.WebSite.FlowStatistics.SqlINC”。
行 177: <system.web>
行 178: <httpModules>
行 179: <add name="Tanson.WebSite.FlowStatistics.SqlINC" type="Tanson.WebSite.FlowStatistics.SqlINC"/>
行 180: </httpModules>
行 181: <httpHandlers>行179是起什么作用的?报这样的错是什么原因?跟服务器的登录权限有关吗?“/CentalineServer”应用程序中的服务器错误。
--------------------------------------------------------------------------------配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 分析器错误信息: 未能加载类型“Tanson.WebSite.FlowStatistics.SqlINC”。
解决方案 »
- 关于乱码问题
- 怎样用vs2005打开vs2008(.net framework3.5)的工程?
- 【请教】使用ASP.NET是否就可以开发一个稍复杂的BS程序?
- CurrentPath需要什么头文件??
- givdview 更新行时,提示 System.FormatException: 该字符串未被识别为有效的 DateTime。
- dropdownlist如何控制GridView的headertext
- 请问:用DataAdapter.fill()填充DataSet对象时,如果DataAdapter相关的SQL语句返回空值怎么办?急.....
- 这是什么意思!
- asp.net打包怎么把选定文件和文件夹打进去?
- ASP.NET中將數據導出EXCEL時無法使用Application()對象,高手們請進!
- 请高后帮我看一下,一段javascript函数的问题
- WCF如何返回XML到客户端?我想对过WCF返回XML与xslt生成html
利用了httpModules对字符进行检测,仅仅对少数几个关键SQL命令进行了检测。
跳过了multipart/form-data类型的数据。
将SQLINC.DLL放入bin目录。在web.config中加入<httpModules>
<add name="Tanson.WebSite.FlowStatistics.SqlINC" type="Tanson.WebSite.FlowStatistics.SqlINC"/>
</httpModules>
如果要去掉防注入功能,就把<httpModules>
<add name="Tanson.WebSite.FlowStatistics.SqlINC" type="Tanson.WebSite.FlowStatistics.SqlINC"/>
</httpModules>
中的 <add name="Tanson.WebSite.FlowStatistics.SqlINC" type="Tanson.WebSite.FlowStatistics.SqlINC"/>
删去就可以了