How to deploy an infopath form that uses manage code and is part o

E

Edson

Hi:

I develop a workflow in VS 2005 that has 1 task form (infopath form) and it
woks well while it does not have manage code, the problem is when i add
manage code to this infopath form, i get the folowing error when i try to
reach the form:


Tipo: FileNotFoundException. Mensaje de excepción: Could not load file or
assembly 'file:///C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\Template\Features\SEMARNATSPWorkflowLibrary\Forms\SolicitudesSASITitularForm.dll'
or one of its dependencies. The system cannot find the file specified.)



Can anyone help me to deploy and infopath the form to a share point server,
the form have to constrains:

1. It has manage code.
2. It is part of a Workflow as a task form


thanks

|1
 
K

Kalyan Reddy

Hello

Whats the security Level Set to the form? If it is Restricted, Managed Code
Doesnt Work
 
E

Edson

Hi, thanks for writting back

My form has "Full trust" in the security level


In fact, i developed another infopath form that also uses manage code and
works well, but it is not a part of a WF.

The way in witch im publishing the form the form that works well is using
the "Share point central administraticion".


And the way in witch i'm publishing the form that do not work well is using
an script that activate the custom worflow that i developed as well as the
forms that is uses for the taks generated.

Here is a scratch of the script that publishes the infopath form, that i'm
having problems with:


copy /Y feature.xml "%CommonProgramFiles%\Microsoft Shared\web server
extensions\12\TEMPLATE\FEATURES\SEMARNATSPWorkflowLibrary\"
copy /Y workflow.xml "%CommonProgramFiles%\Microsoft Shared\web server
extensions\12\TEMPLATE\FEATURES\SEMARNATSPWorkflowLibrary\"
xcopy /s /Y Forms\*.xsn "%programfiles%\Common Files\Microsoft Shared\web
server extensions\12\TEMPLATE\FEATURES\SEMARNATSPWorkflowLibrary\Forms\"


here is an part of the "Workflow.xml"

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow
Name="Autorización de servicios informáticos"
Description="Autorización de servicios para el SASI"
Id="{B34A24A5-D37D-4531-AB63-8E9EEED6BB00}"
CodeBesideClass="SEMARNATSPWorkflowLibrary.Workflow1"
CodeBesideAssembly="SEMARNATSPWorkflowLibrary, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=b7c30ecdaa094b6a"
TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
AssociationUrl="_layouts/CstWrkflIP.aspx"<Categories/>
<MetaData>
<!-- Tags to specify InfoPath forms for the workflow; delete tags for
forms that you do not have -->

<Association_FormURN>urn:schemas-microsoft-com:eek:ffice:infopath:AssociationSABIForm:-myXSD-2006-12-02T20-02-04</Association_FormURN>

<Task0_FormURN>urn:schemas-microsoft-com:eek:ffice:infopath:SolicitudesSASITitularForm:-myXSD-2006-11-26T15-31-27</Task0_FormURN>

<Task1_FormURN>urn:schemas-microsoft-com:eek:ffice:infopath:SolicitudesSASIResponsableForm:-myXSD-2006-11-26T15-31-27</Task1_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
</Workflow>
</Elements>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top