Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

3 Pages<123>
Could not load file or assembly after 4.2.0.7 update
michaelkroes
#21 Posted : Tuesday, December 24, 2019 5:57:12 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
Thanks for all the help so far! We've squashed some bugs but this last one is pretty persistent.

I've been looking at opensource projects that also use Microsoft.Extensions.Identity.Stores, I found one with several thousands tests. This project works fine in NCrunch. This doesn't give me much hope for manually reproducing the issue.

If you would be willing to help me once more there might be another way to diagnose this issue. I suspect the issue is in the json files we generate for the workspaces.

Could you please try:

  • Adding a net core console tool project to your solution
  • Reference the integration test project from the console tool
  • Build the console tool
  • Navigate to ConsoleTool\bin\Debug\netcoreapp3.1 and copy all the json files


  • On the NCrunch Tests window select a failing test (in the integration test project)
  • Right click, Advanced, Browse to selected workspace
  • Navigate to \bin\Debug\netcoreapp3.1 and copy all the json files


Could you send those via the support form or directly to me via michael at ncrunch.net?
tkarlsen
#22 Posted : Wednesday, December 25, 2019 3:41:23 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/30/2017(UTC)
Posts: 19
Location: United States of America

Was thanked: 4 time(s) in 4 post(s)
michaelkroes;14279 wrote:
Thanks for all the help so far! We've squashed some bugs but this last one is pretty persistent.

I've been looking at opensource projects that also use Microsoft.Extensions.Identity.Stores, I found one with several thousands tests. This project works fine in NCrunch. This doesn't give me much hope for manually reproducing the issue.

If you would be willing to help me once more there might be another way to diagnose this issue. I suspect the issue is in the json files we generate for the workspaces.

Could you please try:

  • Adding a net core console tool project to your solution
  • Reference the integration test project from the console tool
  • Build the console tool
  • Navigate to ConsoleTool\bin\Debug\netcoreapp3.1 and copy all the json files


  • On the NCrunch Tests window select a failing test (in the integration test project)
  • Right click, Advanced, Browse to selected workspace
  • Navigate to \bin\Debug\netcoreapp3.1 and copy all the json files


Could you send those via the support form or directly to me via michael at ncrunch.net?


Emailing it to you right now! Hopefully that helps.
1 user thanked tkarlsen for this useful post.
michaelkroes on 12/27/2019(UTC)
michaelkroes
#23 Posted : Friday, December 27, 2019 12:30:56 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
IngemarWard
#24 Posted : Tuesday, January 7, 2020 12:54:33 PM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
Just want to inform that I experience a similar problem.
Was running NCrunch_VS2017_4.2.0.7

Tried downgrading to both NCrunch_VS2017_4.3.0.3 and NCrunch_VS2017_4.3.0.4 downloaded from this thread.
But the problem was still there.

Finally downgraded to NCrunch VS 2017_3.29.0.7.
The problem disappeared and my tests went green again.

Working in ASP.NET Core 2.1 and VS 2017.
Having VS 2019 installed on the machine but not NCrunch for VS 2019.
michaelkroes
#25 Posted : Tuesday, January 7, 2020 1:14:50 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
IngemarWard;14318 wrote:
Just want to inform that I experience a similar problem.
Was running NCrunch_VS2017_4.2.0.7

Tried downgrading to both NCrunch_VS2017_4.3.0.3 and NCrunch_VS2017_4.3.0.4 downloaded from this thread.
But the problem was still there.

Finally downgraded to NCrunch VS 2017_3.29.0.7.
The problem disappeared and my tests went green again.

Working in ASP.NET Core 2.1 and VS 2017.
Having VS 2019 installed on the machine but not NCrunch for VS 2019.


Hi, thanks for posting. Sorry this isn't working for you.

Is there any chance you could convert this into a sample project for us?
IngemarWard
#26 Posted : Wednesday, January 8, 2020 8:27:32 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
michaelkroes;14319 wrote:
IngemarWard;14318 wrote:
Just want to inform that I experience a similar problem.
Was running NCrunch_VS2017_4.2.0.7

Tried downgrading to both NCrunch_VS2017_4.3.0.3 and NCrunch_VS2017_4.3.0.4 downloaded from this thread.
But the problem was still there.

