none
Developing custom workflow without installing in GAC

    Dotaz

  • Hi guys,

    I'm working on a custom workflow, developing it with WSPBuilder, and I was wondering, if there's any way to make the feature use an assembly not in the GAC. If I can avoid the GAC with the assembly, I can modify the assembly without needing to deploying to GAC thus avoiding the IISRESET/recompilation of the site I'm working on, which I'd really love to be able to do, since a lot of other sites run on this server.

    Anyone got any ideas?

    14. června 2012 10:18

Odpovědi

  • Workflow assemblies must run from the GAC.  You should probably be doing your dev work on a dedicated dev server or VM rather than a shared production machine.

    Paul Stork SharePoint Server
    MVP Senior Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    14. června 2012 12:30
  • That thread is about the DLLs associated with web parts.  Those can be placed in the BIN directory.  Managed code assemblies used in Workflows MUST be deployed to the GAC.  The workflow won't work if you put them in the BIN directory.

    Paul Stork SharePoint Server
    MVP Senior Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    • Navržen jako odpověď RK2002 14. června 2012 18:50
    • Označen jako odpověď Lhan HanModerator 25. června 2012 2:17
    14. června 2012 16:57

Všechny reakce

  • Workflow assemblies must run from the GAC.  You should probably be doing your dev work on a dedicated dev server or VM rather than a shared production machine.

    Paul Stork SharePoint Server
    MVP Senior Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    14. června 2012 12:30
    • Upravený RK2002 14. června 2012 14:22
    14. června 2012 14:18
  • That thread is about the DLLs associated with web parts.  Those can be placed in the BIN directory.  Managed code assemblies used in Workflows MUST be deployed to the GAC.  The workflow won't work if you put them in the BIN directory.

    Paul Stork SharePoint Server
    MVP Senior Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    • Navržen jako odpověď RK2002 14. června 2012 18:50
    • Označen jako odpověď Lhan HanModerator 25. června 2012 2:17
    14. června 2012 16:57
  • I stand corrected. Only processes that run under the sharepoint worker process can go into the bin. All others including timer jobs and workflows need to be deployed to the GAC. 
    14. června 2012 18:48
  • That thread is about the DLLs associated with web parts.  Those can be placed in the BIN directory.  Managed code assemblies used in Workflows MUST be deployed to the GAC.  The workflow won't work if you put them in the BIN directory.

    Paul Stork SharePoint Server
    MVP Senior Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.


    May be a silly question but why do workflows not work if they are deployed to the BIN folder?
    17. července 2012 12:35
  • I don't know what the technical reason might be.  But it is a requirement for workflows as implemented in SharePoint by Microsoft.  Its part of the way they designed workflows.

    Paul Stork SharePoint Server
    MVP Senior Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    17. července 2012 14:35
  • Hi,

    I also have same question. After adding workflow.dll to gac, which web config file should be edited. GAC means it can be deployed at farm level with full trust. So do i need to edit each and every web.config file of each web app? And also after adding successfully do i need to deploy it from ui or powershell or will it be added automatically?


    Adit

    20. ledna 2013 21:44
  • Deploying a Workflow.dll as part of a WSP solution will automatically make any necessary changes to the Web.config files required.  After installing the WSP you do need to also deploy it.  That can be done via the Central Admin UI, PowerShell or STSADM.  If the Workflow is packaged as a Feature you also need to activate the Feature in the appropriate scope.

    Paul Stork SharePoint Server
    MVP Principal Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    22. ledna 2013 12:43