Geeks With Blogs
Prasanna's Blog BizTalk, WCF, C# and Software Factories

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 1, 2008 10:48 AM | Back to top


Comments on this post: Error while generating Data Repository Class using WSSF Data Access Guidance Package

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Prasanna Krishnan | Powered by: GeeksWithBlogs.net