Finally downgraded to NCrunch VS 2017_3.29.0.7.
The problem disappeared and my tests went green again.

Working in ASP.NET Core 2.1 and VS 2017.
Having VS 2019 installed on the machine but not NCrunch for VS 2019.


Hi, thanks for posting. Sorry this isn't working for you.

Is there any chance you could convert this into a sample project for us?


Unfortunately my time schedule does not allow it. But I can give you a short description om my setup, if it helps:

WebApp project that that uses three other projects (dll:s)
One of these projects is hitting a Sql Server and getting data.
Seprate test project of that projects works fine.
But the tests of the webapp that uses the project that hits the database with the same procedures fails when the connection to the database is opened.
The error message and a part of the stack trace is:

an error occured GetVehicleScheduleVersion: System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.TdsParser' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Det går inte att hitta filen.
at Microsoft.Data.SqlClient.TdsParser..cctor()
--- End of inner exception stack trace ---
at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1144
at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1069
at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 154
at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Common\src\Microsoft\Data\ProviderBase\DbConnectionInternal.cs:line 328


And some extra info:
Just changed to version NCrunch_VS2017_4.1.0.1 (instead of NCrunch_VS2017_3.29.0.7 i previously downgraded to). Both are working fine and nog giving me the problem.
michaelkroes
#27 Posted : Thursday, January 9, 2020 6:47:22 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
Thank you very much! I think I've got this reproduced under netcore 2.1. The issue is similar to netcore 2.2+ but will require a different solution. This might take some time to solve properly.

Thanks for you patience.

IngemarWard;14322 wrote:
michaelkroes;14319 wrote:
IngemarWard;14318 wrote:
Just want to inform that I experience a similar problem.
Was running NCrunch_VS2017_4.2.0.7

Tried downgrading to both NCrunch_VS2017_4.3.0.3 and NCrunch_VS2017_4.3.0.4 downloaded from this thread.
But the problem was still there.

Finally downgraded to NCrunch VS 2017_3.29.0.7.
The problem disappeared and my tests went green again.

Working in ASP.NET Core 2.1 and VS 2017.
Having VS 2019 installed on the machine but not NCrunch for VS 2019.


Hi, thanks for posting. Sorry this isn't working for you.

Is there any chance you could convert this into a sample project for us?


Unfortunately my time schedule does not allow it. But I can give you a short description om my setup, if it helps:

WebApp project that that uses three other projects (dll:s)
One of these projects is hitting a Sql Server and getting data.
Seprate test project of that projects works fine.
But the tests of the webapp that uses the project that hits the database with the same procedures fails when the connection to the database is opened.
The error message and a part of the stack trace is:

an error occured GetVehicleScheduleVersion: System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.TdsParser' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Det går inte att hitta filen.
at Microsoft.Data.SqlClient.TdsParser..cctor()
--- End of inner exception stack trace ---
at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1144
at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1069
at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 154
at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Common\src\Microsoft\Data\ProviderBase\DbConnectionInternal.cs:line 328


And some extra info:
Just changed to version NCrunch_VS2017_4.1.0.1 (instead of NCrunch_VS2017_3.29.0.7 i previously downgraded to). Both are working fine and nog giving me the problem.

IngemarWard
#28 Posted : Thursday, January 9, 2020 10:18:34 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
Sounds great!
michaelkroes
#29 Posted : Sunday, January 12, 2020 7:00:12 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
1 user thanked michaelkroes for this useful post.
davetorutek on 1/12/2020(UTC)
davetorutek
#30 Posted : Sunday, January 12, 2020 9:45:40 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/31/2018(UTC)
Posts: 12
Location: New Zealand

