ExpenseReport Example Problem
It's very strange.I have run the example well before with winfx beta2 feb and wwf beta 2.2. Yesterday it suddently didn't work .When I start ExpenseHost the exception is:
未处理(Unhandle) System.IO.FileNotFoundException
Message="未能加载文件或程序集(Can not Load file or assembly)“DynamicUpdateFromWorkflow, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件(system could not find the file)。"
Source="mscorlib"
FileName="DynamicUpdateFromWorkflow, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null"
FusionLog="=== 预绑定状态信息 ===\r\n日志: 用户 = SF\\Administrator\r\n日志: DisplayName = DynamicUpdateFromWorkflow, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null\n (Fully-specified)\r\n日志: Appbase =file:///C:/Windows Workflow Foundation/Examples/ExpenseReporting/2006-03-05/bin/\r\n日志: 初始 PrivatePath = NULL\r\n调用程序集: (Unknown)。\r\n===\r\n日志: 此绑定从 default 加载上下文开始。\r\n日志: 正在使用应用程序配置文件: C:\\Windows Workflow Foundation\\Examples\\ExpenseReporting\\2006-03-05\\bin\\ExpenseHost.vshost.exe.config\r\n日志: 使用 C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config 的计算机配置文件。\r\n日志: 此时没有为引用应用策略(私有、自定义、分部或基于位置的程序集绑定)。\r\n日志: 试图下载新的 URLfile:///C:/Windows Workflow Foundation/Examples/ExpenseReporting/2006-03-05/bin/DynamicUpdateFromWorkflow.DLL。\r\n日志: 试图下载新的 URLfile:///C:/Windows Workflow Foundation/Examples/ExpenseReporting/2006-03-05/bin/DynamicUpdateFromWorkflow/DynamicUpdateFromWorkflow.DLL。\r\n日志: 试图下载新的 URLfile:///C:/Windows Workflow Foundation/Examples/ExpenseReporting/2006-03-05/bin/DynamicUpdateFromWorkflow.EXE。\r\n日志: 试图下载新的 URLfile:///C:/Windows Workflow Foundation/Examples/ExpenseReporting/2006-03-05/bin/DynamicUpdateFromWorkflow/DynamicUpdateFromWorkflow.EXE。\r\n"
StackTrace:
在 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
在 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
在 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
在 System.Reflection.Assembly.Load(String assemblyString)
在 System.UnitySerializationHolder.GetRealObject(StreamingContext context)
在 System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder holder)
在 System.Runtime.Serialization.ObjectManager.DoFixups()
在 System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
在 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
在 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
在 System.Workflow.ComponentModel.Activity.Load(Stream stream, Activity outerActivity, IFormatter formatter)
在 System.Workflow.ComponentModel.Activity.Load(Stream stream, Activity outerActivity)
在 System.Workflow.Runtime.Hosting.WorkflowPersistenceService.RestoreFromDefaultSerializedForm(Byte[] activityBytes, Activity outerActivity)
在 System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.LoadWorkflowInstanceState(Guid id)
在 System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor)
在 System.Workflow.Runtime.WorkflowRuntime.Load(Guid& key, CreationContext context)
在 System.Workflow.Runtime.WorkflowRuntime.GetWorkflowInstance(Guid instanceId)
在 System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid instanceId)
在 System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.RecoverRunningWorkflowInstances()
在 System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.OnStarted()
在 System.Workflow.Runtime.Hosting.WorkflowRuntimeService.HandleStarted(Object source, WorkflowRuntimeEventArgs e)
在 System.EventHandler`1.Invoke(Object sender, TEventArgs e)
在 System.Workflow.Runtime.WorkflowRuntime.StartRuntime()
在 IndigoUtil.WFIndigoExtension.System.ServiceModel.IExtension<System.ServiceModel.ServiceHostBase>.Attach(ServiceHostBase owner) 位置 C:\Windows Workflow Foundation\Examples\ExpenseReporting\2006-03-05\IndigoUtil\WFIndigoExtension.cs:行号 51
在 System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
在 System.Collections.Generic.SynchronizedCollection`1.Add(T item)
在 ExpenseHost.Program.Main(String[] args) 位置 C:\Windows Workflow Foundation\Examples\ExpenseReporting\2006-03-05\ExpenseHost\Program.cs:行号 46
在 System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
I reinstall OS and install winfx beta2 Feb and wwf beta2 .It's still on.
By the way I can't install winfx beta2 May ,when the progress was stopped when 22M.
Terrible problem,what's wrong with my surroudings?Who can help me out?
Thanks,
Zack

