Things were quite fine untill we were not using source control, here is another exception while generating Data Repository Classes.

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe CreateDataRepositoriesFromDCProject. Error was: Action AddIDbToBusinessEntityNameMapper failed to execute:

Access to the path 'C:\Consensus.Net\CoreBooking\Source\Resource Access\Consensus.Net.DataAccess\Generic\IDbToBusinessEntityNameMapper.cs' is denied..

You can remove the reference to this recipe through the Guidance Package Manager. ---> System.UnauthorizedAccessException: Access to the path 'C:\Consensus.Net\CoreBooking\Source\Resource Access\Consensus.Net.DataAccess\Generic\IDbToBusinessEntityNameMapper.cs' is denied.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)

   at Microsoft.Practices.ServiceFactory.DataAccess.Actions.VisualStudio.AddItemFromStringToProjectItemAction.Execute()

   at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName, Dictionary`2 inputValues)

   at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName)

   at Microsoft.Practices.RecipeFramework.Extensions.Coordinators.ConditionalCoordinator.Run(Dictionary`2 declaredActions, XmlElement coordinationData)

   at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)

   --- End of inner exception stack trace ---

   at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex)

   at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)

   at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend)

   at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments)

   at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference)

   at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()

   at Microsoft.Practices.RecipeFramework.AssetReference.Execute()

   at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()

   at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()

Solution :

Guidance receipe requires base factory files like "IDbToBusinessEntityNameMapper" , "IDomainObjectFactory" etc.

 

Since all these files are checked under source control, you have check out the Base factory files under Generic folder and App.Config file. inorder to sucessfully execute the guidance package

 

Hope this information helps 

posted on Friday, February 01, 2008 10:48 AM

Comments

No comments posted yet.
Your Comment




 
Please add 2 and 1 and type the answer here: