首页 > 解决方案 > 初始化字符串的格式不符合从索引 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

标签: asp.netasp.net-mvcpostgresqlcrud

解决方案


推荐阅读