Relative path for implementationProject in hostApplication section

Topics: General Discussion Forum, Service Factory Modeling Edition Forum
Aug 26, 2008 at 1:01 PM
Edited Aug 26, 2008 at 3:38 PM
I'm trying to use a relative path in the config-file as such:

<?xml version="1.0" encoding="utf-8"?>
<hostDesignerModel dslVersion="1.0.0.0" Id="96e82898-c252-4e43-93b7-3792e2e0dfd6" namespace="http://test" xmlns="http://schemas.microsoft.com/dsltools/HostDesigner">
  <hostApplications>
    <hostApplication name="Test" implementationProject="..\Tests\Test" implementationTechnology="{44e8a8c3-3651-4932-bae3-1faf3684e2f3}|WCF|WCF Extensions">
      <serviceDescriptions>
         ...

When I try to access the service description using Host Explorer I get the following error message:

    The project name '..\Tests\Test' was not found in the solution.

Does anybody know how I can use relative paths here? Or is there some other mechanism which will allow Host Explorer to resolve the path to the referenced project?
Sep 3, 2010 at 3:55 PM

I'm looking for an answer to the same issue. bstenberg64, have you found a solution ?

Regards,

Milton.

Sep 3, 2010 at 7:57 PM

No, Milton, sorry to say that we didn't find a solution or a workaround for that matter. We finally just learned to live with it :)

/Björn

Sep 4, 2010 at 12:28 AM

There is actually a workaround that it might help. Here are the steps:

- Open the PMT (ProjectMappingTable) file and look for your host project element.

- Copy the ProjectId value.

- Open then host model (rigth click and "Open With..." option) and select "Automatic Editor Selector (XML)"

- Paste the GUID value in the "hostApplication" element, "implementationProject" attribtue value.

- Save and reopne model.

This way you will get the host project with no app path issues for portability.

Regards,

Hernan