Vihang's Re-hosting Workflow Designer example errors
Vihang,
I am receiving the following message when using your Re-hosting example code:
Property value is not valid.
The Service 'System.Workflow.ComponentModel.Design.IExtendedUIService' musy be installed for this operation to succeed. Ensure that this service is available.
Have you seen this before? Is there a reason I cannot view the Invoked handler in the properties windows?
I look forward to hearing from you soon.
Thanks in advance,
John P.
John - this may or may not be a helpful answer :) But you will find this will almost every sample out there. At some point - something in the designer is going to use a "service" that isn't installed in the designer context.
In fact the WF architecture of services and the designer services architecture are very similar in this respect.
I'd recommend implementing that interface and adding it to the services that are available in your designer.
Here is a template - the implementation is up to you really, although you could just take out the exceptions and it will work and be a no-op service. I am guessing the method that is being called is NavigateToProperty. You'll have to add this as a service (I generally do this in my WorkflowLoader.Initialize).
public
class ExtendedUIService : IExtendedUIService{
#region
IExtendedUIService Memberspublic void AddAssemblyReference(System.Reflection.AssemblyName assemblyName){
throw new Exception("The method or operation is not implemented.");}
public void AddDesignerActions(DesignerAction[] actions){
throw new Exception("The method or operation is not implemented.");}
public DialogResult AddWebReference(out Uri url, out Type proxyClass){
throw new Exception("The method or operation is not implemented.");}
public Type GetProxyClassForUrl(Uri url){
throw new Exception("The method or operation is not implemented.");}
public ITypeDescriptorContext GetSelectedPropertyContext(){
throw new Exception("The method or operation is not implemented.");}
public Uri GetUrlForProxyClass(Type proxyClass){
throw new Exception("The method or operation is not implemented.");}
public Dictionary<string, Type> GetXsdProjectItemsInfo(){
throw new Exception("The method or operation is not implemented.");}
public bool NavigateToProperty(string propName){
throw new Exception("The method or operation is not implemented.");}
public void RemoveDesignerActions(){
throw new Exception("The method or operation is not implemented.");}
public void ShowToolsOptions(){
throw new Exception("The method or operation is not implemented.");}
#endregion
}
Jon,
I am still getting the same errors. This template causes error when running my code.
I commented out certain things in this template so that I can run the code, but I get the same errors when trying to access properties via the UI designer.
Let me know if you want to see the code with your template that is not working as expected?
Thanks in advance,
John Portnov