powershell - Error: Need to specify the physical directory for the virtual path 'Web/' of role -


i'm following answer @ bottom of question here: asp.net 5 web application azure web role? trying build azure web role asp.net core.

when run powershell script error:

error cloudservices077: need specify physical directory virtual path 'web/' of role

if knows way use azure web roles in asp.net core too.

i'm using cspack try , configure this.

powershell script:

# path cspack $cspackpath = join-path $env:programfiles 'microsoft sdks\azure\.net sdk\v2.8\bin\cspack.exe'  $packagepath = 'i:\users\myusername\documents\visual studio 2015\projects\soundvast\soundvast.azure\soundvast.cspkg' $servicedefinitionfile = 'i:\users\myusername\documents\visual studio 2015\projects\soundvast\soundvast.azure\servicedefinition.csdef' $webrolename = 'webrole1' $webrolepath = 'i:\users\myusername\documents\visual studio 2015\projects\soundvast\soundvast.azure'  # define cspack parameters $cspackparameter = @(         $servicedefinitionfile,         "/role:$webrolename;$webrolepath;",         "/sites:$webrolename;soundvast;$webrolepath",         "/out:$packagepath"     )  # execute cspack & $cspackpath @cspackparameter 

servicedefinition.csdef

<?xml version="1.0" encoding="utf-8"?> <servicedefinition name="soundvast.azure" xmlns="http://schemas.microsoft.com/servicehosting/2008/10/servicedefinition" schemaversion="2015-04.2.6">   <webrole name="webrole1" vmsize="small">     <sites>       <site name="web">         <bindings>           <binding name="endpoint1" endpointname="endpoint1" />         </bindings>       </site>     </sites>     <configurationsettings>       <setting name="microsoft.windowsazure.plugins.diagnostics.connectionstring" />     </configurationsettings>     <endpoints>       <inputendpoint name="endpoint1" protocol="http" port="80" />     </endpoints>   </webrole> </servicedefinition> 

serviceconfiguration.cloud & serviceconfiguration.local

<?xml version="1.0" encoding="utf-8"?> <serviceconfiguration servicename="soundvast.azure" xmlns="http://schemas.microsoft.com/servicehosting/2008/10/serviceconfiguration" osfamily="4" osversion="*" schemaversion="2015-04.2.6">   <role name="webrole1">     <instances count="1" />     <configurationsettings>       <setting name="microsoft.windowsazure.plugins.diagnostics.connectionstring" value="usedevelopmentstorage=true" />     </configurationsettings>   </role> </serviceconfiguration> 

folder structure (if makes difference...) enter image description here

i missing phsycial directory on line: <site name="web" physicaldirectory="../soundvast">. after ran script , created package me. documentation on not good.

<?xml version="1.0" encoding="utf-8"?> <servicedefinition name="soundvast.azure" xmlns="http://schemas.microsoft.com/servicehosting/2008/10/servicedefinition" schemaversion="2015-04.2.6">   <webrole name="webrole1" vmsize="small">     <sites>       <site name="web" physicaldirectory="../soundvast">         <bindings>           <binding name="endpoint1" endpointname="endpoint1" />         </bindings>       </site>     </sites>     <configurationsettings>       <setting name="microsoft.windowsazure.plugins.diagnostics.connectionstring" />     </configurationsettings>     <endpoints>       <inputendpoint name="endpoint1" protocol="http" port="80" />     </endpoints>   </webrole> </servicedefinition> 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -