日期:2014-05-19  浏览次数:20688 次

[**在线100分求助**]
出现如下错误信息:其中“IsShow”是数据字段,而且现在数据库中有这个字段。


Server   Error   in   '/ '   Application.
--------------------------------------------
Invalid   column   name   'IsShow '.  
Description:   An   unhandled   exception   occurred   during   the   execution   of   the   current   web   request.   Please   review   the   stack   trace   for   more   information   about   the   error   and   where   it   originated   in   the   code.  

Exception   Details:   System.Data.SqlClient.SqlException:   Invalid   column   name   'IsShow '.

Source   Error:  

An   unhandled   exception   was   generated   during   the   execution   of   the   current   web   request.   Information   regarding   the   origin   and   location   of   the   exception   can   be   identified   using   the   exception   stack   trace   below.


关键是这个网站,在我们这里的服务器上测试是没问题的,但是到了澳洲那边的服务器上就有如上的问题了。   请问一下,大侠们,这种情况一般是什么原因??如何排除。


------解决方案--------------------
程序中没有多 'IsShow '的空值进行处理
------解决方案--------------------
http://www.chinacs.net/archives/31/2006/3587.html
------解决方案--------------------
Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'IsShow '

-----------------------------------
这里数据库报的错,你再仔细检查一下提交数据库执行的sql语句.如果语句没问题,将语句放在查询分析器里执行下试试.
------解决方案--------------------
澳洲的服务器上的数据库没这个字段
------解决方案--------------------
Invalid column name 'IsShow '
============================
你确认你的数据库表里有IsShow这个字段


------解决方案--------------------
先到查询分析器里运行一下SQL语句试试看。
是否这个字段出现在SQL语句中的字段列表中?
------解决方案--------------------
Are you sure your database has the column named "IsShow "?
练练英文 不知道是否正确
------解决方案--------------------
up
------解决方案--------------------
顶上去啊……