IIS和HttpCookies引发配置错误 [英] IIS and HttpCookies throws Configuration Error

查看:151
本文介绍了IIS和HttpCookies引发配置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我收到配置错误,指出无法识别的配置部分"httpCookies"".

我具有的条目< httpcookies httponlycookies ="true">在< system.web>中标签...应该在哪里.

我的应用程序在本地(localhost)以及具有此配置的本地服务器上运行都没有问题.但是,它在另一台测试服务器上产生此错误,我不确定这可能是什么原因.这也有点困难,因为我无法访问引发此错误的服务器本身.

在这里引发想法:应用程序池是否使用了错误的.net版本?该应用程序是为.net 2.0平台开发的.

我想避免冗长的来回时间,并希望通过可能的解决方案发送一封邮件,因为通信响应时间就像发送电报一样.

任何帮助将不胜感激.

感谢

Hi Everyone,

I am receiving a Configuration Error stating ''Unrecognized configuration section ''httpCookies''''.

The entry I have <httpcookies httponlycookies="true"> is within the <system.web> tags...where it should be.

My application runs locally(localhost) as well as on a local server with this configuration without issue. It however produces this error on a different test server and I am unsure what could be the reason for this. It is also a bit difficult as i have no access to the server itself that is throwing this error.

Throwing ideas round here: Could it an incorrect .net version is being used for the app pool? The application is developed for the .net 2.0 platform

I want to avoid lengthy back and forth and would like to fire off one mail with possible solutions as communication response times are like sending telegrams.

Any assistance would be greatly appreciated.

Thanks

推荐答案

该消息表明httpCookies不在< system.web>中.元素.如果web.config文件不负责该错误,则可能是另一个配置文件(在子目录中或在另一个级别上)包含无效信息.

请参见 http://msdn.microsoft. com/en-us/library/ms228262%28v = vs.80%29.aspx [
The message suggests that httpCookies is not located in the <system.web> element. If the web.config file is not responsable for the error, then perhaps there is another config file (in a sub directory or on another level) that contains invalid information.

See ''Element information'' in http://msdn.microsoft.com/en-us/library/ms228262%28v=vs.80%29.aspx[^]


这篇关于IIS和HttpCookies引发配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