Long running workflow in .NET 4.0 problem adding required references - workflow-foundation-4

I am attempting to complete the following "how-to" in order to try and understand how persistence works in .NET 4.0 Workflows.
MSDN - How to: Create and Run a Long Running Workflow
Unfortunately, there seems to be an error in the documentation or I have a problem with my setup, as I am unable to add references to the following components:
System.WorkflowServiceModel
System.WorkflowService
These components are specified in step (1) of the section "To enable persistence in a workflow application".
I tried researching this problem but didn't find anything very useful. It seems that I'm not the only person who has had problems:
Microsoft Connect - VS2010 Missing Assembly System.WorkflowServiceModel
A user here suggests that "the problem was that the client profile was used" but I don't really understand what this means.
I have added my question to that page and will update here if an answer is forthcoming from Microsoft.
Update:
Following Chris' comments, I found a better link which I put in a comment. I think the accepted approach on Stack Overflow is to update the initial question?
MSDN - Configuring the SQL Workflow Instance Store

This appears to be a bug in the documentation, not a problem with your setup. Actually, the whole article seems to contain completely outdated information - almost none of the content seems to be related to WF Beta 2. I would suggest looking up another site for now.

The assembly(ies) got renamed/reorganized some time between PDC 2008 and Beta1. Look for System.ServiceModel.Activities.

Related

How to add and use MessageQueues to ASP.NET MVC project?

I have a ASP.NET MVC project and I need to use Message Queues (MSMQ as I understand it) to send messages from the client to my server, but I can't seem to add System.Messages to a c# class. I get an error when trying to add the namespace:
I searched around and found that I don't have the system.messaging.dll (or system.messages.dll) in my project. This has to be possible, as its even in the documentation.
EDIT: I found another guy online who is having the exact same problem. I followed the answer in that link, but the Refrence Manager dosen't seem to have a system.messaging or messages dll.
How do I download the necessary dlls?
So #mason regrettably, I was trying to do something that isn't really done anymore. This question was outdated before I even asked it.

Symfony-cmf routing step by step

The symfony-cmf documentation is a nightmare, it is really hard to understand and it seems that many of it is outdated.
I think I have understood the routing concept, but I can't figure how to implement it, clearly.
How to register a router?
How to setup dynamic routing?
How to persist a document and map a route?
FYI 1.1 was been released and the documentation has been updated accordingly.
I am sorry to hear that. If you run on 1.0, things should not be outdated, except for some cookbook entries which have a note at their head. The 1.1 documentation is not online yet as we currently can only publish one version of the doc. That is only available on github.
Your questions however are answered by both versions:
http://symfony.com/doc/master/cmf/bundles/routing/introduction.html#loading-routers-with-tagging
http://symfony.com/doc/master/cmf/bundles/routing/dynamic.html - also the sandbox is a good example to see this in action
http://symfony.com/doc/master/cmf/bundles/routing/dynamic.html#the-phpcr-odm-route-document
If you have inputs how we can make it easier to find the way through the doc or at which point in the quick tour / book you got lost, please open issues (or even better pull requests) on the symfony-cmf-docs github repository.

Is there any good way of SELF-updating running web application?

as stated - it needs to be a "self-update" similar like Wordpress... I haven't thought through because of my knowledge limits... (I haven't found any good answer from the web yet /asp.net c#)
anyone can give some help/ perhaps some code example would be better?
Thanks in advance!
I dont have the code, But i can tell you the general concept behind that.
Keep a public API/ Webservice which returns the latest version number of the site/ app.
In your website/ app, add a method which makes a call to this service to get the latest version number. compare it with what you have in your local application. If the one you received from the service is different than the one you have, That means there is a new version available. Then show a link to download the latest version.

Paypal PayFlow Pro Asp.Net configuration

So, this does not necessarily have to do directly with the code itself, although it is certainly a component of it.
I recently downloaded and installed the PayFlow Pro SDK for use with ASP.net
link here:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks
I installed this to my development machine. I also came accross this example code which I figured outlined the primary setup for basic Paypal Credit Card Transaction functionality.
link here:
http://www.codeproject.com/KB/aspnet/PayPal_PayflowPro.aspx
Anyways, I have two main questions
Do I have to install the SDK on the web hosts server in order to utilize the functionality of it? This seems to make sense, however, the tutorial in the second link suggests I create a web reference. Unless I am not understanding something here, wouldn't this just strictly work on my development machine, or at least, the functionality of the remote website that references this web reference to access the sdk, would this not be dependent on my computer running and broadcasting this information?
I just need clarification on how to install and/or access the sdk for use on a remote webhosts server (ie. do i need to install the sdk on the web-hosts server and if so, how would one go about doing so (ie. where to install, how to install)?).
Are there any other clean cut examples like my second link provides, that sort of outline the basic functionality of Payflow Pro? I find paypal's examples numerous and convoluted and their online slides/video tutorials to be tedious.
Perhaps I should just get off my lazy ass, but I have found peers from the general community to be much more informative in a way more efficient manner, so any help would be greatly appreciated.
Thanks!
For anyone interested, after enough searching I found a great example that notified me of all the fundamental processes to creating a basic transaction and allowed me the knowledge to further manipulate the sdk.
Check it -
Code Projects PayflowPro example and introduction.

Mono and ASP.NET Authentication

Does anyone know how to get to work the authentication mechanism configured using Web Site Administration Tool under Linux running Mono? Is it even possible?
I don't think you're going to find a ton of support for this, evidenced by the lack of activity on your question. The Web Site Administration Tool was removed from CodePlex around April 2009 due to inactivity (CodePlex rules state: It must be an ongoing project (no "abandoned" projects)) and it's use/adoption really declined. Many projects that were using it as a component just wrote their own after that.
There have been a few alternatives that have popped up in the community after it went missing:
Rolling Your Own Website Administration Tool
Create Your Own Web Site Administration Tool in ASP.NET
I think using code from one of those two projects is going to come as close to what you're after as is available. It's not ideal and will require some work to get working with the back-ends you desire (both of those use a SQL server back-end). I know this answer sucks, but sometimes that's the answer. I hope someone comes and proves me wrong and that what you want is out there, or at least could provide the WSAT source code as it last was on codeplex...that's be a huge head start in getting it to run.
If you're referring to a different WSAT please comment and correct me....it's such a generic term really, but that was by far the most popular one so I based this answer on that.
You have to set up your database schema manually for Membership/Roles support if using Mono. That said, following the FAQ answer (which I have found very handy in the past) alone may not be enough, I am not sure about the other dependancies for the Web Site Administration Tool itself (e.g. any .NET specific libraries it needs) but combined with an appropriate membership provider configured in system.web I'd say there is a reasonable chance it may.
If that doesn't work for you, I would second Nick's suggestion of taking a look at the solution by 4GuysFromRolla.com who have a lot of good info relevant to both .NET & Mono.

Resources