Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edson - 11 Feb 2007 04:52 GMT
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
Kalyan Reddy - 15 Feb 2007 10:49 GMT
Hello

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

Signature

Kalyan Reddy
Visit http://www.autonomysystems.com

> Hi:
>
[quoted text clipped - 17 lines]
>
> |1
Edson - 15 Feb 2007 21:20 GMT
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:office:infopath:AssociationSABIForm:-myXSD-2006-12-02T20-02-04</Association_FormURN>
     
<Task0_FormURN>urn:schemas-microsoft-com:office:infopath:SolicitudesSASITitularForm:-myXSD-2006-11-26T15-31-27</Task0_FormURN>
     
<Task1_FormURN>urn:schemas-microsoft-com:office:infopath:SolicitudesSASIResponsableForm:-myXSD-2006-11-26T15-31-27</Task1_FormURN>
     <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
   </MetaData>
 </Workflow>
</Elements>

Signature

MSD

> Hello
>
[quoted text clipped - 22 lines]
> >
> > |1
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.