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

Notification

Icon
Error

Corrupt ncrunchproject files
damianh
#1 Posted : Thursday, July 2, 2015 11:05:47 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/5/2014(UTC)
Posts: 23
Location: Netherlands

Thanks: 2 times
Was thanked: 4 time(s) in 4 post(s)
Howdy!

I have this strange problem where I getting corrupted ncrunchproject files, resulting in "Error while reading from configuration file 'C:\dev\{snip}.v2.ncrunchproject', is the file corrupt or in use?"

It happens only in one particular git repository and only for 2 particular projects in the sln (out of 4). It's also repeatable on multiple machines. I can't for the life of me figure out why this is happening. The work around is to delete them and recreate, but then it happens again soon after. I am getting tired of doing this.

Any ideas?


Code:
<ProjectConfiguration>
਍  㰀䈀甀椀氀搀倀爀椀漀爀椀琀礀㸀㄀   㰀⼀䈀甀椀氀搀倀爀椀漀爀椀琀礀㸀ഀഀ
  <CopyReferencedAssembliesToWorkspace>false</CopyReferencedAssembliesToWorkspace>
਍  㰀䌀漀渀猀椀搀攀爀䤀渀挀漀渀挀氀甀猀椀瘀攀吀攀猀琀猀䄀猀倀愀猀猀椀渀最㸀昀愀氀猀攀㰀⼀䌀漀渀猀椀搀攀爀䤀渀挀漀渀挀氀甀猀椀瘀攀吀攀猀琀猀䄀猀倀愀猀猀椀渀最㸀ഀഀ
  <PreloadReferencedAssemblies>false</PreloadReferencedAssemblies>
਍  㰀䄀氀氀漀眀䐀礀渀愀洀椀挀䌀漀搀攀䌀漀渀琀爀愀挀琀䌀栀攀挀欀椀渀最㸀琀爀甀攀㰀⼀䄀氀氀漀眀䐀礀渀愀洀椀挀䌀漀搀攀䌀漀渀琀爀愀挀琀䌀栀攀挀欀椀渀最㸀ഀഀ
  <AllowStaticCodeContractChecking>false</AllowStaticCodeContractChecking>
਍  㰀䄀氀氀漀眀䌀漀搀攀䄀渀愀氀礀猀椀猀㸀昀愀氀猀攀㰀⼀䄀氀氀漀眀䌀漀搀攀䄀渀愀氀礀猀椀猀㸀ഀഀ
  <IgnoreThisComponentCompletely>false</IgnoreThisComponentCompletely>
਍  㰀刀甀渀倀爀攀䈀甀椀氀搀䔀瘀攀渀琀猀㸀昀愀氀猀攀㰀⼀刀甀渀倀爀攀䈀甀椀氀搀䔀瘀攀渀琀猀㸀ഀഀ
  <RunPostBuildEvents>false</RunPostBuildEvents>
਍  㰀倀爀攀瘀椀漀甀猀氀礀䈀甀椀氀琀匀甀挀挀攀猀猀昀甀氀氀礀㸀琀爀甀攀㰀⼀倀爀攀瘀椀漀甀猀氀礀䈀甀椀氀琀匀甀挀挀攀猀猀昀甀氀氀礀㸀ഀഀ
  <InstrumentAssembly>true</InstrumentAssembly>
਍  㰀倀爀攀瘀攀渀琀匀椀最渀椀渀最伀昀䄀猀猀攀洀戀氀礀㸀昀愀氀猀攀㰀⼀倀爀攀瘀攀渀琀匀椀最渀椀渀最伀昀䄀猀猀攀洀戀氀礀㸀ഀഀ
  <AnalyseExecutionTimes>true</AnalyseExecutionTimes>
਍  㰀䐀攀琀攀挀琀匀琀愀挀欀伀瘀攀爀昀氀漀眀㸀琀爀甀攀㰀⼀䐀攀琀攀挀琀匀琀愀挀欀伀瘀攀爀昀氀漀眀㸀ഀഀ
  <IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
਍  㰀䐀攀昀愀甀氀琀吀攀猀琀吀椀洀攀漀甀琀㸀㘀    㰀⼀䐀攀昀愀甀氀琀吀攀猀琀吀椀洀攀漀甀琀㸀ഀഀ
  <UseBuildConfiguration />
਍  㰀唀猀攀䈀甀椀氀搀倀氀愀琀昀漀爀洀 ⼀㸀ഀഀ
  <ProxyProcessPath />
਍  㰀唀猀攀䌀倀唀䄀爀挀栀椀琀攀挀琀甀爀攀㸀䄀甀琀漀䐀攀琀攀挀琀㰀⼀唀猀攀䌀倀唀䄀爀挀栀椀琀攀挀琀甀爀攀㸀ഀഀ
  <MSTestThreadApartmentState>STA</MSTestThreadApartmentState>
਍  㰀䈀甀椀氀搀倀爀漀挀攀猀猀䄀爀挀栀椀琀攀挀琀甀爀攀㸀砀㠀㘀㰀⼀䈀甀椀氀搀倀爀漀挀攀猀猀䄀爀挀栀椀琀攀挀琀甀爀攀㸀ഀഀ
</ProjectConfiguration>
Remco
#2 Posted : Thursday, July 2, 2015 12:22:34 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1287 time(s) in 1194 post(s)
Hi, thanks for sharing this issue.

It looks like the encoding of the file is being corrupted somehow. I can't think of anything NCrunch itself that would do this. Do you think it may be caused by Git not detecting the encoding of the file correctly? I understand it has some known issues when merging Unicode files.
damianh
#3 Posted : Tuesday, July 28, 2015 11:09:25 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/5/2014(UTC)
Posts: 23
Location: Netherlands

Thanks: 2 times
Was thanked: 4 time(s) in 4 post(s)
Remco
#4 Posted : Tuesday, July 28, 2015 11:15:01 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1287 time(s) in 1194 post(s)
damianh;7529 wrote:


I strongly suspect it is.
Users browsing this topic
Guest
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.032 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download