Web Service could not be resolved

Last post 05-07-2008, 10:12 PM by DavidL. 2 replies.
Sort Posts: Previous Next
  •  05-06-2008, 9:57 AM 23617

    Web Service could not be resolved

    All-

    I have a workflow process that I have added two web services to using the project references interface. They deployed and worked perfectly until I closed the K2 Designer and opened the project again. How it is as if the web service references are not there. I get the following error when I build the project. 

    "Assembly Reference WorkflowServices could not be resolved. Please ensure the the assembly is registered correctly and exists on disk."

     I have even tried to remove the web service calls from the project references and I get this error.

    System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
    at System.Reflection.AssemblyName.nInit(Assembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent)
    at System.Reflection.AssemblyName.nInit()
    at System.Reflection.AssemblyName..ctor(String assemblyName)
    at SourceCode.ProjectSystem.BuildProject.RemoveReference(Reference reference)
    at SourceCode.ProjectSystem.BuildProject.OnAnyItemRemoving(ItemChangeEventArgs e)
    at SourceCode.Framework.PersistableContainerObject.OnItemRemoving(ItemChangeEventArgs e)
    at SourceCode.Framework.PersistableObjectCollectionBase`2.Remove(TItem item)
    at SourceCode.Workflow.Authoring.Process.RemoveReference(Reference reference)
    at SourceCode.Workflow.Authoring.Process.OnAnyItemRemoving(ItemChangeEventArgs e)
    at SourceCode.Framework.PersistableContainerObject.OnItemRemoving(ItemChangeEventArgs e)
    at SourceCode.Framework.PersistableObjectCollectionBase`2.Remove(TItem item)
    at SourceCode.Workflow.Wizards.References.Project.ProjectReferencesPage.RemoveRibbonItem_Click(Object sender, RoutedEventArgs e)

    Any ideas of how to get the K2 Designer to recognize my web service references?

     

    Mike Trouard

  •  05-07-2008, 4:38 PM 23697 in reply to 23617

    Re: Web Service could not be resolved

    Hello Mike,

    I've seen this before maybe you can try the following work around:

    Manually edit the .kprx file using K2 Designer for Notepad. Remove all references to the assembly. Re-open in Visual Studio and re-add the web reference.

    Let me know if this helps.

     

    Cheers,

    Jon


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  05-07-2008, 10:12 PM 23701 in reply to 23697

    Re: Web Service could not be resolved

    I have seen this before as well, usually when I move the project containing web services to a different environment.  Jon is correct, you can manually edit the .kprx file and remove all references to the web service.  Make a backup copy of the .kprx before you edit it, just in case.  There is a ticket for this issue and it has been identified as a bug that will be fixed in a future release.
    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
View as RSS news feed in XML