I have a fairly simple CRUD web application (C#/ASP.NET) that runs fine in Firefox, IE7, and Chrome. (I'm accessing and testing the application on our development server.)
我有一个相当简单的CRUD Web应用程序(C#/ ASP.NET),可以在Firefox,IE7和Chrome中运行良好。 (我正在我们的开发服务器*问和测试应用程序。)
When I connect to the dev site via a Pocket PC device and go through the exact same steps, I get an ODBC error. Unfortunately, when I step through the code (once again, on my desktop) I can't duplicate the error. Same environment, different browser. All the code is server side, so I can't figure out why I'm getting different results.
当我通过Pocket PC设备连接到开发站点并完成相同的步骤时,我收到ODBC错误。不幸的是,当我单步执行代码(再一次,在我的桌面上)时,我无法复制错误。相同的环境,不同的浏览器所有代码都是服务器端,所以我无法弄清楚为什么我会得到不同的结果。
I've run through the code with the Pocket PC emulator and it works fine. It only happens when I access the site via the actual device. I have similar pages, accessing the same ODBC database that don't have this problem on the Pocket PC device.
我使用Pocket PC模拟器运行代码,它工作正常。它只发生在我通过实际设备访问网站时。我有类似的页面,访问Pocket PC设备上没有此问题的相同ODBC数据库。
Anyone ever seen something like this? I'm stumped.
有人见过这样的东西吗?我很难过。
Edit: Here's the text of the ODBC error. The error code '38121' refers to an invalid order number, even though I know for sure that the order number is not invalid. (I'm using the same order number on my desktop as I am on the handheld.) If needed, I can post the stack track too.
编辑:这是ODBC错误的文本。错误代码'38121'指的是无效的订单号,即使我确定订单号无效。 (我在桌面上使用与手持设备上相同的订单号。)如果需要,我也可以发布堆栈轨道。
****ERROR [HY000] [CA][IDMS ODBC Driver][IDMS]DB001075 C-4M321: Procedure LOEPU041 exception 38121 ?**
****错误[HY000] [CA] [IDMS ODBC驱动程序] [IDMS] DB001075 C-4M321:程序LOEPU041异常38121?**
Double edit: Chalk it up to user error. The database requires all parameters to be entered in uppercase. On my machine I was used to entering the order number in all uppercase. Since the Pocket PC has a crappy keyboard, I would always just enter it in lowercase. A simple ToUpper() fixed it. Holy crap, I feel dumb.
双重编辑:将其归结为用户错误。数据库要求以大写形式输入所有参数。在我的机器上,我习惯以全部大写输入订单号。由于掌上电脑有一个糟糕的键盘,我总是只用小写输入它。一个简单的ToUpper()修复它。神圣的废话,我觉得愚蠢。
1 个解决方案
#1
-
Check the values are submitted as you expect them in the request handler
检查值是否在请求处理程序中按预期提交
-
Check the values are passed to the database statements correctly
检查值是否正确传递给数据库语句
-
Implement server-side error logging / tracing
实现服务器端错误记录/跟踪
-
Memorize the text of the error message(s)
记住错误消息的文本
#1
-
Check the values are submitted as you expect them in the request handler
检查值是否在请求处理程序中按预期提交
-
Check the values are passed to the database statements correctly
检查值是否正确传递给数据库语句
-
Implement server-side error logging / tracing
实现服务器端错误记录/跟踪
-
Memorize the text of the error message(s)
记住错误消息的文本