목록
반응형
ERROR (
반응형
5)
개발꿈나무

InvalidOperationException: The LINQ expression could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync(). See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. Linq 쿼리에서 발생한 error 찾아보니 LINQ 쿼리에서 지원되는 않는 연산이 있어서 그런 것이..

System.ComponentModel.Win32Exception: 'The system cannot find the file specified.' C#에서 어떤 url을 chrome으로 열려고 했을 때 발생한 오류. Process.Start("chrome.exe", "www.naver.com")에서 에러가 났다. Process process = new Process(); Process.Start("chrome.exe", "www.naver.com"); 검색해보니 "chrome.exe"라는 파일을 못 찾는 것이었다. 그래서 chrome.exe의 full path를 적어주거나, chrome.exe의 경로를 환경변수에 추가해주면 해결이 되는 오류였다. 나는 chrome.exe의 전체 경로를 적음으로써 오류를..

TypeError: Convertinf circular structure to JSON --> starting at object with constructor 'Window' --- property 'window' closes the circle at JSON.stringify () JSRuntime을 이용하여 new tab에서 새로운 razor 파일을 열려고 했을 때 발생한 error private async Task XMLPage_Load(string dcn_no) { string url = "/dcnlist/xml/" + dcn_no; await JSRuntime.InvokeAsync("open", url, "_blank"); } await JSRuntime.InvokeAsync("open", ur..

XML 파일을 Load할 때 발생한 error encoding 문제였다. 기존 xml 파일은 UTF-8로 encoding 되어있었는데 UTF-16으로 수정하니 제대로 작동했다. 또는, xml file을 Load할 때 encoding을 Unicode로 지정해주니 해결되었다. if(File.Exists(xml_path)) { XmlDocument xml_doc = new XmlDocument(); using(var reader = new StreamReader(xml_path, Encoding.Unicode)) { xml_doc.Load(reader); } } else { Console.WriteLine("error"); }

Blazor에서 xml 파일을 Load할 때 발생한 error XmlDocument xml_doc = new XmlDocument(); xml_doc.LoadXml(xml_path); xml_doc.LoadXml(xml_path) 에서 error가 발생한다. xml_doc.LoadXml(xml_path)를 xml_doc.Load(xml_path)로 수정하면 오류는 해결된다. XmlDocument xml_doc = new XmlDocument(); xml_doc.Load(xml_path);