Visual Studio Error Message Summary

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Visual Studio Error Message Summary相关的知识,希望对你有一定的参考价值。

  1. Error message: javascript runtime error: ‘$‘ is undefined

Solution: index.cshtml 这个页面
insert into <script src="~/Scripts/jquery-1.10.2.min.js" type="text/javascript"></script>

  1. Error Message: when debug/run a solution, it pop up the ‘unable to launch the IIS Express Web server. Output from IIS Express Port ‘11159’ is in use ’.

Solution: delete the file in //c$/document/IISExpress. Try to debug/run the solution again.

  1. Error message: when try to debug/run a solution for the first time, it pop up the error message ‘could not find a part of the path ‘E:websitePRC Tools WebProject**.WebSitein oslyncsc.exe’. ‘

Solution: rebuild the solution, then try to debug/run the solution again.
reference: http://www.ridilabs.net/post/2018/11/02/Could-not-find-a-part-of-the-path-rosyln-cscexe.aspx#.XVoBPeQUlMs

  1. Inconsistent accessibility: parameter type ‘MailTask’ is less accessible than method ‘’

    Solution: project Model class prefix add a keyword Public

  2. Sequence contains no elements
    advise:
    When you get the LINQ error "Sequence contains no elements", this is usually because you are using the First() or Single() command rather than FirstOrDefault() and SingleOrDefault().
    Solution:
    Change Single() to SingleOrDefault()

  3. Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

  4. Error: Cannot bind to the new display member. Parameter name: newDisplayMember.

original: cbxpmn. valueMember = dt.rows[0]["Menu_Name"].tostring();
cbxpmn.DisplayMember = dt.Rows[0]["Menu_Name"].tostring();

Update: cbxpmn.ValueMember = "Menu_Name";
cbxpmn.DisplayMember = "Menu_Name";

以上是关于Visual Studio Error Message Summary的主要内容,如果未能解决你的问题,请参考以下文章

Visual Studio 2010:致命错误 C1189:#error

visual studio 2019 error MSB3073 extied with code 0

#error : Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10

visual studio 2013 error: Page '312e8a59-2712-48a1-863e-0ef4e67961fc' not found.

Visual Studio 2013 编译时 "error LNK2026:模块对于 SAFESEH 映像是不安全的" 解决方案

IDE0006 Error running Xamarin Android project in Visual Studio