问题描述
对象名'CB_ShowClass'无效。Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.ExceptionDetails:System.Exception:对象名'CB_ShowClass'无效。SourceError:Anunhandledexceptionwasgeneratedduringtheexecutionofthecurrentwebrequest.Informationregardingtheoriginandlocationoftheexceptioncanbeidentifiedusingtheexceptionstacktracebelow.'CB_ShowClass'是数据库中的一个表.明明存在的.为什么说无效.而且以前好像没这个提示的.为什么突然间出来这个提示,?
解决方案
解决方案二:
你看下你表的权限默认是的dbo不用写select*fromdbo.[表名]如果是其他就要写如:select*fromgps.[表名]
解决方案三:
可能是sql语句的问题看看表名有没有写错
解决方案四:
不可能每个表名都写错吧.
解决方案五:
对象不存在呗
解决方案六:
表名不可能写错.而且每个表都出现同样的错误..还有以前好像是好的.为什么突然就出现这样的情况
解决方案七:
那楼主再检查下连接字符串里的数据库是不是正确的
时间: 2024-08-02 20:54:33