locked
error in Publish orchestrations as web services RRS feed

  • Question

  • hi, i am trying to publish my orchestration as a web service but i am getting the following error:

    Failed to create project "<projectName>".
    Failed to load schemas.
    The given key was not present in the dictionary.

    any idea?

     

    thanks in advance

    Tuesday, June 1, 2010 7:11 AM

Answers

  • I found the problem, its because of one of my schemas, there is an element referencing a remote namespace. thats why i couldnt publish it as web service

    • Marked as answer by Mazin Alassaf Thursday, June 3, 2010 11:40 AM
    Thursday, June 3, 2010 11:40 AM

All replies

  • Hi,

    Check a couple of things:

    Is the orchestration port you will expose as a webservice marked as public?

    Any schema assemblies referenced by the orchestration that are needed to create the webservice need to be in the GAC. Otherwise the web service is unable to find them to create the message types and WSDL.

     


    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    Tuesday, June 1, 2010 8:56 AM
    Moderator
  • This could be due to several reasons. I hope you are not using BTS 2004 so this fix might not be in use.
    Are you able to deploy the application? Try deploying the application first because it seems like your schemas dll is not available and/or your Key file is not present. While publishing as web service you will need to select the dll of the applicaiton. This assembly is being referenced by the web service. So if there is some compilation error on your project you can't publish your orchestration web service.

    Some similar theread might be helpful to you: http://www.keyongtech.com/331525-error-in-biztalk-web-services

    Also this is another similar error but I think due to other problem: http://social.msdn.microsoft.com/Forums/en/biztalkgeneral/thread/6f67e690-7dbc-4f41-ba19-4240f5b3ef78


    Please mark it as Answer if this answers your question
    Thanks.
    Mo
    The contents I write here is my personal views, not the view of my employer and anyone else.
    Tuesday, June 1, 2010 8:57 AM
  • I can deploy the project, and the schemas dll exists in GAC, during the creation this error occurs
    Tuesday, June 1, 2010 11:31 AM
  • Also as Randal suggested, have you checked your orchestration ports are public?

    You can try with sample on your SDK folder, i.e. ExposeWebService (BizTalk Server Sample) following the steps given, and see what happens then.


    Please mark it as Answer if this answers your question
    Thanks.
    Mo
    The contents I write here is my personal views, not the view of my employer and anyone else.
    Tuesday, June 1, 2010 7:56 PM
  • I found the problem, its because of one of my schemas, there is an element referencing a remote namespace. thats why i couldnt publish it as web service

    • Marked as answer by Mazin Alassaf Thursday, June 3, 2010 11:40 AM
    Thursday, June 3, 2010 11:40 AM