c# - 当前网络请求执行过程中产生了未处理的异常

标签 c# asp.net

下面是我的代码

IMG http://imageshack.us/a/img812/7017/98qq.jpg

当我点击页面中的“提交”按钮时,我必须获取下拉列表值并将其发送到另一个页面。

我已经关注了 link !为此

当我尝试运行我的代码时出现错误

An 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.

堆栈跟踪:

IMG http://imageshack.us/a/img534/9554/opdu.jpg

谁能告诉我错误是什么

最佳答案

在我的例子中,我创建了一个新项目,当我第一次运行它时,它给了我以下错误:

An 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.

所以我的解决方案是转到 Visual Studio 中的 Package Manager Console 并运行:Update-Package

问题解决了!!

关于c# - 当前网络请求执行过程中产生了未处理的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20083144/

相关文章:

c# - 用户代理导致 MVC DisplayFor ArgumentException : Illegal characters in path

javascript - { myParameter : 77 } and { 'myParameter' : 77 } 之间的 JSON 差异

c# - 用于更改 Word 文档中的字体的脚本

c# - 调整 Web 浏览器大小时调试 session 在 visual studio 中意外结束

c# - 在 C# 中构建服务器端自动完成

asp.net - 文件下载不适用于 IE7

c# - ASP.NET 文件上传在 Windows Azure 中不起作用

c# - Java 和 C# 中 "primitive"、 "value type"、 "struct"、 "class"、 "wrap"的定义

c# - Entity Framework 无法打开登录请求的数据库 - 用户登录失败

c# 来自 outlook 的带有附件的新邮件