HANK1


The following error show up when I try to setup the workflow that I deploy in SharePoint2007 Enterprice.

The following location is not accessible, because it is in a different site collection:
urnTongue Tiedchemas-microsoft-comSurpriseffice:infopath:AssocForm:-myXSD-2007-10-05T20-34-25 .

I use Vs2008 Beta2

I have the following

.xsn forms

The .xsn forms are created by using InfoPath2007 with Domain security.

The .xsn files are in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\State Machine Demo\

Features and Workflow XML

the Feature and workflow.xml are in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\State Machine Demo

Feature.xml

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

<Feature Id="9482df7b-4d35-4700-98ce-277faa758eba"
Title="State_Machine_Demo feature"
Description="My SharePoint Workflow Feature"
Version="12.0.0.0"
Scope="Site"
ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="workflow.xml" />
</ElementManifests>
<Properties>
<Property Key="GloballyAvailable" Value="true" />
<!-- Value for RegisterForms key indicates the path to the forms relative to feature file location -->
<!-- if you don't have forms, use *.xsn -->
<Property Key="RegisterForms" Value="*.xsn" />
</Properties>
</Feature>

workflow.xml

< xml version="1.0" encoding="utf-8" >
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow Name="Henry State Machine Workflow."
Description="Simple workflow that creates a review task and waits for the user to complete it."
Id="bfd48191-dd96-4b87-b88c-fc3ac4389dd7"
CodeBesideClass="State_Machine_Demo.DemoWorkflow"
CodeBesideAssembly="State_Machine_Demo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f5893718340771ab"
TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
AssociationUrl="_layouts/CstWrkflIP.aspx"
InstantiationUrl="_layouts/IniWrkflIP.aspx"
ModificationUrl="_layouts/ModWrkflIP.aspx">
<Categories/>
<!-- Tags to specify InfoPath forms for the workflow; delete tags for forms that you do not have -->
<MetaData>
<Instantiation_FormURN>
urnTongue Tiedchemas-microsoft-comSurpriseffice:infopath:Initform:-myXSD-2007-10-05T20-48-10
</Instantiation_FormURN>
<Association_FormURN>
urnTongue Tiedchemas-microsoft-comSurpriseffice:infopath:AssocForm:-myXSD-2007-10-05T20-34-25
</Association_FormURN>
<Task0_FormURN>
urnTongue Tiedchemas-microsoft-comSurpriseffice:infopath:Initform:-myXSD-2007-10-05T20-48-10
</Task0_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
</Workflow>
</Elements>



Re: I get an error when the IP form try to load.

MsdnSupplier


try this :

<ElementManifests>
<ElementManifest Location="workflow.xml" />

<ElementFile Location="FormName.xsn" />
</ElementManifests>





Re: I get an error when the IP form try to load.

HANK1

Thank MsdnSupplier

I did the following and still I have the problem

1. Changed the compatibility of the IP form and put the URL of the SharePoint Server

2. Changed the Feature.xml as you told me

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

<Feature Id="9482df7b-4d35-4700-98ce-277faa758eba"
Title="My First state machine"
Description="description-->My First state machine"
Version="12.0.0.0"
Scope="Site"
ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="workflow.xml" />
<ElementManifest Location="AssocForm.xsn" />
</ElementManifests>
<Properties>
<Property Key="GloballyAvailable" Value="true" />
<!-- Value for RegisterForms key indicates the path to the forms relative to feature file location -->
<!-- if you don't have forms, use *.xsn -->
<Property Key="RegisterForms" Value="*.xsn" />
</Properties>
</Feature>

3. Checked if the feature is activited and it is. However I found the feature in the Top Site and not in the site where is the document library that uses the workflow.

Do you think the problem is that Visual Studio does not deploy correctly the workflow to the site Should I use PostBuildActions.bat

Please, help me this is the last step to see how this works.

Regards

Hank






Re: I get an error when the IP form try to load.

HANK1

Thanks guys

I found the solution to my problem.

The metadata tag was

<MetaData>
<Instantiation_FormURN>
urnchemas-microsoft-comffice:infopath:Initform:-myXSD-2007-10-05T20-48-10
</Instantiation_FormURN>
<Association_FormURN>
urnchemas-microsoft-comffice:infopath:AssocForm:-myXSD-2007-10-05T20-34-25
</Association_FormURN>
<Task0_FormURN>
urnchemas-microsoft-comffice:infopath:Initform:-myXSD-2007-10-05T20-48-10
</Task0_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>

and the correct way is

<MetaData>
<Instantiation_FormURN>urnchemas-microsoft-comffice:infopath:Initform:-myXSD-2007-10-05T20-48-10</Instantiation_FormURN>

<Association_FormURN> urnchemas-microsoft-comffice:infopath:AssocForm:-myXSD-2007-10-05T20-34-25</Association_FormURN>
<Task0_FormURN>urnchemas-microsoft-comffice:infopath:Initform:-myXSD-2007-10-05T20-48-10</Task0_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>





Re: I get an error when the IP form try to load.

jvrakesh

Hello Hank,

even I am having the same problem.

The metadataTag which you have posted I dont see any difference . I am newbie to the Sharepoint .

Thanks

RJ