Dear All,
I'm downloaded the asp.net example from http://www.windowsworkflow.net/default.aspx tabindex=4&tabid=41 section technology samples -> ASP.NET Workflow Example.
when i try to run the sample on my machine i get the following error..
Compiler Error Message: CS0234: The type or namespace name 'Web' does not exist in the namespace 'System.Workflow.Runtime.Hosting' (are you missing an assembly reference )
Source Error:
|
& cannot open & edit the workflow file..for this i guess it's related to the version of the workflow. the example is built on beta1 & it's using paramaeters..
Kindly, I need a guide on how to run my first project. I'm working on VS 2005 final release & WWF beta2..
Thanks,
Lina

Problem running my first workflow enabled webform
melbsurfer
You are running the beta 1 sample on beta 2. Try downloading from the beta 2 page [1] instead.
Matt
[1] http://www.windowsworkflow.net/default.aspx tabindex=4&tabid=49
ThE ViKinG
Thanks Matt, I downloaded Beta2 samples & now i'm getting this error:
Compiler Error Message: CS0103: The name 'WorkflowWebRequestContext' does not exist in the current context
Source Error:
Please advice,
Thanks
Lina
The Edge also develops software
Are you using Beta2, or beta 2.2 This class was removed for beta 2.2 and the sample will not work as written. You'll need to instantiate the runtime yourself being sure to pass in the name of the configuration section.
Matt
Jonathan_Gr
You'll want to have a static variable somewhere of the type workflowruntime. THe easiest way to do it is to create a class with a static private member and a static property get. Then use that to get your runtime instance:
public static myclass
{
private static WorkflowRuntime _runtime;
public static WorkflowRuntime Runtime
{
get{
if (_runtime == null)
_runtime = new WorkflowRuntime("WorkflowRuntime");
return _runtime;
}
}
Then access your runtime from here rather than the request context as you did before beta 2.2.
Matt
techexpert78
Thanks,
Lina