无语的。

展开阅读全文

无语求解

11-24

昨天还行,今天就杯具了,问原因。。。rnrnServer Error in '/WebSite/source/C4' Application.rn--------------------------------------------------------------------------------rnrnCould not load type 'pubsDataContext'. rnDescription: 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. rnrnException Details: System.Web.HttpException: Could not load type 'pubsDataContext'.rnrnSource Error: rnrnAn 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. rnrnStack Trace: rnrnrn[HttpException (0x80004005): Could not load type 'pubsDataContext'.]rn System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +8812123rn System.Web.UI.WebControls.LinqDataSourceView.get_ContextType() +107rnrn[InvalidOperationException: Could not find the type specified in the ContextTypeName property of LinqDataSource 'LinqDataSource1'.]rn System.Web.UI.WebControls.LinqDataSourceView.get_ContextType() +232rn System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTable(DataSourceOperation operation) +820rn System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTableForSelect() +118rn System.Web.UI.WebControls.LinqDataSourceView.CreateContext(DataSourceOperation operation) +12rn System.Web.UI.WebControls.ContextDataSourceView.GetSource(QueryContext context) +20rn System.Web.UI.WebControls.LinqDataSourceView.GetSource(QueryContext context) +330rn System.Web.UI.WebControls.LinqDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +69rn System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21rn System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143rn System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74rn System.Web.UI.WebControls.DetailsView.DataBind() +4rn System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66rn System.Web.UI.WebControls.DetailsView.EnsureDataBound() +228rn System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75rn System.Web.UI.Control.EnsureChildControls() +102rn System.Web.UI.Control.PreRenderRecursiveInternal() +42rn System.Web.UI.Control.PreRenderRecursiveInternal() +175rn System.Web.UI.Control.PreRenderRecursiveInternal() +175rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496rnrn rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 rn 论坛

无语的出错,mysql_fetch_array()

08-17

代码如下,求帮忙看一下吧!rn[code=php]getConn();rn rn rn public function getConn()rn $db = require_once 'config/config.php';rn $this->dbhost = $db['dbhost'];rn $this->dbuser = $db['dbuser'];rn $this->dbpsw = $db['dbpsw'];rn $this->dbchar = $db['dbchar'];rn $this->dbname = $db['dbname'];rn $this->tablepre = $db['tablepre'];rn $this->conn = mysql_connect($this->dbhost,$this->dbuser,$this->dbpsw) or die(mysql_error()." Mysql连接失败!");rn mysql_select_db($this->dbname,$this->conn) or die(mysql_error()." 数据库访问出错");rn mysql_query("set names ".$this->dbchar,$this->conn);rn rn rn /**rn * 执行sqlrn */rn public function query($sql)rn return mysql_query($sql,$this->conn) or die(mysql_error()." SQL执行出错:$sql");rn rn rn /**rn * 返回多条记录rn */rn public function getDataArrays($sql,$type = MYSQL_BOTH)rn $result = $this->query($sql);rn $refArr = array();rn [color=#FF0000]while ($row = mysql_fetch_array($result,$type))[/color]rn $refArr[] = $row;rn rn return $refArr;rn rnrn rn /**rn * 关闭数据库链接rn */rn public function closeConn()rn mysql_close($this->conn);rn rn[/code]rnrnrn调用如下:rn[code=php]$conn = new Conn();rn$sql = "select * from qj_content";rn$contentList = $conn->getDataArrays($sql,MYSQL_ASSOC);rn$conn->closeConn();[/code]rnrn执行结果如下:rnWarning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\AppServ\www\qjcentury\conn.php on line 45rnrnrn第45行代码在上面用红色标注了 论坛

无语的问题

03-13

我写的程序好好的,但只要一添加某个组件,比如Image,Button等等,rn就会编译不同过,也就是到LINK那步不动了,rn但是提示又没有错误,rn请问这是什么问题啊?rn难道是我的窗口里的组件太多了?rn也不多啊,只是大约连Image,botton,edit在内四十个而已,rn好无语!rnHelp!rn下面是编译窗口下的提示码:rnModule Unload: SETUPAPI.dll. Process MDIAPP.exe (216)rnThread Start: Thread ID: 2988. Process MDIAPP.exe (216)rnModule Load: MSACM32.DRV. No Debug Info. Base Address: $72C80000. Process MDIAPP.exe (216)rnModule Load: MSACM32.dll. No Debug Info. Base Address: $77BB0000. Process MDIAPP.exe (216)rnModule Load: MIDIMAP.dll. No Debug Info. Base Address: $77BA0000. Process MDIAPP.exe (216)rnModule Load: sxs.dll. No Debug Info. Base Address: $75E00000. Process MDIAPP.exe (216)rnModule Load: UNKNOWN_MODULE_1. No Debug Info. Base Address: $03160000. Process MDIAPP.exe (216)rnThread Start: Thread ID: 3128. Process MDIAPP.exe (216)rnThread Start: Thread ID: 2160. Process MDIAPP.exe (216)rnThread Start: Thread ID: 3404. Process MDIAPP.exe (216)rnThread Exit: Thread ID: 2972. Process MDIAPP.exe (216)rnThread Exit: Thread ID: 3228. Process MDIAPP.exe (216)rnThread Exit: Thread ID: 2160. Process MDIAPP.exe (216)rn到这里就突然停止了,rn如果直接到DEBUG文件夹直接运行那个生成的EXE文件,rn就会弹出“0x00432542"指令引用的"0xfffffff9"内存。该内存不能为”read“rn 论坛

没有更多推荐了,返回首页