asp.net - 初始化字符串的格式不符合从索引 0 开始的规范
问题描述
说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.ArgumentException:初始化字符串的格式不符合从索引 0 开始的规范。''' 源错误:private Studentconnection db = new Studentconnection();
// GET: StudentClasses
public ActionResult Index()
{
return View(db.std.ToList());
}
错误行:return View(db.std.ToList());
数据库:PostgreSQL
解决方案
推荐阅读
- python - ReLU 和 LeakyRelu 的实现区别
- assembly - 如何在 MASM 中获取当前光标位置
- node.js - Mongoose 改变 create() 的结果
- angular - 如何从angular2中的component.ts切换ngFor中的特定面板
- c# - 如何将一个数据行值分配给另一个数据行
- vb.net - 全局热键 (RegisterHotKey) 甚至表单未显示在任务栏中
- javascript - 字体真棒 CSS 伪元素
- neo4j - 我应该如何在 neo4j 中表示任务和子任务?
- angular - Angular 5循环遍历对象数组
- c# - 一个消息框内的数据验证和错误列表c#