Popular New Releases in Web Framework
angular
v14.0.0-next.14
flask
gin
Release v1.7.7
symfony
v6.0.7
vapor
Provide async closures in XCTVapor
Popular Libraries in Web Framework
by angular typescript
80840 MIT
The modern web developer’s platform
by pallets python
58462 BSD-3-Clause
The Python micro framework for building web applications.
by gin-gonic go
56154 MIT
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
by php c
33588 NOASSERTION
The PHP Interpreter
by symfony php
26732 MIT
The Symfony PHP framework
by Polymer html
21662 NOASSERTION
Our original Web Component library.
by vapor swift
21579 MIT
💧 A server-side Swift HTTP web framework.
by tornadoweb python
20509 Apache-2.0
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
by remoteintech javascript
18118 CC0-1.0
A list of semi to fully remote-friendly companies (jobs) in tech.
Trending New libraries in Web Framework
by go-admin-team go
5884 MIT
基于Gin + Vue + Element UI的前后端分离权限管理系统脚手架(包含了:多租户的支持,基础用户管理功能,jwt鉴权,代码生成器,RBAC资源控制,表单构建,定时任务等)3分钟构建自己的中后台项目;文档:https://doc.go-admin.dev Demo: https://www.go-admin.dev Antd beta版本:https://preview.go-admin.dev
by symfony php
1305 MIT
A generic function and convention to trigger deprecation notices
by symfony php
1232 MIT
This component provides functions unavailable in releases prior to PHP 8.0.
by pwa-builder typescript
628 NOASSERTION
Welcome to the PWABuilder pwa-starter! Looking to build a new Progressive Web App and not sure where to get started? This is what you are looking for!
by seetafaceengine c++
533
SeetaFace 6: Newest open and free, full stack face recognization toolkit.
by symfony php
461 MIT
Symfony UX initiative: a new JavaScript ecosystem for Symfony
by TitasGailius php
451
An Elegent wrapper around Symfony's Process component.
by symfony php
443 MIT
This component provides functions unavailable in releases prior to PHP 8.1.
by rezaamini-ir php
428 MIT
A beautiful and flexible admin panel creator based on Livewire for Laravel
Top Authors in Web Framework
1
112 Libraries
174057
2
78 Libraries
3474
3
69 Libraries
26046
4
62 Libraries
3090
5
47 Libraries
1701
6
41 Libraries
176
7
40 Libraries
866
8
36 Libraries
1192
9
31 Libraries
24338
10
29 Libraries
2678
1
112 Libraries
174057
2
78 Libraries
3474
3
69 Libraries
26046
4
62 Libraries
3090
5
47 Libraries
1701
6
41 Libraries
176
7
40 Libraries
866
8
36 Libraries
1192
9
31 Libraries
24338
10
29 Libraries
2678
Trending Kits in Web Framework
No Trending Kits are available at this moment for Web Framework
Trending Discussions on Web Framework
Why can two Java processes bind to the same socket in macOS?
ImportError: Couldn't import Django inside virtual environment with poetry?
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
Newbe on Go - AppEngine - Deploy
Remix: middleware pattern to run code before loader on every request?
Quart framework WARNING:asyncio:Executing
dial tcp 127.0.0.1:8080: connect: connection refused. go docker app
VS2017 crashes with 'FileNotFoundEx: System.Runtime.CompilerServices.Unsafe, V=4.0.4.1' upon loading any project
Logging access to Java servlet
DataTables warning: table id=<my_table_name> - Requested unknown parameter '<my_table_first_column_name>' for row 0, column 0
QUESTION
Why can two Java processes bind to the same socket in macOS?
Asked 2022-Feb-16 at 20:18I have some Java code that is generating a socket binding. It's hard to provide a minimal example as this is part of a web framework, but it effectively does this check at some point.
1 private static boolean portInUse(int port) {
2 // try to bind to this port, if it succeeds the port is not in use
3 try (ServerSocket socket = new ServerSocket(port)) {
4 socket.setReuseAddress(true);
5 return false;
6 } catch (IOException e) {
7 return true;
8 }
9 }
10
I can see that if I run two distinct Java processes with the same port, they both fall into the first conditional and return false
, thus both are able to bind to the same port. I've read through some related socket questions and explanations like this one, but they seem to make it sound like this shouldn't be possible with the options I've specified. Looking at the implementation of setReuseAddress
it only seems to set SO_REUSEADDR
on the socket.
I can see one process ends up with a socket like ServerSocket[addr=0.0.0.0/0.0.0.0,localport=56674]
in a debugger. If I run something like sudo lsof -n -i | grep -e LISTEN -e ESTABLISHED | grep 56674
I can see two processes binding to the same port:
1 private static boolean portInUse(int port) {
2 // try to bind to this port, if it succeeds the port is not in use
3 try (ServerSocket socket = new ServerSocket(port)) {
4 socket.setReuseAddress(true);
5 return false;
6 } catch (IOException e) {
7 return true;
8 }
9 }
10java 68863 natdempk 1256u IPv4 0xbbac93fff9a6e677 0t0 TCP *:56674 (LISTEN)
11java 68998 natdempk 985u IPv6 0xbbac93fff2f84daf 0t0 TCP *:56674 (LISTEN)
12
I can also see some other projects like gRPC and Node mention this behavior as being observed with their servers in issue trackers, but they never explain why this is possible. How can distinct processes bind to the same socket on macOS?
I am running macOS 11.6.3 (20G415) if that is at all helpful. Happy to provide more debug info as well if anyone has anything I should add here.
ANSWER
Answered 2022-Feb-16 at 20:18They are not binding to the same port. One is binding to TCP on top of IPv6, the other is binding to TCP on top of IPv4.
To expand on the Java details a bit: new ServerSocket(port)
in Java uses InetAddress.anyLocalAddress()
because no InetAddress
was passed in. InetAddress.anyLocalAddress()
can return either an IPv4 or IPv6 address, which means this isn't guaranteed to be the same value to bind to across JVMs despite the same port being passed in.
QUESTION
ImportError: Couldn't import Django inside virtual environment with poetry?
Asked 2022-Jan-31 at 06:29I created a django project, set up a virtual environment, and added django with poetry add
.
inside pyproject.toml:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5
Inside venv I run poetry show
:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9
When I run command to create an app:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10
I get this error:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10 (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p 1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58)
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17 File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>>
20
venv is set, activated, django is installed but I am still getting this error. Inside virtual envrionment I start python shell and import django:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10 (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p 1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58)
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17 File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>>
20 Python 3.9.7 (default, Sep 16 2021, 13:09:58)
21 [GCC 7.5.0] :: Anaconda, Inc. on linux
22 Type "help", "copyright", "credits" or "license" for more information.
23 >>> import django
24 Traceback (most recent call last):
25 File "<stdin>", line 1, in <module>
26 ModuleNotFoundError: No module named 'django'
27
Django is also globally installed and when I start the python shell in global environment, I can import django:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10 (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p 1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58)
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17 File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>>
20 Python 3.9.7 (default, Sep 16 2021, 13:09:58)
21 [GCC 7.5.0] :: Anaconda, Inc. on linux
22 Type "help", "copyright", "credits" or "license" for more information.
23 >>> import django
24 Traceback (most recent call last):
25 File "<stdin>", line 1, in <module>
26 ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58)
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>>
32
ANSWER
Answered 2022-Jan-31 at 06:29It seems that you have manually created a virtual env in the project directory by e.g. python -m venv venv
. So now you have one in /home/tesla/Documents/projects/graphql/graphenee/venv/
.
After that you added some packages with poetry. However, by default poetry will only look for .venv
directory (note the starting dot) in the project directory. Since poetry did not find a .venv
, it created a new virtual env in /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9
and installed the packages you added via poetry add
there.
The problem is that you try to use the "empty" virtual env in the project directory instead of the one created by poetry. Fortunately with poetry it is very easy to run command, even without activating the venv, just use poetry run
in the project directory.
To check Django installation:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10 (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p 1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58)
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17 File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>>
20 Python 3.9.7 (default, Sep 16 2021, 13:09:58)
21 [GCC 7.5.0] :: Anaconda, Inc. on linux
22 Type "help", "copyright", "credits" or "license" for more information.
23 >>> import django
24 Traceback (most recent call last):
25 File "<stdin>", line 1, in <module>
26 ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58)
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>>
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35
To run Django management commands:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10 (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p 1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58)
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17 File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>>
20 Python 3.9.7 (default, Sep 16 2021, 13:09:58)
21 [GCC 7.5.0] :: Anaconda, Inc. on linux
22 Type "help", "copyright", "credits" or "license" for more information.
23 >>> import django
24 Traceback (most recent call last):
25 File "<stdin>", line 1, in <module>
26 ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58)
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>>
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35poetry run ./manage.py startapp users apps/users
36
It will use the virtual env in /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9
. You can delete venv
in the project directory.
Note: if you rather want to use a virtual env in the project directory, then delete /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9
, then create one in the project directory by
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10 (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p 1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58)
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17 File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>>
20 Python 3.9.7 (default, Sep 16 2021, 13:09:58)
21 [GCC 7.5.0] :: Anaconda, Inc. on linux
22 Type "help", "copyright", "credits" or "license" for more information.
23 >>> import django
24 Traceback (most recent call last):
25 File "<stdin>", line 1, in <module>
26 ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58)
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>>
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35poetry run ./manage.py startapp users apps/users
36python -m venv .venv`
37
After that install packages with poetry:
1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref 3.5.0 ASGI specs, helper code, and adapters
6django 4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse 0.4.2 A non-validating SQL parser.
9 p manage.py startapp users apps/users
10 (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p 1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58)
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17 File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>>
20 Python 3.9.7 (default, Sep 16 2021, 13:09:58)
21 [GCC 7.5.0] :: Anaconda, Inc. on linux
22 Type "help", "copyright", "credits" or "license" for more information.
23 >>> import django
24 Traceback (most recent call last):
25 File "<stdin>", line 1, in <module>
26 ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58)
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>>
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35poetry run ./manage.py startapp users apps/users
36python -m venv .venv`
37poetry install
38
Now poetry will use the local virtual env in /home/tesla/Documents/projects/graphql/graphenee/.venv
when you run a command via poetry run [cmd]
.
QUESTION
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
Asked 2022-Jan-28 at 10:14I was playing with some web frameworks for Python, when I tried to use the framework aiohhtp with this code (taken from the documentation):
1import aiohttp
2import asyncio
3
4#********************************
5# a solution I found on the forum:
6# https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org?rq=1
7import ssl
8ssl._create_default_https_context = ssl._create_unverified_context
9# ... but it doesn't work :(
10#********************************
11
12async def main():
13
14 async with aiohttp.ClientSession() as session:
15 async with session.get("https://python.org") as response:
16
17 print("Status:", response.status)
18 print("Content-type:", response.headers["content-type"])
19
20 html = await response.text()
21 print("Body:", html[:15], "...")
22
23loop = asyncio.get_event_loop()
24loop.run_until_complete(main())
25
When I run this code I get this traceback:
1import aiohttp
2import asyncio
3
4#********************************
5# a solution I found on the forum:
6# https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org?rq=1
7import ssl
8ssl._create_default_https_context = ssl._create_unverified_context
9# ... but it doesn't work :(
10#********************************
11
12async def main():
13
14 async with aiohttp.ClientSession() as session:
15 async with session.get("https://python.org") as response:
16
17 print("Status:", response.status)
18 print("Content-type:", response.headers["content-type"])
19
20 html = await response.text()
21 print("Body:", html[:15], "...")
22
23loop = asyncio.get_event_loop()
24loop.run_until_complete(main())
25DeprecationWarning: There is
26no current event loop
27 loop = asyncio.get_event_loop()
28Traceback (most recent call last):
29 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 986, in _wrap_create_connection
30 return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
31 File "c:\Python310\lib\asyncio\base_events.py", line 1080, in create_connection
32 transport, protocol = await self._create_connection_transport(
33 File "c:\Python310\lib\asyncio\base_events.py", line 1110, in _create_connection_transport
34 await waiter
35 File "c:\Python310\lib\asyncio\sslproto.py", line 528, in data_received
36 ssldata, appdata = self._sslpipe.feed_ssldata(data)
37 File "c:\Python310\lib\asyncio\sslproto.py", line 188, in feed_ssldata
38 self._sslobj.do_handshake()
39 File "c:\Python310\lib\ssl.py", line 974, in do_handshake
40 self._sslobj.do_handshake()
41ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
42
43The above exception was the direct cause of the following exception:
44
45Traceback (most recent call last):
46 File "c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py", line 21, in <module>
47 loop.run_until_complete(main())
48 File "c:\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
49 return future.result()
50 File "c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py", line 12, in main
51 async with session.get("https://python.org") as response:
52 File "c:\Python310\lib\site-packages\aiohttp\client.py", line 1138, in __aenter__
53 self._resp = await self._coro
54 File "c:\Python310\lib\site-packages\aiohttp\client.py", line 535, in _request
55 conn = await self._connector.connect(
56 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 542, in connect
57 proto = await self._create_connection(req, traces, timeout)
58 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 907, in _create_connection
59 _, proto = await self._create_direct_connection(req, traces, timeout)
60 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 1206, in _create_direct_connection
61 raise last_exc
62 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 1175, in _create_direct_connection
63 transp, proto = await self._wrap_create_connection(
64 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 988, in _wrap_create_connection
65 raise ClientConnectorCertificateError(req.connection_key, exc) from exc
66aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host python.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)')]
67
From the final row I have thought that it was a problem with a certificate that is expired, so I searched on the internet and I tried to solve installing some certificates:
- COMODO ECC Certification Authority;
- three certificates that I took from the site www.python.org under Bango's advice for the question:
I'm sorry for the long question, but I searched a lot on the internet and I couldn't find the solution for my case. Thank you in advance, guys <3
ANSWER
Answered 2022-Jan-28 at 10:14Picking up on the comment by @salparadise, the following worked for me:
1import aiohttp
2import asyncio
3
4#********************************
5# a solution I found on the forum:
6# https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org?rq=1
7import ssl
8ssl._create_default_https_context = ssl._create_unverified_context
9# ... but it doesn't work :(
10#********************************
11
12async def main():
13
14 async with aiohttp.ClientSession() as session:
15 async with session.get("https://python.org") as response:
16
17 print("Status:", response.status)
18 print("Content-type:", response.headers["content-type"])
19
20 html = await response.text()
21 print("Body:", html[:15], "...")
22
23loop = asyncio.get_event_loop()
24loop.run_until_complete(main())
25DeprecationWarning: There is
26no current event loop
27 loop = asyncio.get_event_loop()
28Traceback (most recent call last):
29 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 986, in _wrap_create_connection
30 return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
31 File "c:\Python310\lib\asyncio\base_events.py", line 1080, in create_connection
32 transport, protocol = await self._create_connection_transport(
33 File "c:\Python310\lib\asyncio\base_events.py", line 1110, in _create_connection_transport
34 await waiter
35 File "c:\Python310\lib\asyncio\sslproto.py", line 528, in data_received
36 ssldata, appdata = self._sslpipe.feed_ssldata(data)
37 File "c:\Python310\lib\asyncio\sslproto.py", line 188, in feed_ssldata
38 self._sslobj.do_handshake()
39 File "c:\Python310\lib\ssl.py", line 974, in do_handshake
40 self._sslobj.do_handshake()
41ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
42
43The above exception was the direct cause of the following exception:
44
45Traceback (most recent call last):
46 File "c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py", line 21, in <module>
47 loop.run_until_complete(main())
48 File "c:\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
49 return future.result()
50 File "c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py", line 12, in main
51 async with session.get("https://python.org") as response:
52 File "c:\Python310\lib\site-packages\aiohttp\client.py", line 1138, in __aenter__
53 self._resp = await self._coro
54 File "c:\Python310\lib\site-packages\aiohttp\client.py", line 535, in _request
55 conn = await self._connector.connect(
56 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 542, in connect
57 proto = await self._create_connection(req, traces, timeout)
58 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 907, in _create_connection
59 _, proto = await self._create_direct_connection(req, traces, timeout)
60 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 1206, in _create_direct_connection
61 raise last_exc
62 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 1175, in _create_direct_connection
63 transp, proto = await self._wrap_create_connection(
64 File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 988, in _wrap_create_connection
65 raise ClientConnectorCertificateError(req.connection_key, exc) from exc
66aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host python.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)')]
67session.get("https://python.org", ssl=False)
68
QUESTION
Newbe on Go - AppEngine - Deploy
Asked 2022-Jan-03 at 22:32I'm new using App Engine, and I would appreciate if someone can clarify this doubt:
How can I be sure that AppEngine in the cloud have the correct version of go I need to have in the cloud?
I have read some articles about installing and downloading the SDK for google on my local machine (and of course, I am able to install the version I need on my machine); but once I have generated my app in Go and I want to deploy it to App Engine in the cloud, how can I be sure Google infrastructure has the correct version?
I want to install Iris Web framework as part of the stack but it requires to go vers 1.14 or superior, Google App Engine standard only provides support for Google 1.11 and 1.12+ so I think I would need to go for the Google App Engine Flexible option, if that were the case, how can I be sure it has or support the Go version I need?... Or Is there some procedure to follow to install it ?
Thanks in advance for your support
ANSWER
Answered 2022-Jan-03 at 21:27With the Flexible environment you have the ability to pin a version rather than using the latest available/supported. In order to do that, you will have to specify in your app.yaml file the exact version you would like it to be:
1runtime: go1.14
2
If you specify only runtime: go
it will pull the latest release available for Go language (which seems to be 1.19).
For more information, please refer to this documentation: https://cloud.google.com/appengine/docs/flexible/go/reference/app-yaml#general
QUESTION
Remix: middleware pattern to run code before loader on every request?
Asked 2021-Dec-27 at 15:20Is there a recommended pattern in Remix for running common code on every request, and potentially adding context data to the request? Like a middleware? A usecase for this might be to do logging or auth, for example.
The one thing I've seen that seems similar to this is loader context via the getLoadContext
API. This lets you populate a context
object which is passed as an arg to all route loaders.
It does work, and initially seems like the way to do this, but the docs for it say...
It's a way to bridge the gap between the adapter's request/response API with your Remix app
This API is an escape hatch, it’s uncommon to need it
...which makes me think otherwise, because
This API is explicitly for custom integrations with the server runtime. But it doesn't seem like middlewares should be specific to the server runtime - they should just be part of the 'application' level as a Remix feature.
Running middlewares is a pretty common pattern in web frameworks!
So, does Remix have any better pattern for middleware that runs before every loader?
ANSWER
Answered 2021-Dec-01 at 15:43There is no way inside Remix to run code before loaders.
As you found out, there is the loader context but it runs even before remix starts to do its job (so you won't know which route modules are matched for example).
You can also run arbitrary code before handing the request to remix in the JS file where you use the adapter for the platform you're deploying to (this depend on the starter you used. This file doesn't exist if you've chosen remix server as your server)
For now it should work for some use cases, but I agree this is a missing feature in remix for now.
QUESTION
Quart framework WARNING:asyncio:Executing
Asked 2021-Dec-23 at 16:24We are using Quart (Flask+asyncio) Python web framework. Every time the request is processed and the response is sent to a client, this (or similar) message is logged:
WARNING:asyncio:Executing <Task pending name='Task-11' coro=<ASGIHTTPConnection.handle_request() running at /usr/local/lib/python3.8/site-packages/quart/asgi.py:102> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f742ba41ee0>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> cb=[_wait.._on_completion() at /usr/local/lib/python3.8/asyncio/tasks.py:518] created at /usr/local/lib/python3.8/site-packages/quart/asgi.py:46> took 2.700 seconds
Since it is WARNING, we are kind of worried about what this could be. Does anyone have any idea why a log like this appears?
Also, I have seen more logs starting <Task pending name...
before. Does anyone know what these logs are?
To replicate a similar log message, it is enough just to do this:
1import time
2
3from quart import Quart
4
5
6app = Quart(__name__)
7
8
9@app.route('/', methods=['POST'])
10async def endpoint():
11 time.sleep(0.5)
12 return '', 200
13
If I set sleep() to a lower value (e.g. 0.05), the log message is not printed out.
ANSWER
Answered 2021-Dec-23 at 16:24asyncio and other event loops require the tasks to yield control back to the event loop periodically so that it can switch to another task and execute tasks concurrently. This warning is indicating that a task is taking a long time between yields, thereby 'blocking' the event loop.
It is likely this is happening as your code is either doing something CPU intensive, or more likely is using non-asyncio IO e.g. using requests. You should investigate this as it will degrade your servers ability to serve multiple requests concurrently.
QUESTION
dial tcp 127.0.0.1:8080: connect: connection refused. go docker app
Asked 2021-Dec-22 at 10:09I have two apps in go language. user_management app, which I run (docker-compose up --build) first, then I run(docker-compose up --build) sport_app. sport_app is dependent from user_management app.
sport_app Dockerfile file as below.
1FROM golang:alpine
2
3RUN apk update && apk upgrade && apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE="debug" \
17 GQL_SERVER_HOST="localhost" \
18 GQL_SERVER_PORT=7777 \
19 ALLOWED_ORIGINS=* \
20 USER_MANAGEMENT_SERVER_URL="http://localhost:8080/user/me" \
21 # GQLGen config
22 GQL_SERVER_GRAPHQL_PATH="graphql" \
23 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH="playground" \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait && ./scripts/run.sh
29
30
sport_app docker-compose.yml file as below.
1FROM golang:alpine
2
3RUN apk update && apk upgrade && apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE="debug" \
17 GQL_SERVER_HOST="localhost" \
18 GQL_SERVER_PORT=7777 \
19 ALLOWED_ORIGINS=* \
20 USER_MANAGEMENT_SERVER_URL="http://localhost:8080/user/me" \
21 # GQLGen config
22 GQL_SERVER_GRAPHQL_PATH="graphql" \
23 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH="playground" \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait && ./scripts/run.sh
29
30version: '3'
31
32volumes:
33 postgres_data:
34 driver: local
35services:
36 go-sports-entities-hierarchy:
37 restart: always
38 build:
39 dockerfile: Dockerfile
40 context: .
41 environment:
42 WAIT_HOSTS: postgres:5432
43 # Web framework config
44 GIN_MODE: debug
45 GQL_SERVER_HOST: go-sports-entities-hierarchy
46 GQL_SERVER_PORT: 7777
47 ALLOWED_ORIGINS: "*"
48 USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49 # GQLGen config
50 GQL_SERVER_GRAPHQL_PATH: graphql
51 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
52 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53 ports:
54 - 7777:7777
55 depends_on:
56 - postgres
57 - redisearch
58 go-sports-events-workflow:
59 restart: always
60 build:
61 dockerfile: Dockerfile
62 context: .
63 environment:
64 WAIT_HOSTS: postgres:5432
65 # Web framework config
66 GIN_MODE: debug
67 GQL_SERVER_HOST: go-sports-events-workflow
68 GQL_SERVER_PORT: 7778
69 ALLOWED_ORIGINS: "*"
70 # GQLGen config
71 GQL_SERVER_GRAPHQL_PATH: graphql
72 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
73 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74 depends_on:
75 - postgres
76 - redisearch
77 - go-sports-entities-hierarchy
78
79
user_management app Dockerfile as below:
1FROM golang:alpine
2
3RUN apk update && apk upgrade && apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE="debug" \
17 GQL_SERVER_HOST="localhost" \
18 GQL_SERVER_PORT=7777 \
19 ALLOWED_ORIGINS=* \
20 USER_MANAGEMENT_SERVER_URL="http://localhost:8080/user/me" \
21 # GQLGen config
22 GQL_SERVER_GRAPHQL_PATH="graphql" \
23 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH="playground" \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait && ./scripts/run.sh
29
30version: '3'
31
32volumes:
33 postgres_data:
34 driver: local
35services:
36 go-sports-entities-hierarchy:
37 restart: always
38 build:
39 dockerfile: Dockerfile
40 context: .
41 environment:
42 WAIT_HOSTS: postgres:5432
43 # Web framework config
44 GIN_MODE: debug
45 GQL_SERVER_HOST: go-sports-entities-hierarchy
46 GQL_SERVER_PORT: 7777
47 ALLOWED_ORIGINS: "*"
48 USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49 # GQLGen config
50 GQL_SERVER_GRAPHQL_PATH: graphql
51 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
52 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53 ports:
54 - 7777:7777
55 depends_on:
56 - postgres
57 - redisearch
58 go-sports-events-workflow:
59 restart: always
60 build:
61 dockerfile: Dockerfile
62 context: .
63 environment:
64 WAIT_HOSTS: postgres:5432
65 # Web framework config
66 GIN_MODE: debug
67 GQL_SERVER_HOST: go-sports-events-workflow
68 GQL_SERVER_PORT: 7778
69 ALLOWED_ORIGINS: "*"
70 # GQLGen config
71 GQL_SERVER_GRAPHQL_PATH: graphql
72 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
73 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74 depends_on:
75 - postgres
76 - redisearch
77 - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85 CGO_ENABLED=0 \
86 GOOS=linux \
87 GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST="127.0.0.1" \
112 APP_PROTOCOL="http" \
113 APP_HOST="localhost" \
114 APP_PORT=8080 \
115 ALLOWED_ORIGINS="*"
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait && /dist/main
125
user_management app docker-compose.yml file as below:
1FROM golang:alpine
2
3RUN apk update && apk upgrade && apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE="debug" \
17 GQL_SERVER_HOST="localhost" \
18 GQL_SERVER_PORT=7777 \
19 ALLOWED_ORIGINS=* \
20 USER_MANAGEMENT_SERVER_URL="http://localhost:8080/user/me" \
21 # GQLGen config
22 GQL_SERVER_GRAPHQL_PATH="graphql" \
23 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH="playground" \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait && ./scripts/run.sh
29
30version: '3'
31
32volumes:
33 postgres_data:
34 driver: local
35services:
36 go-sports-entities-hierarchy:
37 restart: always
38 build:
39 dockerfile: Dockerfile
40 context: .
41 environment:
42 WAIT_HOSTS: postgres:5432
43 # Web framework config
44 GIN_MODE: debug
45 GQL_SERVER_HOST: go-sports-entities-hierarchy
46 GQL_SERVER_PORT: 7777
47 ALLOWED_ORIGINS: "*"
48 USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49 # GQLGen config
50 GQL_SERVER_GRAPHQL_PATH: graphql
51 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
52 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53 ports:
54 - 7777:7777
55 depends_on:
56 - postgres
57 - redisearch
58 go-sports-events-workflow:
59 restart: always
60 build:
61 dockerfile: Dockerfile
62 context: .
63 environment:
64 WAIT_HOSTS: postgres:5432
65 # Web framework config
66 GIN_MODE: debug
67 GQL_SERVER_HOST: go-sports-events-workflow
68 GQL_SERVER_PORT: 7778
69 ALLOWED_ORIGINS: "*"
70 # GQLGen config
71 GQL_SERVER_GRAPHQL_PATH: graphql
72 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
73 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74 depends_on:
75 - postgres
76 - redisearch
77 - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85 CGO_ENABLED=0 \
86 GOOS=linux \
87 GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST="127.0.0.1" \
112 APP_PROTOCOL="http" \
113 APP_HOST="localhost" \
114 APP_PORT=8080 \
115 ALLOWED_ORIGINS="*"
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait && /dist/main
125version: '3'
126
127volumes:
128 postgres_data:
129 driver: local
130
131services:
132 postgres:
133 image: postgres
134 volumes:
135 - postgres_data:/var/lib/postgresql/data
136 ports:
137 - 5432:5432
138 go-user-management:
139 restart: always
140 build:
141 dockerfile: Dockerfile
142 context: .
143 environment:
144 # Postgres Details
145 DB_PORT: 5432
146 # APP details
147 APP_PROTOCOL: http
148 APP_HOST: localhost
149 APP_PORT: 8080
150 # System Configuration Details
151 ALLOWED_ORIGINS: "*"
152 ports:
153 - 8080:8080
154 depends_on:
155 - postgres
156
In sport_app I write below code and get error:
1FROM golang:alpine
2
3RUN apk update && apk upgrade && apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE="debug" \
17 GQL_SERVER_HOST="localhost" \
18 GQL_SERVER_PORT=7777 \
19 ALLOWED_ORIGINS=* \
20 USER_MANAGEMENT_SERVER_URL="http://localhost:8080/user/me" \
21 # GQLGen config
22 GQL_SERVER_GRAPHQL_PATH="graphql" \
23 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH="playground" \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait && ./scripts/run.sh
29
30version: '3'
31
32volumes:
33 postgres_data:
34 driver: local
35services:
36 go-sports-entities-hierarchy:
37 restart: always
38 build:
39 dockerfile: Dockerfile
40 context: .
41 environment:
42 WAIT_HOSTS: postgres:5432
43 # Web framework config
44 GIN_MODE: debug
45 GQL_SERVER_HOST: go-sports-entities-hierarchy
46 GQL_SERVER_PORT: 7777
47 ALLOWED_ORIGINS: "*"
48 USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49 # GQLGen config
50 GQL_SERVER_GRAPHQL_PATH: graphql
51 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
52 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53 ports:
54 - 7777:7777
55 depends_on:
56 - postgres
57 - redisearch
58 go-sports-events-workflow:
59 restart: always
60 build:
61 dockerfile: Dockerfile
62 context: .
63 environment:
64 WAIT_HOSTS: postgres:5432
65 # Web framework config
66 GIN_MODE: debug
67 GQL_SERVER_HOST: go-sports-events-workflow
68 GQL_SERVER_PORT: 7778
69 ALLOWED_ORIGINS: "*"
70 # GQLGen config
71 GQL_SERVER_GRAPHQL_PATH: graphql
72 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
73 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74 depends_on:
75 - postgres
76 - redisearch
77 - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85 CGO_ENABLED=0 \
86 GOOS=linux \
87 GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST="127.0.0.1" \
112 APP_PROTOCOL="http" \
113 APP_HOST="localhost" \
114 APP_PORT=8080 \
115 ALLOWED_ORIGINS="*"
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait && /dist/main
125version: '3'
126
127volumes:
128 postgres_data:
129 driver: local
130
131services:
132 postgres:
133 image: postgres
134 volumes:
135 - postgres_data:/var/lib/postgresql/data
136 ports:
137 - 5432:5432
138 go-user-management:
139 restart: always
140 build:
141 dockerfile: Dockerfile
142 context: .
143 environment:
144 # Postgres Details
145 DB_PORT: 5432
146 # APP details
147 APP_PROTOCOL: http
148 APP_HOST: localhost
149 APP_PORT: 8080
150 # System Configuration Details
151 ALLOWED_ORIGINS: "*"
152 ports:
153 - 8080:8080
154 depends_on:
155 - postgres
156client := resty.New()
157resp, err := client.R().SetHeader("Content-Type", "application/json").SetHeader("Authorization", "Bearer "+token).Get("http://localhost:8080/user/me")
158
Error is: Get "http://localhost:8080/user/me": dial tcp 127.0.0.1:8080: connect: connection refused:" This API(http://localhost:8080/user/me) is written in the user_management app and this is working, I check with the postman. I already read this question answers, but can not solve my problem. I am new to docker, please help.
ANSWER
Answered 2021-Dec-22 at 10:09For communicating between multiple docker-compose
clients, you need to make sure that the containers you want to talk to each other are on the same network.
For example, (edited for brevity) here you have one of the docker-compose.yml
1FROM golang:alpine
2
3RUN apk update && apk upgrade && apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE="debug" \
17 GQL_SERVER_HOST="localhost" \
18 GQL_SERVER_PORT=7777 \
19 ALLOWED_ORIGINS=* \
20 USER_MANAGEMENT_SERVER_URL="http://localhost:8080/user/me" \
21 # GQLGen config
22 GQL_SERVER_GRAPHQL_PATH="graphql" \
23 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH="playground" \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait && ./scripts/run.sh
29
30version: '3'
31
32volumes:
33 postgres_data:
34 driver: local
35services:
36 go-sports-entities-hierarchy:
37 restart: always
38 build:
39 dockerfile: Dockerfile
40 context: .
41 environment:
42 WAIT_HOSTS: postgres:5432
43 # Web framework config
44 GIN_MODE: debug
45 GQL_SERVER_HOST: go-sports-entities-hierarchy
46 GQL_SERVER_PORT: 7777
47 ALLOWED_ORIGINS: "*"
48 USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49 # GQLGen config
50 GQL_SERVER_GRAPHQL_PATH: graphql
51 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
52 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53 ports:
54 - 7777:7777
55 depends_on:
56 - postgres
57 - redisearch
58 go-sports-events-workflow:
59 restart: always
60 build:
61 dockerfile: Dockerfile
62 context: .
63 environment:
64 WAIT_HOSTS: postgres:5432
65 # Web framework config
66 GIN_MODE: debug
67 GQL_SERVER_HOST: go-sports-events-workflow
68 GQL_SERVER_PORT: 7778
69 ALLOWED_ORIGINS: "*"
70 # GQLGen config
71 GQL_SERVER_GRAPHQL_PATH: graphql
72 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
73 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74 depends_on:
75 - postgres
76 - redisearch
77 - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85 CGO_ENABLED=0 \
86 GOOS=linux \
87 GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST="127.0.0.1" \
112 APP_PROTOCOL="http" \
113 APP_HOST="localhost" \
114 APP_PORT=8080 \
115 ALLOWED_ORIGINS="*"
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait && /dist/main
125version: '3'
126
127volumes:
128 postgres_data:
129 driver: local
130
131services:
132 postgres:
133 image: postgres
134 volumes:
135 - postgres_data:/var/lib/postgresql/data
136 ports:
137 - 5432:5432
138 go-user-management:
139 restart: always
140 build:
141 dockerfile: Dockerfile
142 context: .
143 environment:
144 # Postgres Details
145 DB_PORT: 5432
146 # APP details
147 APP_PROTOCOL: http
148 APP_HOST: localhost
149 APP_PORT: 8080
150 # System Configuration Details
151 ALLOWED_ORIGINS: "*"
152 ports:
153 - 8080:8080
154 depends_on:
155 - postgres
156client := resty.New()
157resp, err := client.R().SetHeader("Content-Type", "application/json").SetHeader("Authorization", "Bearer "+token).Get("http://localhost:8080/user/me")
158# sport_app docker-compose.yml
159version: '3'
160services:
161 go-sports-entities-hierarchy:
162 ...
163 networks:
164 - some-net
165 go-sports-events-workflow
166 ...
167 networks:
168 - some-net
169networks:
170 some-net:
171 driver: bridge
172
And the other docker-compose.yml
1FROM golang:alpine
2
3RUN apk update && apk upgrade && apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE="debug" \
17 GQL_SERVER_HOST="localhost" \
18 GQL_SERVER_PORT=7777 \
19 ALLOWED_ORIGINS=* \
20 USER_MANAGEMENT_SERVER_URL="http://localhost:8080/user/me" \
21 # GQLGen config
22 GQL_SERVER_GRAPHQL_PATH="graphql" \
23 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH="playground" \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait && ./scripts/run.sh
29
30version: '3'
31
32volumes:
33 postgres_data:
34 driver: local
35services:
36 go-sports-entities-hierarchy:
37 restart: always
38 build:
39 dockerfile: Dockerfile
40 context: .
41 environment:
42 WAIT_HOSTS: postgres:5432
43 # Web framework config
44 GIN_MODE: debug
45 GQL_SERVER_HOST: go-sports-entities-hierarchy
46 GQL_SERVER_PORT: 7777
47 ALLOWED_ORIGINS: "*"
48 USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49 # GQLGen config
50 GQL_SERVER_GRAPHQL_PATH: graphql
51 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
52 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53 ports:
54 - 7777:7777
55 depends_on:
56 - postgres
57 - redisearch
58 go-sports-events-workflow:
59 restart: always
60 build:
61 dockerfile: Dockerfile
62 context: .
63 environment:
64 WAIT_HOSTS: postgres:5432
65 # Web framework config
66 GIN_MODE: debug
67 GQL_SERVER_HOST: go-sports-events-workflow
68 GQL_SERVER_PORT: 7778
69 ALLOWED_ORIGINS: "*"
70 # GQLGen config
71 GQL_SERVER_GRAPHQL_PATH: graphql
72 GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: "true"
73 GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74 depends_on:
75 - postgres
76 - redisearch
77 - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85 CGO_ENABLED=0 \
86 GOOS=linux \
87 GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST="127.0.0.1" \
112 APP_PROTOCOL="http" \
113 APP_HOST="localhost" \
114 APP_PORT=8080 \
115 ALLOWED_ORIGINS="*"
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait && /dist/main
125version: '3'
126
127volumes:
128 postgres_data:
129 driver: local
130
131services:
132 postgres:
133 image: postgres
134 volumes:
135 - postgres_data:/var/lib/postgresql/data
136 ports:
137 - 5432:5432
138 go-user-management:
139 restart: always
140 build:
141 dockerfile: Dockerfile
142 context: .
143 environment:
144 # Postgres Details
145 DB_PORT: 5432
146 # APP details
147 APP_PROTOCOL: http
148 APP_HOST: localhost
149 APP_PORT: 8080
150 # System Configuration Details
151 ALLOWED_ORIGINS: "*"
152 ports:
153 - 8080:8080
154 depends_on:
155 - postgres
156client := resty.New()
157resp, err := client.R().SetHeader("Content-Type", "application/json").SetHeader("Authorization", "Bearer "+token).Get("http://localhost:8080/user/me")
158# sport_app docker-compose.yml
159version: '3'
160services:
161 go-sports-entities-hierarchy:
162 ...
163 networks:
164 - some-net
165 go-sports-events-workflow
166 ...
167 networks:
168 - some-net
169networks:
170 some-net:
171 driver: bridge
172# user_management app docker-compose.yml
173version: '3'
174services:
175 postgres:
176 ...
177 networks:
178 - some-net
179 go-user-management
180 ...
181 networks:
182 - some-net
183networks:
184 some-net:
185 external: true
186
Note: Your app’s network is given a name based on the project name
, which is based on the name of the directory it lives in, in this case a prefix user_
was added.
They can then talk to each other using the service name, i.e. go-user-management
, etc.
You can, after running the docker-compose up --build
commands, run the docker network ls
command to see it, then docker network inspect bridge
, etc.
QUESTION
VS2017 crashes with 'FileNotFoundEx: System.Runtime.CompilerServices.Unsafe, V=4.0.4.1' upon loading any project
Asked 2021-Dec-21 at 16:18Sorry for a lengthy one, but I'm in dire straits - just trying to provide all details upfront.
This Fri (2021-Nov-12) after a restart of Visual Studio 2017 it began crashing without notice while opening existing solutions. This worked perfectly fine at least a week ago (after last Win10 Update KB5006670 on 2021-Nov-05 - followed by a reboot). Trying to load old solutions (which haven't been touched for 2+ years) results in exactly the same behavior:
you get a glimpse of "Loading Project .." windows (not sure if it goes through all projects in a solution), then suddenly the main VS window disappears and .. that's it.
VStudio's configuration has not been touched at least for a year. No explicit updates/patches or NuGet packages either. By itself VS starts and shows the main window with usual Start page. But I cannot load any solution or project.
The very first related Event Log entry:
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53
was followed by these 3:
1)
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10:
122
This pattern of 3 entries with same suspects repeated several times while I was trying to load solutions.
In the last triple it had ServiceHub.RoslynCodeAnalysisService32.exe as the faulting app:
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10:
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127 at System.Threading.CancellationToken.ThrowOperationCanceledException()
128 at Microsoft.CodeAnalysis.Remote.Extensions.<InvokeAsync>d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.<RunServiceAsync>d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136 at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.<RequestAssetsAsync>d__2.MoveNext()
137Stack:
138 at System.Environment.FailFast(System.String, System.Exception)
139 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
142 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
145 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150 at System.Threading.Tasks.Task.FinishContinuations()
151 at System.Threading.Tasks.Task.FinishStageThree()
152 at System.Threading.Tasks.Task.CancellationCleanupLogic()
153 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+<RunServiceAsync>d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161 at System.Threading.Tasks.Task.FinishContinuations()
162 at System.Threading.Tasks.Task.FinishStageThree()
163 at System.Threading.Tasks.Task.CancellationCleanupLogic()
164 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166 at Microsoft.CodeAnalysis.Remote.Extensions+<InvokeAsync>d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172 at System.Threading.Tasks.Task.FinishContinuations()
173 at System.Threading.Tasks.Task.FinishStageThree()
174 at System.Threading.Tasks.Task.CancellationCleanupLogic()
175 at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176 at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2<System.IAsyncResult,System.Threading.Tasks.VoidTaskResult>, System.Action`1<System.IAsyncResult>, System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>, Boolean)
177 at System.Threading.Tasks.TaskFactory`1+<>c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<FromAsyncImpl>b__0(System.IAsyncResult)
178 at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179 at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10:
208
The last one (today's first):
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10:
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127 at System.Threading.CancellationToken.ThrowOperationCanceledException()
128 at Microsoft.CodeAnalysis.Remote.Extensions.<InvokeAsync>d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.<RunServiceAsync>d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136 at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.<RequestAssetsAsync>d__2.MoveNext()
137Stack:
138 at System.Environment.FailFast(System.String, System.Exception)
139 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
142 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
145 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150 at System.Threading.Tasks.Task.FinishContinuations()
151 at System.Threading.Tasks.Task.FinishStageThree()
152 at System.Threading.Tasks.Task.CancellationCleanupLogic()
153 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+<RunServiceAsync>d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161 at System.Threading.Tasks.Task.FinishContinuations()
162 at System.Threading.Tasks.Task.FinishStageThree()
163 at System.Threading.Tasks.Task.CancellationCleanupLogic()
164 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166 at Microsoft.CodeAnalysis.Remote.Extensions+<InvokeAsync>d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172 at System.Threading.Tasks.Task.FinishContinuations()
173 at System.Threading.Tasks.Task.FinishStageThree()
174 at System.Threading.Tasks.Task.CancellationCleanupLogic()
175 at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176 at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2<System.IAsyncResult,System.Threading.Tasks.VoidTaskResult>, System.Action`1<System.IAsyncResult>, System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>, Boolean)
177 at System.Threading.Tasks.TaskFactory`1+<>c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<FromAsyncImpl>b__0(System.IAsyncResult)
178 at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179 at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10:
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214 at System.Threading.Tasks.ValueTask`1.AsTask()
215 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
217 at System.Threading.Tasks.Task`1.InnerInvoke()
218 at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226 at System.Environment.FailFast(System.String, System.Exception)
227 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
229 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232 at System.Threading.Tasks.Task.Execute()
233 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242 at System.Threading.Tasks.Task.FinishContinuations()
243 at System.Threading.Tasks.Task.FinishStageThree()
244 at System.Threading.Tasks.Task.FinishStageTwo()
245 at System.Threading.Tasks.Task.Finish(Boolean)
246 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251 at System.Threading.Tasks.Task.FinishContinuations()
252 at System.Threading.Tasks.Task.FinishStageThree()
253 at System.Threading.Tasks.Task.FinishStageTwo()
254 at System.Threading.Tasks.Task.Finish(Boolean)
255 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258 at System.Threading.ThreadPoolWorkQueue.Dispatch()
259 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260
Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker() seems to be a common fault catcher, so my guess is the issue has smth to do with background code analysis, launched upon loading a solution. Who broke it and how?
Searching for the error message System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
gave me the following links: 1, 2, 3, 4, 5.
But none of those describe my scenario. I do not have any [known] dependency on that library in any of my projects. Until Fri I wasn't even aware of it!
Prior to trying a possible remedy, suggested in 3's accepted answer ("the error went away after I ran a NuGet update for that DLL"), I want to understand, what the hell happened (and how!)? I do not have an explicit entry for such NuGet package in my list. I did not install or change anything recently.
This fiasco is precisely the reason why I try to keep rarely-changing [=> known & stable] development environment.
Searching for System.Runtime.CompilerServices.Unsafe.dll
on the HDD produces the following:
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10:
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127 at System.Threading.CancellationToken.ThrowOperationCanceledException()
128 at Microsoft.CodeAnalysis.Remote.Extensions.<InvokeAsync>d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.<RunServiceAsync>d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136 at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.<RequestAssetsAsync>d__2.MoveNext()
137Stack:
138 at System.Environment.FailFast(System.String, System.Exception)
139 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
142 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
145 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150 at System.Threading.Tasks.Task.FinishContinuations()
151 at System.Threading.Tasks.Task.FinishStageThree()
152 at System.Threading.Tasks.Task.CancellationCleanupLogic()
153 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+<RunServiceAsync>d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161 at System.Threading.Tasks.Task.FinishContinuations()
162 at System.Threading.Tasks.Task.FinishStageThree()
163 at System.Threading.Tasks.Task.CancellationCleanupLogic()
164 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166 at Microsoft.CodeAnalysis.Remote.Extensions+<InvokeAsync>d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172 at System.Threading.Tasks.Task.FinishContinuations()
173 at System.Threading.Tasks.Task.FinishStageThree()
174 at System.Threading.Tasks.Task.CancellationCleanupLogic()
175 at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176 at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2<System.IAsyncResult,System.Threading.Tasks.VoidTaskResult>, System.Action`1<System.IAsyncResult>, System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>, Boolean)
177 at System.Threading.Tasks.TaskFactory`1+<>c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<FromAsyncImpl>b__0(System.IAsyncResult)
178 at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179 at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10:
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214 at System.Threading.Tasks.ValueTask`1.AsTask()
215 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
217 at System.Threading.Tasks.Task`1.InnerInvoke()
218 at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226 at System.Environment.FailFast(System.String, System.Exception)
227 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
229 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232 at System.Threading.Tasks.Task.Execute()
233 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242 at System.Threading.Tasks.Task.FinishContinuations()
243 at System.Threading.Tasks.Task.FinishStageThree()
244 at System.Threading.Tasks.Task.FinishStageTwo()
245 at System.Threading.Tasks.Task.Finish(Boolean)
246 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251 at System.Threading.Tasks.Task.FinishContinuations()
252 at System.Threading.Tasks.Task.FinishStageThree()
253 at System.Threading.Tasks.Task.FinishStageTwo()
254 at System.Threading.Tasks.Task.Finish(Boolean)
255 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258 at System.Threading.ThreadPoolWorkQueue.Dispatch()
259 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260C:\>dir System.Runtime.CompilerServices.Unsafe.* /s /n
261
262C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-sql-cache\2.1.1\tools\netcoreapp2.1\any
263 2018-Sep-20 14:48 14,712
264
265C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-user-secrets\2.1.1\tools\netcoreapp2.1\any
266 2018-Sep-20 14:48 14,928
267
268C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0
269 2018-Nov-08 16:14 62,144 system.runtime.compilerservices.unsafe.4.4.0.nupkg
270
271C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard1.0
272 2018-Nov-08 16:14 21,792
273
274C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
275 2018-Nov-08 16:14 21,944
276
277C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard1.0
278 2018-Nov-08 16:14 22,968
279
280C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard2.0
281 2018-Nov-08 16:14 23,480
282
283C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0
284 2018-Nov-08 16:10 87,453 system.runtime.compilerservices.unsafe.4.5.0.nupkg
285
286C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netcoreapp2.0
287 2018-Nov-08 16:10 21,648
288
289C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard1.0
290 2018-Nov-08 16:10 22,160
291
292C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard2.0
293 2018-Nov-08 16:10 22,160
294
295C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard1.0
296 2018-Nov-08 16:10 23,176
297
298C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard2.0
299 2018-Nov-08 16:10 23,696
300
301C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1
302 2018-Nov-08 16:10 87,219 system.runtime.compilerservices.unsafe.4.5.1.nupkg
303
304C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netcoreapp2.0
305 2018-Nov-08 16:11 21,640
306
307C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard1.0
308 2018-Nov-08 16:11 22,160
309
310C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard2.0
311 2018-Nov-08 16:11 22,184
312
313C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard1.0
314 2018-Nov-08 16:11 23,720
315
316C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard2.0
317 2018-Nov-08 16:11 24,208
318
319C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.1.5
320 2018-Sep-20 15:08 19,536 4.6.26919.2
321
322C:\Program Files\dotnet\store\x64\netcoreapp2.0\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
323 2017-Jul-25 00:57 17,416
324
325C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe
326 2021-Jul-01 06:45 16,768 4.6.28619.1
327
328C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneAppProxy
329 2021-Oct-19 05:48 18,824 4.700.21.47101
330
331C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneServer
332 2020-Jun-13 17:25 17,000 4.700.20.12001
333
334C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\001ss942.rgs
335 2021-May-20 04:28 16,768 5.0.20.51904 [RedGate.SQLSearch ?]
336
337C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\ph2houvf.kuk
338 2019-Sep-07 04:28 21,792 ?? no version ?? [MS VS CloudExplorer]
339
VStudio's Help About shows the following version numbers:
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10:
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127 at System.Threading.CancellationToken.ThrowOperationCanceledException()
128 at Microsoft.CodeAnalysis.Remote.Extensions.<InvokeAsync>d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.<RunServiceAsync>d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136 at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.<RequestAssetsAsync>d__2.MoveNext()
137Stack:
138 at System.Environment.FailFast(System.String, System.Exception)
139 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
142 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
145 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150 at System.Threading.Tasks.Task.FinishContinuations()
151 at System.Threading.Tasks.Task.FinishStageThree()
152 at System.Threading.Tasks.Task.CancellationCleanupLogic()
153 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+<RunServiceAsync>d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161 at System.Threading.Tasks.Task.FinishContinuations()
162 at System.Threading.Tasks.Task.FinishStageThree()
163 at System.Threading.Tasks.Task.CancellationCleanupLogic()
164 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166 at Microsoft.CodeAnalysis.Remote.Extensions+<InvokeAsync>d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172 at System.Threading.Tasks.Task.FinishContinuations()
173 at System.Threading.Tasks.Task.FinishStageThree()
174 at System.Threading.Tasks.Task.CancellationCleanupLogic()
175 at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176 at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2<System.IAsyncResult,System.Threading.Tasks.VoidTaskResult>, System.Action`1<System.IAsyncResult>, System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>, Boolean)
177 at System.Threading.Tasks.TaskFactory`1+<>c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<FromAsyncImpl>b__0(System.IAsyncResult)
178 at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179 at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10:
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214 at System.Threading.Tasks.ValueTask`1.AsTask()
215 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
217 at System.Threading.Tasks.Task`1.InnerInvoke()
218 at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226 at System.Environment.FailFast(System.String, System.Exception)
227 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
229 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232 at System.Threading.Tasks.Task.Execute()
233 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242 at System.Threading.Tasks.Task.FinishContinuations()
243 at System.Threading.Tasks.Task.FinishStageThree()
244 at System.Threading.Tasks.Task.FinishStageTwo()
245 at System.Threading.Tasks.Task.Finish(Boolean)
246 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251 at System.Threading.Tasks.Task.FinishContinuations()
252 at System.Threading.Tasks.Task.FinishStageThree()
253 at System.Threading.Tasks.Task.FinishStageTwo()
254 at System.Threading.Tasks.Task.Finish(Boolean)
255 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258 at System.Threading.ThreadPoolWorkQueue.Dispatch()
259 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260C:\>dir System.Runtime.CompilerServices.Unsafe.* /s /n
261
262C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-sql-cache\2.1.1\tools\netcoreapp2.1\any
263 2018-Sep-20 14:48 14,712
264
265C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-user-secrets\2.1.1\tools\netcoreapp2.1\any
266 2018-Sep-20 14:48 14,928
267
268C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0
269 2018-Nov-08 16:14 62,144 system.runtime.compilerservices.unsafe.4.4.0.nupkg
270
271C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard1.0
272 2018-Nov-08 16:14 21,792
273
274C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
275 2018-Nov-08 16:14 21,944
276
277C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard1.0
278 2018-Nov-08 16:14 22,968
279
280C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard2.0
281 2018-Nov-08 16:14 23,480
282
283C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0
284 2018-Nov-08 16:10 87,453 system.runtime.compilerservices.unsafe.4.5.0.nupkg
285
286C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netcoreapp2.0
287 2018-Nov-08 16:10 21,648
288
289C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard1.0
290 2018-Nov-08 16:10 22,160
291
292C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard2.0
293 2018-Nov-08 16:10 22,160
294
295C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard1.0
296 2018-Nov-08 16:10 23,176
297
298C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard2.0
299 2018-Nov-08 16:10 23,696
300
301C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1
302 2018-Nov-08 16:10 87,219 system.runtime.compilerservices.unsafe.4.5.1.nupkg
303
304C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netcoreapp2.0
305 2018-Nov-08 16:11 21,640
306
307C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard1.0
308 2018-Nov-08 16:11 22,160
309
310C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard2.0
311 2018-Nov-08 16:11 22,184
312
313C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard1.0
314 2018-Nov-08 16:11 23,720
315
316C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard2.0
317 2018-Nov-08 16:11 24,208
318
319C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.1.5
320 2018-Sep-20 15:08 19,536 4.6.26919.2
321
322C:\Program Files\dotnet\store\x64\netcoreapp2.0\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
323 2017-Jul-25 00:57 17,416
324
325C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe
326 2021-Jul-01 06:45 16,768 4.6.28619.1
327
328C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneAppProxy
329 2021-Oct-19 05:48 18,824 4.700.21.47101
330
331C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneServer
332 2020-Jun-13 17:25 17,000 4.700.20.12001
333
334C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\001ss942.rgs
335 2021-May-20 04:28 16,768 5.0.20.51904 [RedGate.SQLSearch ?]
336
337C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\ph2houvf.kuk
338 2019-Sep-07 04:28 21,792 ?? no version ?? [MS VS CloudExplorer]
339Microsoft Visual Studio Professional 2017
340Version 15.8.9
341VisualStudio.15.Release/15.8.9+28010.2050
342Microsoft .NET Framework
343Version 4.8.04084
344
345ASP.NET and Web Tools 2017 15.8.05085.0
346ASP.NET Core Razor Language Services 15.8.31590
347ASP.NET Web Frameworks and Tools 2017 5.2.60618.0
348C# Tools 2.9.0-beta8-63208-01
349NuGet Package Manager 4.6.0
350Redgate SQL Search 3.5.5.2703
351SQL Server Data Tools 15.1.61808.07020
352Xamarin 4.11.0.779 (d15-8@ff915e800)
353Xamarin Designer 4.15.12 (d7ff6f39c)
354Xamarin Templates 1.1.118 (4217ee9)
355Xamarin.Android SDK 9.0.0.19 (HEAD/a8a3b0ec7)
356
ANSWER
Answered 2021-Dec-21 at 16:18Sorry it took so long. Was under a gun to finish a project..
The root cause of the problem turned out to be ICSharpCode.CodeConverter v.8.4.1.0!
Wow, of all the pieces installed (which aren't that many)..
On a hunch (since the problem was local to Visual Studio) I started looking at Tools and Extensions, and noticed on this component the Date Installed
being past the most recent Windows Update! The Automatically update this extension
checkbox was checked (by default?).
So it must have silently updated upon VS restart?!
Granted, updates are useful and sometimes necessary. But they also may introduce problems. Performing updates automatically is one thing. But not informing the user about it is bad!
Here's an excerpt from the C:\TEMP\VSIXInstaller_f0335270-1a19-4b71-b74b-e50511bcd107.log
:
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7 at System.Threading.Tasks.ValueTask`1.AsTask()
8 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
10 at System.Threading.Tasks.Task`1.InnerInvoke()
11 at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19 at System.Environment.FailFast(System.String, System.Exception)
20 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
22 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25 at System.Threading.Tasks.Task.Execute()
26 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35 at System.Threading.Tasks.Task.FinishContinuations()
36 at System.Threading.Tasks.Task.FinishStageThree()
37 at System.Threading.Tasks.Task.FinishStageTwo()
38 at System.Threading.Tasks.Task.Finish(Boolean)
39 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44 at System.Threading.Tasks.Task.FinishContinuations()
45 at System.Threading.Tasks.Task.FinishStageThree()
46 at System.Threading.Tasks.Task.FinishStageTwo()
47 at System.Threading.Tasks.Task.Finish(Boolean)
48 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51 at System.Threading.ThreadPoolWorkQueue.Dispatch()
52 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59 at System.Threading.Tasks.ValueTask`1.AsTask()
60 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.<GetContainedSyntaxNodesAsync>d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.<GetGraphAsync>d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73 at System.Environment.FailFast(System.String, System.Exception)
74 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
76 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
78 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81 at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+<>c__DisplayClass14_0.<PopulateContextGraphAsync>b__1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]>)
82 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task)
83 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass3_0.<SafeContinueWith>g__continuationFunction|0(System.Threading.Tasks.Task)
84 at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>g__outerFunction|0(System.Threading.Tasks.Task)
85 at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86 at System.Threading.Tasks.Task.Execute()
87 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93 at System.Threading.ThreadPoolWorkQueue.Dispatch()
94 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10:
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127 at System.Threading.CancellationToken.ThrowOperationCanceledException()
128 at Microsoft.CodeAnalysis.Remote.Extensions.<InvokeAsync>d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.<RunServiceAsync>d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136 at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.<RequestAssetsAsync>d__2.MoveNext()
137Stack:
138 at System.Environment.FailFast(System.String, System.Exception)
139 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
142 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144 at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+<RequestAssetsAsync>d__2.MoveNext()
145 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150 at System.Threading.Tasks.Task.FinishContinuations()
151 at System.Threading.Tasks.Task.FinishStageThree()
152 at System.Threading.Tasks.Task.CancellationCleanupLogic()
153 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155 at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+<RunServiceAsync>d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161 at System.Threading.Tasks.Task.FinishContinuations()
162 at System.Threading.Tasks.Task.FinishStageThree()
163 at System.Threading.Tasks.Task.CancellationCleanupLogic()
164 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166 at Microsoft.CodeAnalysis.Remote.Extensions+<InvokeAsync>d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172 at System.Threading.Tasks.Task.FinishContinuations()
173 at System.Threading.Tasks.Task.FinishStageThree()
174 at System.Threading.Tasks.Task.CancellationCleanupLogic()
175 at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176 at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2<System.IAsyncResult,System.Threading.Tasks.VoidTaskResult>, System.Action`1<System.IAsyncResult>, System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>, Boolean)
177 at System.Threading.Tasks.TaskFactory`1+<>c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<FromAsyncImpl>b__0(System.IAsyncResult)
178 at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179 at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10:
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214 at System.Threading.Tasks.ValueTask`1.AsTask()
215 at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216 at Microsoft.CodeAnalysis.Host.BackgroundParser.<>c__DisplayClass20_0.<ParseDocumentAsync>b__0()
217 at System.Threading.Tasks.Task`1.InnerInvoke()
218 at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226 at System.Environment.FailFast(System.String, System.Exception)
227 at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
229 at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230 at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232 at System.Threading.Tasks.Task.Execute()
233 at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234 at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235 at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238 at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239 at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240 at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241 at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242 at System.Threading.Tasks.Task.FinishContinuations()
243 at System.Threading.Tasks.Task.FinishStageThree()
244 at System.Threading.Tasks.Task.FinishStageTwo()
245 at System.Threading.Tasks.Task.Finish(Boolean)
246 at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250 at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251 at System.Threading.Tasks.Task.FinishContinuations()
252 at System.Threading.Tasks.Task.FinishStageThree()
253 at System.Threading.Tasks.Task.FinishStageTwo()
254 at System.Threading.Tasks.Task.Finish(Boolean)
255 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256 at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258 at System.Threading.ThreadPoolWorkQueue.Dispatch()
259 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260C:\>dir System.Runtime.CompilerServices.Unsafe.* /s /n
261
262C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-sql-cache\2.1.1\tools\netcoreapp2.1\any
263 2018-Sep-20 14:48 14,712
264
265C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-user-secrets\2.1.1\tools\netcoreapp2.1\any
266 2018-Sep-20 14:48 14,928
267
268C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0
269 2018-Nov-08 16:14 62,144 system.runtime.compilerservices.unsafe.4.4.0.nupkg
270
271C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard1.0
272 2018-Nov-08 16:14 21,792
273
274C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
275 2018-Nov-08 16:14 21,944
276
277C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard1.0
278 2018-Nov-08 16:14 22,968
279
280C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard2.0
281 2018-Nov-08 16:14 23,480
282
283C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0
284 2018-Nov-08 16:10 87,453 system.runtime.compilerservices.unsafe.4.5.0.nupkg
285
286C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netcoreapp2.0
287 2018-Nov-08 16:10 21,648
288
289C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard1.0
290 2018-Nov-08 16:10 22,160
291
292C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard2.0
293 2018-Nov-08 16:10 22,160
294
295C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard1.0
296 2018-Nov-08 16:10 23,176
297
298C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard2.0
299 2018-Nov-08 16:10 23,696
300
301C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1
302 2018-Nov-08 16:10 87,219 system.runtime.compilerservices.unsafe.4.5.1.nupkg
303
304C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netcoreapp2.0
305 2018-Nov-08 16:11 21,640
306
307C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard1.0
308 2018-Nov-08 16:11 22,160
309
310C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard2.0
311 2018-Nov-08 16:11 22,184
312
313C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard1.0
314 2018-Nov-08 16:11 23,720
315
316C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard2.0
317 2018-Nov-08 16:11 24,208
318
319C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.1.5
320 2018-Sep-20 15:08 19,536 4.6.26919.2
321
322C:\Program Files\dotnet\store\x64\netcoreapp2.0\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
323 2017-Jul-25 00:57 17,416
324
325C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe
326 2021-Jul-01 06:45 16,768 4.6.28619.1
327
328C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneAppProxy
329 2021-Oct-19 05:48 18,824 4.700.21.47101
330
331C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneServer
332 2020-Jun-13 17:25 17,000 4.700.20.12001
333
334C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\001ss942.rgs
335 2021-May-20 04:28 16,768 5.0.20.51904 [RedGate.SQLSearch ?]
336
337C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\ph2houvf.kuk
338 2019-Sep-07 04:28 21,792 ?? no version ?? [MS VS CloudExplorer]
339Microsoft Visual Studio Professional 2017
340Version 15.8.9
341VisualStudio.15.Release/15.8.9+28010.2050
342Microsoft .NET Framework
343Version 4.8.04084
344
345ASP.NET and Web Tools 2017 15.8.05085.0
346ASP.NET Core Razor Language Services 15.8.31590
347ASP.NET Web Frameworks and Tools 2017 5.2.60618.0
348C# Tools 2.9.0-beta8-63208-01
349NuGet Package Manager 4.6.0
350Redgate SQL Search 3.5.5.2703
351SQL Server Data Tools 15.1.61808.07020
352Xamarin 4.11.0.779 (d15-8@ff915e800)
353Xamarin Designer 4.15.12 (d7ff6f39c)
354Xamarin Templates 1.1.118 (4217ee9)
355Xamarin.Android SDK 9.0.0.19 (HEAD/a8a3b0ec7)
356Initializing Uninstall...
357Extension Details...
358 Identifier : 7e2a69d6-193b-4cdf-878d-3370d5931942
359 Name : Code Converter (VB - C#)
360 Author : IC#Code
361 Version : 8.4.1.0
362 Description : Convert VB.NET to C# and vice versa with this roslyn based converter
363 Locale : en-US
364 MoreInfoURL : https://github.com/icsharpcode/CodeConverter
365 InstalledByMSI : False
366 SupportedFrameworkVersionRange : [4.6,)
367
368 Supported Products :
369 Microsoft.VisualStudio.Community
370 Version : [15.0,17.0)
371 Microsoft.VisualStudio.Community
372 Version : [17.0,18.0)
373
374 References :
375 Prerequisites :
376 -------------------------------------------------------
377 Identifier : Microsoft.VisualStudio.Component.CoreEditor
378 Name : Visual Studio core editor
379 Version : [15.0.26004.1,)
380
As soon as I removed this, VStudio was able to open/load projects; no restart was needed! Before it would crash even initializing/opening a new empty ones!
While reading the documentation on this converter I also found a very similar bug.
QUESTION
Logging access to Java servlet
Asked 2021-Nov-04 at 02:48I'm currently developing a Java Web application using Servlets. What I need to do is log to a file every access made to the website. To do that, I used Filters. So far, I've made it to the point where I can print everything to the console.
What I now need to do is store that into a file with a maximum of 10.000 entries up to 30 days old (if the maximum entries is achieved, the oldest ones are replaced when a new one is written).
How can I do that?
P.S: I cannot use a database for this assignment
Edit: I am not using a web framework. I can use logging frameworks.
ANSWER
Answered 2021-Nov-04 at 02:48So, this question actually prompted me to investigate whether any of the popular logging frameworks can actually do the task as requested.
While most do rolling logs based on file size and date/time, none of them had an easy way to do a rolling log based on entries in the log file. Also, existing logging frameworks typically store each day (and sometimes smaller units of time) in their own separate file, making for efficient cleanup based on date/time.
With a requirement for a maximum number of lines inside a single file, this necessitates reading the entire file into memory (very inefficient!). When everything, past and present is being written to a single file, removing older entries requires parsing each line for the date/time that entry was written (also, inefficient!).
Below is a simple program to demonstrate that this can be done, but there are some serious problems with this approach:
- Not thread safe (if two threads try to read/write an entry simultaneously, one will be clobbered and the message will be skipped)
- Slurping is bad (ten thousand entries is a lot: can the server slurp all that into memory?)
This is probably suitable for a toy project, a demonstration, or a school assignment.
This is NOT suitable for production applications, or really anything on the web that more than one person is going to use at a time.
In short, if you try to use a handi-craft program that you found on the internet for a mission-critical application that other people depend on, you are going to get exactly what you deserve.
1public static void main(final String[] args) throws Exception
2{
3 final File logFile = new File("C:/", "EverythingInOneBigGiant.log");
4 final int maxDays = 30;
5 final int maxEntries = 10000;
6
7 while (true)
8 {
9 // Just log the current time for this example, also makes parsing real simple
10 final String msg = Instant.now().toString();
11 slurpAndParse(logFile, msg, maxDays, maxEntries);
12
13 // Wait a moment, before writing another entry
14 Thread.sleep(750);
15 }
16}
17
18private static void slurpAndParse(final File f, final String msg, final int maxDays, final int maxEntries)
19 throws Exception
20{
21 // Slurp entire file into this buffer (possibly very large!)
22 // Could crash your server if you run out of memory
23 final StringBuffer sb = new StringBuffer();
24
25 if (f.exists() && f.isFile())
26 {
27 final LocalDateTime now = LocalDateTime.now();
28
29 final long totalLineCount = Files.lines(Paths.get(f.getAbsolutePath())).count();
30 final long startAtLine = (totalLineCount < maxEntries ? 0 : (totalLineCount - maxEntries) + 1);
31 long currentLineCount = 0;
32
33 try (final BufferedReader br = new BufferedReader(new FileReader(f)))
34 {
35 String line;
36 while (null != (line = br.readLine()))
37 {
38 // Ignore all lines before the start counter
39 if (currentLineCount < startAtLine)
40 {
41 ++currentLineCount;
42 continue;
43 }
44
45 // Parsing log data... while writing to the same log... ugh... how hideous
46 final LocalDateTime lineDate = LocalDateTime.parse(line, DateTimeFormatter.ISO_ZONED_DATE_TIME);
47 final Duration timeBetween = Duration.between(lineDate, now);
48 // ... or maybe just use Math.abs() here? I defer to the date/time buffs
49 final long dayDiff = (timeBetween.isNegative() ? timeBetween.negated() : timeBetween).toDays();
50
51 // Only accept lines less than the max age in days
52 if (dayDiff <= maxDays)
53 {
54 sb.append(line);
55 sb.append(System.lineSeparator());
56 }
57 }
58 }
59 }
60
61 System.out.println(msg);
62
63 // Add the new log entry
64 sb.append(msg);
65 sb.append(System.lineSeparator());
66
67 writeLog(f, sb.toString());
68}
69
70private static void writeLog(final File f, final String content) throws IOException
71{
72 try (final Writer out = new FileWriter(f))
73 {
74 out.write(content);
75 }
76}
77
QUESTION
DataTables warning: table id=<my_table_name> - Requested unknown parameter '<my_table_first_column_name>' for row 0, column 0
Asked 2021-Oct-26 at 15:38I am quite new to Javascript, I am working to extend pieces of code implemented by third parts and I have to fill in a table with data using DataTables.
contextThis table is made up of 3 columns: "nested field", "subfields blacklist", "edit", and when filled in with data should look like this:
The data to be filled in columns "nested field" and "subfields blacklist" come from the columns "nested field" and "subfields" of a Postgres database table defined as:
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6
while data from "id" column is not needed in the html table.
problemHowever, I am making some mistakes with Datatables and getting these two error popups when loading the html page (as I click "ok" on the first one, the latter pops up).
DataTables warning: table id=NestedFieldTable - Requested unknown parameter 'nested_field_name' for row 0, column 0. For more information about this error, please see http://datatables.net/tn/4
Note that at this point the table has only one row and not even the "edit" colums is populated with data (this column will be the only one to be successfully populated with data when I close the two error pop-ups).
DataTables warning: table id=NestedFieldTable - Requested unknown parameter 'nested_field_name' for row 0, column 0. For more information about this error, please see http://datatables.net/tn/4
Note that the error message is exactly the same both times.
Here is the html template:
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70
Here is the Javascript to fill in the table with data:
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129
And here is the javascript defining the content of the columns:
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135
Note that the last part of html code, headed by
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135<!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST -->
136
is a modal that allows the user to insert new data into the database table, and it correctly works, except for the fact that the new data is not displayed in the html table (as it is not displayed the ones already existing in the db).
What am I doing wrong? How can I fix it?
question updatethe url /getNestedFields/
in the js code made to populate the html table is bounded to class extractNestedFields
via tornado web framework in this way:
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135<!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST -->
136application = tornado.web.Application([
137 ...
138 (r"/getNestedFields/", extractNestedFields),
139 ...
140])
141
where class extractNestedFields
iis defined as:
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135<!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST -->
136application = tornado.web.Application([
137 ...
138 (r"/getNestedFields/", extractNestedFields),
139 ...
140])
141class extractNestedFields(BaseHandler):
142 @gen.coroutine
143 def post(self):
144 dictionary_nested_field = {}
145 rows = yield testing_database.get_nested_fields()
146 print(rows) #ok
147 if len(rows) > 0:
148 dictionary_nested_field["nested_field"] = rows
149 else:
150 dictionary_nested_field["nested_field"] = []
151 raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152
and when loading the html page, the content of rows
is:
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135<!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST -->
136application = tornado.web.Application([
137 ...
138 (r"/getNestedFields/", extractNestedFields),
139 ...
140])
141class extractNestedFields(BaseHandler):
142 @gen.coroutine
143 def post(self):
144 dictionary_nested_field = {}
145 rows = yield testing_database.get_nested_fields()
146 print(rows) #ok
147 if len(rows) > 0:
148 dictionary_nested_field["nested_field"] = rows
149 else:
150 dictionary_nested_field["nested_field"] = []
151 raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']},
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159
that is the content of my table in the db.
ANSWER
Answered 2021-Oct-26 at 15:38SOLVED
The key data
inside each {}
element of columns_nested_field
variable
(which is necessary to define the title and the data that one wants to fill in the columns of the html table via DataTable)
has to have value equal to
the title of the columns of the db table containing the data that one wants to fill in the html table.
So, since in my case the data I want to fill in the html table comes from the columns nested_field
, subfields
of the db table testing_nested_field_blacklist
,
in the declaration of javascript variable columns_nested_field
(which is necessary to make DataTable work),
I substituted
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135<!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST -->
136application = tornado.web.Application([
137 ...
138 (r"/getNestedFields/", extractNestedFields),
139 ...
140])
141class extractNestedFields(BaseHandler):
142 @gen.coroutine
143 def post(self):
144 dictionary_nested_field = {}
145 rows = yield testing_database.get_nested_fields()
146 print(rows) #ok
147 if len(rows) > 0:
148 dictionary_nested_field["nested_field"] = rows
149 else:
150 dictionary_nested_field["nested_field"] = []
151 raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']},
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159{ "title":"Nested field", data: "nested_field_name"},
160{ "title":"Subfields blacklist", data: "nested_field_blacklist"},
161
with
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135<!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST -->
136application = tornado.web.Application([
137 ...
138 (r"/getNestedFields/", extractNestedFields),
139 ...
140])
141class extractNestedFields(BaseHandler):
142 @gen.coroutine
143 def post(self):
144 dictionary_nested_field = {}
145 rows = yield testing_database.get_nested_fields()
146 print(rows) #ok
147 if len(rows) > 0:
148 dictionary_nested_field["nested_field"] = rows
149 else:
150 dictionary_nested_field["nested_field"] = []
151 raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']},
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159{ "title":"Nested field", data: "nested_field_name"},
160{ "title":"Subfields blacklist", data: "nested_field_blacklist"},
161{ "title":"Nested field", data: "nested_field"},
162{ "title":"Subfields blacklist", data: "subfields"},
163
and now the table is correctly filled in with the data.
updateI've just learned from this thread that the key data
I mentioned above has to have value equal to a field name/key used in the JSON object (that in my script is being generated at line
1CREATE TABLE testing_nested_field_blacklist (
2 id SERIAL NOT NULL UNIQUE,
3 nested_field varchar(100) NOT NULL UNIQUE,
4 subfields varchar(100)[]
5);
6<!-- Topbar Search -->
7<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
8 <div class="input-group">
9 <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
10 <div class="input-group-append">
11 <button class="btn btn-primary" type="button">
12 <i class="fas fa-search fa-sm"></i>
13 </button>
14 </div>
15 </div>
16</form>
17
18<!-- Topbar Navbar -->
19<ul class="navbar-nav ml-auto">
20
21 <div class="topbar-divider d-none d-sm-block"></div>
22
23 <li class="nav-item">
24 <a class="nav-link text-black-50" href="#" data-toggle="modal" data-target="#logoutModal">
25 <i class="fas fa-sign-out-alt mr-2"></i>
26 <span>Logout</span>
27 </a>
28 </li>
29</ul>
30</nav>
31<!-- End of Topbar -->
32
33<!-- Begin Page Content -->
34<div class="container-fluid">
35
36<ol class="breadcrumb shadow-lg">
37 <li class="breadcrumb-item">
38 <a href="/4testing/">Home</a>
39 </li>
40 <li class="breadcrumb-item active">Nested fields and subfields blacklists</li>
41</ol>
42
43<!-- alert messages -->
44<div class="alert alert-success alert-dismissible fade show" role="alert">
45 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
46 <span aria-hidden="true">&times;</span>
47 </button>
48 <strong id="alert-success-title"></strong> <div id="alert-success-detail"></div>
49</div>
50
51<div class="alert alert-danger alert-dismissible fade show" role="alert">
52 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
53 <span aria-hidden="true">&times;</span>
54 </button>
55 <strong id="alert-danger-title"></strong> <div id="alert-danger-detail"></div>
56</div>
57
58<!-- TABELLA NESTED FIELDS -->
59<div class="card shadow mb-4">
60 <div class="card-header py-3">
61 <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-ban" aria-hidden="true"></i> Nested fields and subfields blacklists</h6>
62 </div>
63 <div class="card-body">
64 <div class="table-responsive">
65 <table class="table table-bordered table-hover" id="NestedFieldTable" width="100%" cellspacing="0">
66 </table>
67 </div>
68 </div>
69</div>
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74 // NESTED FIELD
75 NestedFieldTable = $('#NestedFieldTable').DataTable({
76 "destroy": true,
77 "processing":true,
78 "ajax": {
79 "url": '/getNestedFields/',
80 "type":"POST",
81 "dataSrc": "nested_field"
82 },
83 "columns": columns_nested_field,
84 "columnDefs": [
85 {"targets": -1, "data": null, "defaultContent": "<i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'></i><i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField' title='click top delete nested field and blacklist'></i>", "width": "75px"},
86
87 ],
88 "dom": "<'row'<'col-md-6 toolbar_nestedfield'><'col-md-6'fBl>>" +
89 "<'row'<'col-md-6'><'col-md-6'>>" +
90 "<'row'<'col-md-12't>><'row'<'col-md-12'pi>>",
91 "buttons": [
92 {
93 extend: 'collection',
94 text: 'Export',
95 autoClose: true,
96 buttons: [
97 {
98 text: '<i class="fas fa-print"></i> Print',
99 extend: 'print',
100 messageTop: 'Table of nested fields and subfields blacklist.',
101 footer: false
102 }
103 ]
104 },
105 {
106 text: '<i class="fas fa-sync-alt"></i>',
107 titleAttr: 'Refresh table',
108 action: function ( e, dt) {
109 dt.ajax.reload();
110 set_alert_message({"title":"Refresh", "detail":"Table successfully refreshed"}, "success");
111 }
112 }
113 ],
114 "language": {
115 "searchPlaceholder": "Search",
116 "search": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-search fa-fw'></i></span></div>_INPUT_</div></div>",
117 "lengthMenu": "<div class='form-group'><div class='input-group'><div class='input-group-prepend'><span class='input-group-text'><i class='fas fa-list-ul fa-fw'></i></span></div>_MENU_</div></div>",
118 "oPaginate": {
119 sNext: '<span class="pagination-default">&#x276f;</span>',
120 sPrevious: '<span class="pagination-default">&#x276e;</span>'
121 }
122 }
123 });
124 $(".toolbar_nestedfield").html('<button type="button" class="dt-button" title="Click to add a new nested field and blacklist" data-toggle="modal" data-target="#myModalAddNestedField"><i class="fas fa-plus"></i></button>');
125
126...
127
128});
129var columns_nested_field = [
130 // { "title":"ID", data: "nested_field_blacklist_id"},
131 { "title":"Nested field", data: "nested_field_name"},
132 { "title":"Subfields blacklist", data: "nested_field_blacklist"},
133 { "title":"Edit", "orderable": false, "className": 'icon_dt_style'}
134];
135<!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST -->
136application = tornado.web.Application([
137 ...
138 (r"/getNestedFields/", extractNestedFields),
139 ...
140])
141class extractNestedFields(BaseHandler):
142 @gen.coroutine
143 def post(self):
144 dictionary_nested_field = {}
145 rows = yield testing_database.get_nested_fields()
146 print(rows) #ok
147 if len(rows) > 0:
148 dictionary_nested_field["nested_field"] = rows
149 else:
150 dictionary_nested_field["nested_field"] = []
151 raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']},
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']},
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159{ "title":"Nested field", data: "nested_field_name"},
160{ "title":"Subfields blacklist", data: "nested_field_blacklist"},
161{ "title":"Nested field", data: "nested_field"},
162{ "title":"Subfields blacklist", data: "subfields"},
163raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
164
of the post
coroutine method of instance of class extractNestedFields
, one object per row.
Community Discussions contain sources that include Stack Exchange Network
Tutorials and Learning Resources in Web Framework
Tutorials and Learning Resources are not available at this moment for Web Framework