This project is read-only.
2
Vote

Invalid ServiceDefinition.csdef XML with DefaultScaffolder and WAZ SDK 1.6

description

Looks like the schema for ServiceDefinition.csdef either changed or is being enforced now. This error comes from the DefaultScaffolder
 
c:\Temp\WordPressScaffoldv2\build\WordPress\ServiceDefinition.csdef (15, 10): Error CloudServices051 : The XML specification is not valid: The required attribute 'value' is missing.
c:\Temp\WordPressScaffoldv2\build\WordPress\ServiceDefinition.csdef (16, 14): Error CloudServices051 : The XML specification is not valid: The element 'Environment' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition' has invalid child element 'RoleInstanceValue' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition'. List of possible elements expected: 'Variable' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition'.
c:\Temp\WordPressScaffoldv2\build\WordPress\ServiceDefinition.csdef (17, 13): Error CloudServices051 : The XML specification is not valid: The 'Environment' start tag on line 14 does not match the end tag of 'Variable'. Line 17, position 13.
 
That error is from the following
<Startup>
  <Task commandLine="add-environment-variables.cmd" executionContext="elevated" taskType="simple" />
  <Task commandLine="install-php.cmd" executionContext="elevated" taskType="simple">
    <Environment>
   *** <Variable name="EMULATED" /> ***
        *** <RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" /> ***
      </Variable>
    </Environment>
  </Task>
</Startup>

comments

maartenba wrote Nov 30, 2011 at 11:00 PM

** Closed by maartenba 11/28/2011 10:44 PM

blobaugh wrote Nov 30, 2011 at 11:00 PM

Not resolved. Please fix this in the DefaultScaffolder ServiceDefinition files

wrote Nov 30, 2011 at 11:01 PM

wrote Mar 9, 2012 at 3:27 PM

augustohp wrote Mar 9, 2012 at 3:29 PM

Removing the whole <Variable>...</Variable> node and its contents, leaving the <Environment> node empty should fix the error.

wrote Feb 14, 2013 at 8:27 PM