Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Designer> Exception type: FileNotFoundException Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0,
 

Pages: 1
Designer
Exception type: FileNotFoundException Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0,
Page:1/1 

  Print all messages in this thread  
Poster Message
sherifr
User



Location:

Joined on:
26-Apr-2018 21:18:02
Posted:
5 posts
# Posted on: 05-Jul-2018 13:21:43. Goto attachments  
Hi, I encounter this error when I try to sync my Relational Model.

Exception message:
-------------------------------
Exception type: FileNotFoundException
Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Attached screenshots of the error and build.

Thanks.
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37476 posts
# Posted on: 05-Jul-2018 15:39:48.  
I think you use an Npgsql version which requires a .NET full version you don't have installed yet, please install .net 4.7.2 and try again

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
sherifr
User



Location:

Joined on:
26-Apr-2018 21:18:02
Posted:
5 posts
# Posted on: 05-Jul-2018 21:16:28.  
I have it already installed and I also, updated the Npgsql driver to 4.0.1.
Still see the problem.
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37476 posts
# Posted on: 06-Jul-2018 11:12:26.  
Could you please click the 'copy to clipboard' button in the exception dialog so you get a stacktrace (just paste it here in a new post). We don't use that assembly so it's something related to npgsql.

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
dodyg
User



Location:

Joined on:
04-Dec-2014 15:48:05
Posted:
30 posts
# Posted on: 07-Jul-2018 14:33:45.  
I also encounter the same problem (https://github.com/npgsql/Npgsql/releases) using Npgsql v4.0.1

Code:

Exception information.
=============================================================
LLBLGen Pro version: v5.4. Build: 5.4.1

Exception details:
=====================
Message: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source: System.Threading.Tasks.Extensions
Stack trace:
at System.Threading.Tasks.ValueTask`1.get_IsCompleted()
at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlConnection.Open()
at SD.LLBLGen.Pro.Gui.Controls.WizardPages.MetaDataRetrievalWizard_Step_ConnectionData.TestConnectionData(Boolean showSuccess)

Inner exception: <null>

  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37476 posts
# Posted on: 08-Jul-2018 09:38:03.  
Looks like a problem with npgsql, but not sure if it's .net full version related. You too have .net 4.7.2 installed?

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
sherifr
User



Location:

Joined on:
26-Apr-2018 21:18:02
Posted:
5 posts
# Posted on: 08-Jul-2018 09:59:48.  
Quote:

Exception information.
=============================================================
LLBLGen Pro version: v5.4. Build: 5.4.1

Exception details:
=====================
Message: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source: System.Threading.Tasks.Extensions
Stack trace:
at System.Threading.Tasks.ValueTask`1.get_IsCompleted()
at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlConnection.Open()
at SD.LLBLGen.Pro.Gui.Controls.WizardPages.MetaDataRetrievalWizard_Step_ConnectionData.TestConnectionData(Boolean showSuccess)

Inner exception: <null>


Also, I opened an issue in the Npgsql repository, but I seem to be not able to answer his question. Kinda took it on my behalf Cool
https://github.com/npgsql/npgsql/issues/2049
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37476 posts
# Posted on: 08-Jul-2018 12:52:00.  
thanks for that Regular Smiley

He wants you to post the C# project file (the csproj file) you created for the project which you used to reproduce the issue as that csproj file (the xml) contains the references you have, he suspects you miss a reference. I think it's something else but don't know what exactly. I replied as well, perhaps that gives more insight to roji what it can be.


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
sherifr
User



Location:

Joined on:
26-Apr-2018 21:18:02
Posted:
5 posts
# Posted on: 08-Jul-2018 12:58:30.  
I know that when I said "I just open a NpgsqlConnection", I was talking about me as LLBLgen designer developer, right Regular Smiley?
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37476 posts
# Posted on: 08-Jul-2018 16:57:05.  
Please see the github thread, it's an issue with the npgsql installer, some assemblies need to be added to the gac to make this work (for the designer at least), i.e. for DbProviderFactories to work

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
dodyg
User



Location:

Joined on:
04-Dec-2014 15:48:05
Posted:
30 posts
# Posted on: 11-Jul-2018 10:36:32.  
This problem is solved with the latest installer Npgsql v4.0.2

https://github.com/npgsql/npgsql/releases
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37476 posts
# Posted on: 11-Jul-2018 16:13:15.  
Thanks for the heads up!

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.