Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Registration Problem
 

Registration Problem

I have made a Data Access Guidance Packege, whose main xml file is like this...

<?xml version="1.0" encoding="utf-8" ?>

<GuidancePackage xmlns="http://schemas.microsoft.com/pag/gax-core"

xmlns:xi="http://www.w3.org/2001/XInclude"

Name="DataAccessGuidancePackage"

Caption="Data Access Guidance Package for Oracle"

Description="Data Access Guidance Package for Oracle"

Guid="8a1a5180-3c2f-4cdb-9c86-2a4ea7ff1a51"

SchemaVersion="1.0">

<Overview Url="Docs\DataAccessOverview.htm"/>

<HostData>

<Menu Name="Solution" Text="Service Factory - Oracle DAL" Priority="1">

<CommandBar Name="Solution"/>

</Menu>

<Menu Name="Project" Text="Service Factory - Oracle DAL" Priority="1">

<CommandBar Name="Project"/>

</Menu>

<Menu Name="ProjectItem" Text="Service Factory - Oracle DAL" Priority="1">

<CommandBar Name="Item"/>

</Menu>

<Menu Name="Folder" Text="Service Factory - Oracle DAL" Priority="1">

<CommandBar Name="Solution Folder"/>

</Menu>

<Menu Name="WebProject" Text="Service Factory - Oracle DAL" Priority="1">

<CommandBar Name="Web Project"/>

</Menu>

<Menu Name="WebProjectItem" Text="Service Factory - Oracle DAL" Priority="1">

<CommandBar Name="Web Item"/>

</Menu>

</HostData>

<Recipes>

<xi:include href="Recipes/Binding.xml"/>

<xi:include href="Recipes/SpecifyProjectResponsibility.xml"/>

<xi:include href="Recipes/CreateDBConnection.xml"/>

<xi:include href="Recipes/CreateDBConnectionFromConfig.xml"/>

<xi:include href="Recipes/CreateBEFromDB.xml"/>

<xi:include href="Recipes/CreateCRUDSp.xml"/>

<xi:include href="Recipes/CreateDataRepository.xml"/>

<xi:include href="Recipes/CreateDataRepositoriesFromBEProject.xml"/>

<xi:include href="Recipes/CreateDataRepositoriesFromDCProject.xml"/>

</Recipes>

</GuidancePackage>

Now, whenever I am trying to register it,it is giving following error/warning...

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe Register. Error was: Action Register failed to execute:
Failed to process package. See the Guidance Package Development output window for more information about the error..

Warning1The element 'Recipes' in namespace 'http://schemas.microsoft.com/pag/gax-core' has invalid child element 'include' in namespace 'http://www.w3.org/2001/XInclude'. List of possible elements expected: 'Recipe' in namespace 'http://schemas.microsoft.com/pag/gax-core'.

Now, what to do???

Aka Avik  Friday, July 20, 2007 5:58 AM
Getting the right XInclude syntax can be tricky sometimes... please take a look at how GAT uses it and check with your files if you may be missing something:

from GAT main manifest:

<Recipes>
<xi:include parse="xml"
href="PackageRegistration.xml"
xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(//gax:Recipe)" />
<Recipe ...

from PackageRegistration.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Recipes xmlns="http://schemas.microsoft.com/pag/gax-core">
<Recipe Name="Register" Bound="false">

Also the SFT produces sample packages using XInclude that you might take a look at as guiding.

thanks,
-Victor.





vga  Sunday, July 22, 2007 6:25 PM
Getting the right XInclude syntax can be tricky sometimes... please take a look at how GAT uses it and check with your files if you may be missing something:

from GAT main manifest:

<Recipes>
<xi:include parse="xml"
href="PackageRegistration.xml"
xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(//gax:Recipe)" />
<Recipe ...

from PackageRegistration.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Recipes xmlns="http://schemas.microsoft.com/pag/gax-core">
<Recipe Name="Register" Bound="false">

Also the SFT produces sample packages using XInclude that you might take a look at as guiding.

thanks,
-Victor.





vga  Sunday, July 22, 2007 6:25 PM

You can use google to search for other answers

Custom Search

More Threads

• Any Examples of CreateProjectAction?
• Could I add repeating code with this technology in my solution in C#.net?
• Add files in multiple projects
• Target solution assemblies get loaded on the guidance package on runtime
• Synchronizing - GAT Package Changes
• System.Collections.Generic.KeyNotFoundException in custom T4 Action
• Action to Add GAC folder to A (Vsd) Setup Project
• HoL Registration failed
• Generic argument types
• Project reference problem