Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build, but errors on running about missing activities #1

Closed
papyr opened this issue Jun 9, 2016 · 12 comments
Closed

Build, but errors on running about missing activities #1

papyr opened this issue Jun 9, 2016 · 12 comments

Comments

@papyr
Copy link

papyr commented Jun 9, 2016

Hi there, great lib 💯 however I cannot get it to run, its complaining the dlls cannot be loaded because of system.activities.- could not load system.activities or one of its dependencies

  1. I tried to resolve this using nuget but it failed any help would be appreciated, can you please update to include the system.activities dll
  2. Also I would be interested in helping out with documentation, as it would help me/others out too. Can you help guide us on what are the steps to follow/create and persist a new activity - for e.g. with a workitems queue, like a document approval system.

thanks
Papi

@smartmeter
Copy link

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/90e790e4-c0fb-4606-8231-a2e0d57d011e/could-not-load-file-or-assembly-systemactivities-version4000?forum=vseditor

Seems like an issue

@vladoros
Copy link

vladoros commented Jun 9, 2016

Either that or a permissions issue as described here.
Make sure you're running VS under admin.

@orosandrei
Copy link
Owner

@papyr

  1. I think both suggestions from @smartmeter and @vladoros are valid; as a quick resolution, remove the default referenced system.activities dll and add the one from your system, should work
  2. for creating an Approval system, you'll need to implement workflow persistence and create data stores for the state of the workflow + your approval logic - these links should get you in the right direction:
    - https://code.msdn.microsoft.com/Windows-Workflow-deed2cd5
    - https://msdn.microsoft.com/en-us/library/dd489452(v=vs.110).aspx

@orosandrei
Copy link
Owner

@mach37
AddRefference to you project and select the correct System.Activities from the results:
image

@papyr
Copy link
Author

papyr commented Jun 10, 2016

Thanks for that picture 👍 I follow it closely,

Now I see designer load, but the problem is still there. Then I deleted the Debug folders, and tried to add dll ref again, but same problem is still there could not load system.activities or one of its dependencies.

Should I copy dll locally?
Should I change any permission.

@sergy79
Copy link

sergy79 commented Jun 10, 2016

Really good sample better than the other solutions,
I too am having this issue windows 8.1, anyone find a fix.

@orosandrei
Copy link
Owner

orosandrei commented Jun 11, 2016

try this:

  1. select all references & set "copy local" to "true"
    image
  2. comment the extra libraries from MainWindow.xaml.cs like below (maybe you don't have them on your system)

image

afterwards rebuild the solution & try running it

@papyr
Copy link
Author

papyr commented Jun 11, 2016

@orosandrei Step 2 helped me finally!!

Does commenting these lib out impact creating the new workflows or availability of activities, how can I add these back - where should I check to make sure they're available to load, before uncommenting.

Now that its working this is awesome.

When I tried to save the modified XAML in the DB as a string type, I am getting errors. Should I persist as a Blob.

@papyr
Copy link
Author

papyr commented Jun 11, 2016

Its loading but I have errors on the toolbox items on the left, not sure what causing the numbers, is that correct?

Also is it possible to import other Workflow Samples like the MSDN windows

rehostederror

@orosandrei
Copy link
Owner

@papyr the activities loaded correctly

@orosandrei
Copy link
Owner

I commented the loading of activity libraries beginning with "Microsoft" namespace, so those will not load by default anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@smartmeter @vladoros @orosandrei @papyr @sergy79 and others