Tag: typeerror

为什么我会收到此.NET错误 – “TypeError:expected List ,得到List ”

我重构了一些代码,现在我在调用函数时遇到了这个错误。 但是一切似乎都很好,我甚至比较了旧代码和新代码之间的failing_argument.GetType().AssemblyQualifiedName ,它们是相同的。 什么想法可能是错的? 函数的调用是在IronPython代码中,函数是在C#代码中(在重构过程中没有改变的程序集)。 什么样的事情会产生这个错误? 编辑:完整的IronPython回溯: Traceback (most recent call last): File “D:\Work\Framework\python\ide\tab_manager.py”, line 57, in add_chart_tab chart_tab = ChartTab(self.__main_window, self, tab_item, name, chart_descriptor) File “D:\Work\Framework\python\ide\chart_tab.py”, line 64, in __init__ self.__chart = Chart(self, self.__gui_cfg, self.__base_cfg, self.__chart_descriptor, self.__scroll_bar) File “D:\Work\Framework\python\ide\chart.py”, line 57, in __init__ self.update_topology(empty=False) File “D:\Work\Framework\python\ide\chart.py”, line 93, in update_topology self.update_config() File “D:\Work\Framework\python\ide\chart.py”, line […]

从Generic Handler(ashx)文件中捕获ASP.NET中的exception

我试图让我的ASP.NET站点使用不同的服务器端堆栈。 我的ashx文件似乎抛出了500内部服务器错误。 我如何弄清楚这个ashx文件抛出的exception或抛出500的原因? 当我附加到我的IIS 7 w3wp.exe进程时,它不会抛出exception,但我读到这可能是这种情况。 ashx文件位于我的ASP.NET站点的根目录中,并且属性将其设置为编译。 GET http://uhc-8:8883/MyApp/ExtDirectProxy.ashx 500 (Internal Server Error) index.html:27 Uncaught TypeError: Cannot read property ‘isProvider’ of null ext-all-debug.js:74832 allow right click initializing for http://uhc-8:8883/MyApp/index.html rightclick.js:1 allow right click processing http://uhc-8:8883/MyApp/index.html rightclick.js:25