作者dashmoment (大嘘魔人)
看板Visual_Basic
标题Re: [.NET] 发行的问题
时间Thu Sep 20 10:54:57 2007
不好意思,我的问题还是没有解决
所以我把问题再详细的讲一便
请各位大大帮帮我阿!!!
我是用VS2005写的ASP.NET网页
基本上程式本身在IIS测试下是没有问题的
可是放到网路上,却ㄧ直出现错误信息
http://www.wretch.cc/album/dashmoment
里面的相片是网页上出现的错误讯息
还有我的Web.config档的原始档
FTP:66.197.198.204
ID:dashmoment
password:jasoncpu
上面是那个网页的上传空间
里面有个Website1的资料夹有网站的原始档
拜托各位神手大大了.......<(_ _)>
===========================以下是Debug的资讯=========================
'/tmp' 应用程式中发生伺服器错误。
--------------------------------------------------------------------------------
运作必须使用更新查询。
描述: 在执行目前 Web 要求的过程中发生未处理的例外情形。请检阅堆叠追踪以取得错
误的详细资讯,以及在程式码中产生的位置。
例外详细资讯: System.Data.OleDb.OleDbException: 运作必须使用更新查询。
原始程式错误:
行 59: ads.InsertParameters.Add("ProductName",
CType(e.Item.FindControl("productnameLabel"), Label).Text)
行 60: ads.InsertParameters.Add("unitprice",
CType(e.Item.FindControl("productpriceLabel"), Label).Text)
行 61: ads.Insert()
行 62: Else
行 63: ads.UpdateCommand = "update [cart] set
[quantity]=[quantity]+1 where [cartcustomer]='" & Session("cartname") & "'
and productid =" & DataList1.DataKeys(e.Item.ItemIndex)
==========================分隔线========================================
可是我在VS2005里测试是没有错的
只是上传就不能用
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.223.224.84
1F:推 retsamsu:要不要把debug mode打开(按照错误讯息那页作),这样比较 09/20 22:09
2F:→ retsamsu:知道错在哪? 09/20 22:10
※ 编辑: dashmoment 来自: 61.223.224.84 (09/21 00:53)