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

Notification

Icon
Error

Load failure: nCrunchTemp_{guid}.user' is denied
BKStrelioff
#1 Posted : Monday, April 1, 2013 4:20:06 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/17/2012(UTC)
Posts: 23

Was thanked: 4 time(s) in 4 post(s)
The file in question dates back to 28 FEB 2013, so I am not sure why it is being accessed.


System.UnauthorizedAccessException: Access to the path 'F:\webteam-bks\BatchJobs\Trunk\Email\Cdw.BusinessObjects.SecondaryProcessor\nCrunchTemp_c9110d12-c7fe-4518-9d57-7cadad3c63f4.user' is denied.

Server stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(String projectFilePath, String buildXml, String useBuildConfiguration, String useBuildPlatform, String solutionDir, IList`1 importExpressionsToEvaluate)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at nCrunch.Compiler.IRemoteBuildRunner.AnalyseComponentBuild(String projectFilePath, String buildXml, String useBuildConfiguration, String useBuildPlatform, String solutionDir, IList`1 importExpressionsToEvaluate)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.#=qx5EcfgVKYRjl0_qwhObKk1jFzXuusQl7pXUr_BKDVFA=.#=qAw_vCeskZNUN_XpL9hQO2x7iAiXAU7GVghRBxo10qwGxZzhYbcRgJJrClY3B_j4q(IRemoteBuildRunner #=qaRL1cZ_ne2alaOmhL31se3ny72VNoLAGo0zZOIEtNbo=)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.#=qYdNpwFoOeJKygm50B4qqvz9ocNKBJPRqhPW$9VcErIhNM29kHX5_tgiv2g_HWmmg(Action`1 #=qjXbhSzbgJFn7$NxjXryVDQ==, ProcessorArchitecture #=qL2ni7wfmJiZyE6hKbzgJTtdfS4YbF_uvfOIPLKtY$xU=)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(String projectFilePath, String buildXml, String useBuildConfiguration, String useBuildPlatform, String solutionDir, IList`1 importExpressionsToEvaluate, ProcessorArchitecture processorArchitecture)
at nCrunch.Core.ComponentLoader.SnapshotComponentFactory.#=qSBiUk2TygO45Mpu4YMJBzSdGxhmzVJzc$L6yTz4$fKc=(ProcessorArchitecture #=q50SkLgXu2Tk1jFm0AhMfIF$CwyjhQ$FFbL5vFnXUlzE=)
at nCrunch.Core.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(String projectFilePath, String projectXml, String solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile)
BKStrelioff
#2 Posted : Monday, April 1, 2013 4:45:47 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/17/2012(UTC)
Posts: 23

Was thanked: 4 time(s) in 4 post(s)
Update: I manually delete the file in question, but a new one is created everytime NCrunch does a build. Note that everytime the timestamp is 2.28.2013 16:00, which does match come dates of other files in the folder. But the machine clock is the current date & time.

ALso, each time I trigger an NCrunch build a new file (with a new Guid) is created.

There is a NCRUNCHPROJECT file in this folder from 3/8/2013, here is what it contains:

<ProjectConfiguration>
<CopyReferencedAssembliesToWorkspace>false</CopyReferencedAssembliesToWorkspace>
<ConsiderInconclusiveTestsAsPassing>false</ConsiderInconclusiveTestsAsPassing>
<PreloadReferencedAssemblies>false</PreloadReferencedAssemblies>
<AllowDynamicCodeContractChecking>true</AllowDynamicCodeContractChecking>
<AllowStaticCodeContractChecking>false</AllowStaticCodeContractChecking>
<IgnoreThisComponentCompletely>false</IgnoreThisComponentCompletely>
<RunPreBuildEvents>false</RunPreBuildEvents>
<RunPostBuildEvents>false</RunPostBuildEvents>
<PreviouslyBuiltSuccessfully>true</PreviouslyBuiltSuccessfully>
<InstrumentAssembly>true</InstrumentAssembly>
<PreventSigningOfAssembly>false</PreventSigningOfAssembly>
<AnalyseExecutionTimes>true</AnalyseExecutionTimes>
<IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
<DefaultTestTimeout>60000</DefaultTestTimeout>
<UseBuildConfiguration />
<UseBuildPlatform />
<ProxyProcessPath />
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
</ProjectConfiguration>

There are several projects/folders in this solution, not sure why this is the only one seeing problems (so far anyway)
Remco
#3 Posted : Monday, April 1, 2013 8:31:21 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
NCrunch generates this file in order to analyse the build process prior to building workspaces. The guid.user file is something that was added in 1.45 to address a problem with custom assembly reference paths, although I note with some concern that the problem you've mentioned is something that can happen here and definitely shouldn't ...

The source of the problem is likely that the original project's .user file is marked as read-only in your project directory. This read-only flag is being copied to the guid.user file and then NCrunch fails to delete this file after the build is analysed. Most likely, the .user file is marked as read-only because it is checked into a source control system.

To work around the issue, you can either remove the read-only flag, or remove the file from the source control system. I have a feeling that many people will be affected by this problem, so I'll be publishing a new 1.45 build within the next 24 hours to resolve this issue. Thanks for reporting it so promptly .. by doing so, I think you've saved many people a world of pain.
Remco
#4 Posted : Monday, April 1, 2013 10:59:20 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
I've just updated the 1.45 release with a hot-fix to solve this issue. The previous version was 1.45.0.11, the new version is 1.45.0.12. I recommend updating if this is still giving you trouble.
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.045 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download