<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:error code 307 in building RA sample under VS2019 &amp;amp; 2017 community and win10 in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1309492#M4853</link>
    <description>&lt;P&gt;Hello SunnySun,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The problem seems that the command is not able to find the policy.in file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The default location of policy.in is under &lt;I&gt;sgx-ra-sample/vs/policy.in&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;During the pre-build event, the powershell command is executed from directory &lt;I&gt;sgx-ra-sample/vs/service-provider&lt;/I&gt;. Hence we place ../ in front of policy.in in the powershell command line so that it can policy.in one level up.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So, knowing that the powershell command runs in &lt;I&gt;sgx-ra-sample/vs/service-provider &lt;/I&gt;you have to tell the powershell command the correct relative path to policy.in.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This works on my VS 2019 environment.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 24 Aug 2021 20:28:48 GMT</pubDate>
    <dc:creator>JesusG_Intel</dc:creator>
    <dc:date>2021-08-24T20:28:48Z</dc:date>
    <item>
      <title>error code 307 in building RA sample under VS2019 &amp; 2017 community and win10</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1308992#M4848</link>
      <description>&lt;P class="sub_section_element_selectors"&gt;Hi, Intel&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;When I build the RA sample code of&lt;A class="sub_section_element_selectors" href="https://github.com/intel/sgx-ra-sample" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/SPAN&gt;sgx-ra-sample&lt;/A&gt;&amp;nbsp;under VS2019 &amp;amp; 2017 community and win10,&amp;nbsp; there are two errors of MSB 307 and the code is 1 and 5. The screen shot as follows.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SunnySun_0-1629724123103.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/18946i507189E96FDD7246/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="SunnySun_0-1629724123103.png" alt="SunnySun_0-1629724123103.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN&gt;I suspect this error may due to insufficient permissions when building sp and mrsigner, but I still encounter these two problems when I open the RA project with administrator permissions.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN&gt;Can you tell me how to fix this problem. Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 13:14:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1308992#M4848</guid>
      <dc:creator>SunnySun</dc:creator>
      <dc:date>2021-08-23T13:14:11Z</dc:date>
    </item>
    <item>
      <title>Re:error code 307 in building RA sample under VS2019 &amp; 2017 community and win10</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1309094#M4850</link>
      <description>&lt;P&gt;Hello SunnySun,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The build events associated with the projects mrsigner and sp need to be modified.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In mrsigner, in the Post-Build Event, change $(IntDir) to $(OutDir).&lt;/P&gt;&lt;P&gt;&lt;B&gt;Edit &lt;/B&gt;&lt;I&gt;mrsigner&lt;/I&gt; -&amp;gt; &lt;I&gt;Properties&lt;/I&gt; -&amp;gt; &lt;I&gt;Build Events&lt;/I&gt; -&amp;gt; &lt;I&gt;Post-Build Event -&amp;gt; Command Line&lt;/I&gt;: "$(TargetPath)" $(IntDir)enclave_sigstruct_raw &amp;gt; $(IntDir)enclave_mrsigner.txt -&amp;gt;&amp;nbsp;"$(TargetPath)" &lt;B&gt;$(OutDir)&lt;/B&gt;enclave_sigstruct_raw &amp;gt; $&lt;B&gt;(OutDir)&lt;/B&gt;enclave_mrsigner.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In sp, in the Pre-Build Event, add ..\ to &lt;I&gt;policy.in&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;&lt;B&gt;Edit &lt;/B&gt;&lt;I&gt;sp&lt;/I&gt; -&amp;gt; &lt;I&gt;Properties&lt;/I&gt; -&amp;gt; &lt;I&gt;Build Events&lt;/I&gt; -&amp;gt; &lt;I&gt;Pre-Build Event&lt;/I&gt; - &lt;I&gt;Command Line&lt;/I&gt;: &amp;nbsp;powershell -command "$mrs=Get-Content -Path ..\mrsigner\$(IntDir)enclave_mrsigner.txt; ( ( Get-Content -Path &lt;B&gt;..\&lt;/B&gt;policy.in -Raw ) -replace '@MRSIGNER@',$mrs ) | Set-Content $(IntDir)policy.cmd"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Aug 2021 19:15:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1309094#M4850</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-08-23T19:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re:error code 307 in building RA sample under VS2019 &amp; 2017 community and win10</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1309227#M4852</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN&gt;Jesus G.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help. I have solved these two problems in VS 2017, and the problem in &lt;SPAN&gt;project mrsigner in VS 2019.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;However, in the VS 2019, the problem still exists in the project sp.&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;I don't know if it is related to the version of VS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;SunnySun&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 03:05:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1309227#M4852</guid>
      <dc:creator>SunnySun</dc:creator>
      <dc:date>2021-08-24T03:05:12Z</dc:date>
    </item>
    <item>
      <title>Re:error code 307 in building RA sample under VS2019 &amp; 2017 community and win10</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1309492#M4853</link>
      <description>&lt;P&gt;Hello SunnySun,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The problem seems that the command is not able to find the policy.in file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The default location of policy.in is under &lt;I&gt;sgx-ra-sample/vs/policy.in&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;During the pre-build event, the powershell command is executed from directory &lt;I&gt;sgx-ra-sample/vs/service-provider&lt;/I&gt;. Hence we place ../ in front of policy.in in the powershell command line so that it can policy.in one level up.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So, knowing that the powershell command runs in &lt;I&gt;sgx-ra-sample/vs/service-provider &lt;/I&gt;you have to tell the powershell command the correct relative path to policy.in.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This works on my VS 2019 environment.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Aug 2021 20:28:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1309492#M4853</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-08-24T20:28:48Z</dc:date>
    </item>
    <item>
      <title>Re:error code 307 in building RA sample under VS2019 &amp; 2017 community and win10</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1310911#M4867</link>
      <description>&lt;P&gt;Hello SunnSun,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you still need help with this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Aug 2021 20:03:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1310911#M4867</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-08-30T20:03:30Z</dc:date>
    </item>
    <item>
      <title>Re:error code 307 in building RA sample under VS2019 &amp; 2017 community and win10</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1311816#M4872</link>
      <description>&lt;P&gt;Hello SunnySun,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope you have been able to resolve your issue. I have not heard back from you so I will close this inquiry now. If you need further assistance, please open a new thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2021 20:37:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/error-code-307-in-building-RA-sample-under-VS2019-amp-2017/m-p/1311816#M4872</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-09-02T20:37:13Z</dc:date>
    </item>
  </channel>
</rss>