Thanks: 3 times
Was thanked: 6 time(s) in 4 post(s)
Using this latest build fixes the issue in our original project (I didn't test any of the other intermediate builds)
1 user thanked davetorutek for this useful post.
michaelkroes on 1/12/2020(UTC)
IngemarWard
#31 Posted : Monday, January 13, 2020 8:59:56 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
I tried vs2017_4.3-0-7.
Unfortunatly same problem as far as I can see.
But now another file cannot be found:
fail: VT.KorSpec.WebAPI.Controllers.TimeTableController[0]
an error occured GetVehicleScheduleVersion: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Det går inte att hitta filen.
File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Text.SBCSCodePageEncoding.LoadManagedCodePage()
at System.Text.CodePagesEncodingProvider.GetEncoding(Int32 codepage)
at System.Text.EncodingProvider.GetEncodingFromProvider(Int32 codepage)
at System.Text.Encoding.GetEncoding(Int32 codepage)
at Microsoft.Data.SqlClient.TdsParser.TryProcessEnvChange(Int32 tokenLength, TdsParserStateObject stateObj, SqlEnvChange& sqlEnvChange) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 2519
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 2014
at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 1679
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1088
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1752
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) in E:\agent1\_work\31\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1408
Remco
#32 Posted : Monday, January 13, 2020 11:42:12 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
IngemarWard;14354 wrote:

Unfortunatly same problem as far as I can see.


I'm sorry to hear that. Is there any chance we can get a copy of the .deps file generated by MSBuild for the test project you're using? This file contains dependency information that we can hopefully use to reproduce the issue on our side. You can obtain this simply by building the test project and looking for the PROJECTNAME.deps.json file in the build output directory. You can submit this file through the NCrunch contact form.
IngemarWard
#33 Posted : Monday, January 13, 2020 1:15:53 PM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
Remco;14355 wrote:
IngemarWard;14354 wrote:

Unfortunatly same problem as far as I can see.


I'm sorry to hear that. Is there any chance we can get a copy of the .deps file generated by MSBuild for the test project you're using? This file contains dependency information that we can hopefully use to reproduce the issue on our side. You can obtain this simply by building the test project and looking for the PROJECTNAME.deps.json file in the build output directory. You can submit this file through the NCrunch contact form.


Sent a support request.
Subject. "File attachment. Request from NCrunch Developer Remco in forum thread."
Refrence in message to this thread

EDIT: I sent the wrong file. Will send the right one...
EDIT2: The new file sent
Subject: "File attachment #2. Request from NCrunch Developer Remco in forum thread."
Remco
#34 Posted : Tuesday, January 14, 2020 1:01:22 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks for sending these through.

I've had a good go today at trying to reproduce this issue using the into in the .deps files you submitted.

Unfortunately, I haven't managed to get this to fail on my side. You have quite a complex structure in your solution with many different packages being referenced and many sub-dependencies. I think this problem might be dependent on not only the list of included packages, but perhaps also the sequence in which they are being loaded.

Sadly, it looks like I will actually needing a failing sample solution to progress further with this problem.

As a potential workaround, does adding a package reference from your test project directly to the System.Runtime.CompilerServices.Unsafe/4.5.1 resolve the issue?
IngemarWard
#35 Posted : Tuesday, January 14, 2020 11:43:10 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
Tried the workaround but that gave me som downgrading warning from

Made a solution copy that reproduces the error.
Zipped it and tried to post it like the previous one.
Subject: "File attachment #3. Request from NCrunch Developer Remco in forum thread"

But when submitting I got an error message:
"Sorry!
The page you tried to access does not exist. Click here to return to the home page of NCrunch.NET."
Tried two times

Did you get it?
Or did the submit form not allow it throuth?
Remco
#36 Posted : Tuesday, January 14, 2020 11:59:43 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
IngemarWard;14362 wrote:

But when submitting I got an error message:
"Sorry!
The page you tried to access does not exist. Click here to return to the home page of NCrunch.NET."
Tried two times

Did you get it?
Or did the submit form not allow it throuth?


I wonder if it might be over the size limit. Could you try emailing it to support at ncrunch dot net?
IngemarWard
#37 Posted : Tuesday, January 14, 2020 2:40:54 PM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
Done!
Remco
#38 Posted : Wednesday, January 15, 2020 12:17:49 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
IngemarWard;14366 wrote:
Done!


Thanks! I've received the package and reproduced the problem more or less as described.

This looks complicated. It might be a few days. I'll let you know as soon as a fix is available.
IngemarWard
#39 Posted : Wednesday, January 15, 2020 6:27:51 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 10
Location: Sweden

Was thanked: 2 time(s) in 1 post(s)
Great!
Remco
#40 Posted : Friday, January 17, 2020 4:08:55 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Users browsing this topic
Guest (2)
3 Pages<123>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.147 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download