{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2038","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2038/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2038/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2038/events","html_url":"https://github.com/dotnet/cli/issues/2038","id":143363788,"number":2038,"title":"dotnet.exe fail to execute in Azure Web Site","user":{"login":"troydai","id":1329240,"avatar_url":"https://avatars.githubusercontent.com/u/1329240?v=3","gravatar_id":"","url":"https://api.github.com/users/troydai","html_url":"https://github.com/troydai","followers_url":"https://api.github.com/users/troydai/followers","following_url":"https://api.github.com/users/troydai/following{/other_user}","gists_url":"https://api.github.com/users/troydai/gists{/gist_id}","starred_url":"https://api.github.com/users/troydai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troydai/subscriptions","organizations_url":"https://api.github.com/users/troydai/orgs","repos_url":"https://api.github.com/users/troydai/repos","events_url":"https://api.github.com/users/troydai/events{/privacy}","received_events_url":"https://api.github.com/users/troydai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/cli/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2016-03-24T21:24:07Z","updated_at":"2016-04-04T21:57:47Z","closed_at":"2016-04-04T21:27:06Z","body":"## Steps to reproduce\r\nTry to deploy MVC to Azure Web Sites through Kudu. Here's the sample app:\r\nhttps://github.com/troydai/HelloMvcKudu/tree/0950beaa48027a47496bd3426935cf0716f7e9be\r\n\r\nHere's the deployment script:\r\nhttps://github.com/troydai/HelloMvcKudu/blob/0950beaa48027a47496bd3426935cf0716f7e9be/deploy.ps1\r\n\r\n## Expected  behavior\r\nThe deployment script will execute the `dotnet.exe --version`. It is expected to be successful. \r\n\r\n## Actual behavior\r\nThe command failed quietly. No exception was thrown and no output was generated. Turn on the trace, here the end portion of it:\r\n```\r\nremote: Adding to native path: D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\r\nremote: \r\nremote: Adding to resources path: D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\r\nremote: \r\nremote: Failed to load the dll from D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\\coreclr.dll, HRESULT: 0x8007007E\r\nremote: \r\nremote: Failed to bind to coreclr\r\nremote: \r\nremote: Tracing enabled\r\nremote: \r\nremote: Own DLL path=[D:\\home\\site\\repository\\.dotnet\\dotnet.dll]\r\nremote: \r\nremote: Checking if CoreCLR path exists=[D:\\home\\site\\repository\\.dotnet\\coreclr.dll]\r\nremote: \r\nremote: Host operating in Muxer mode\r\nremote: \r\nremote: --- Executing in muxer mode...\r\nremote: \r\nremote: --- Resolving dotnet from working dir\r\nremote: \r\nremote: Probing path [D:\\home\\site\\repository\\global.json] for global.json\r\nremote: \r\nremote: Found global.json [D:\\home\\site\\repository\\global.json]\r\nremote: \r\nremote: --- Resolving CLI version from global json [D:\\home\\site\\repository\\global.json]\r\nremote: \r\nremote: CLI '/sdk/version' field not present/null in [D:\\home\\site\\repository\\global.json]\r\nremote: \r\nremote: --- Resolving SDK version from SDK dir [D:\\home\\site\\repository\\.dotnet\\sdk]\r\nremote: \r\nremote: Considering version... [.]\r\nremote: \r\nremote: Considering version... [..]\r\nremote: \r\nremote: Considering version... [1.0.0-beta-001943]\r\nremote: \r\nremote: Considering version... [1.0.0-beta-001986]\r\nremote: \r\nremote: No production version found, so using latest prerelease\r\nremote: \r\nremote: Checking if resolved SDK dir [D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986] exists\r\nremote: \r\nremote: Resolved SDK dir is [D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986]\r\nremote: \r\nremote: Found CLI SDK in: D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\r\nremote: \r\nremote: Using dotnet SDK dll=[D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\\dotnet.dll]\r\nremote: \r\nremote: Runtime config [D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\\dotnet.runtimeconfig.json] is valid=[1]\r\nremote: \r\nremote: Executing dotnet.dll as a standalone app as per config file [D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\\dotnet.runtimeconfig.json]\r\nremote: \r\nremote: Loaded library from D:\\home\\site\\repository\\.dotnet\\sdk\\1.0.0-beta-001986\\hostpolicy.dll\r\nremote: \r\nremote: \r\nremote: Error - Changes committed to remote repository but deployment to website failed.\r\nTo https://ktest@trdai-dotnet-001.scm.azurewebsites.net:443/trdai-dotnet-001.git\r\n\r\n```\r\n\r\nIn the scm, execute the dotnet.exe has the same effect:\r\n<img width=\"437\" alt=\"screen shot 2016-03-24 at 2 21 33 pm\" src=\"https://cloud.githubusercontent.com/assets/1329240/14031793/cd0069ec-f1cb-11e5-8cdb-bef877169da7.png\">\r\n\r\nHowever when it is executed through the `corehost.exe` under the sdk folder, it works fine:\r\n<img width=\"715\" alt=\"screen shot 2016-03-24 at 2 23 25 pm\" src=\"https://cloud.githubusercontent.com/assets/1329240/14031830/08faf76e-f1cc-11e5-9ac2-a598b70a494a.png\">\r\n\r\nWorks for build 1986, too:\r\n<img width=\"1051\" alt=\"screen shot 2016-03-24 at 3 21 40 pm\" src=\"https://cloud.githubusercontent.com/assets/1329240/14033022/2f424654-f1d4-11e5-98e3-098e0cd06dbb.png\">\r\n\r\nFull log:\r\n\r\n[dotnet_log.txt](https://github.com/dotnet/cli/files/188794/dotnet_log.txt)\r\n\r\nEnvironment:\r\n\r\n```\r\nALLUSERSPROFILE=D:\\local\\ProgramData\r\nAPPDATA=D:\\local\\AppData\r\nAPPSETTING_ScmType=LocalGit\r\nAPPSETTING_WEBSITE_AUTH_ENABLED=False\r\nAPPSETTING_WEBSITE_NODE_DEFAULT_VERSION=4.2.3\r\nAPPSETTING_WEBSITE_SITE_NAME=trdai-dotnet-001\r\nAPP_POOL_CONFIG=C:\\DWASFiles\\Sites\\#1trdai-dotnet-001\\Config\\applicationhost.config\r\nAPP_POOL_ID=~1trdai-dotnet-001\r\naspnet:DisableFcnDaclRead=true\r\naspnet:PortableCompilationOutput=true\r\naspnet:PortableCompilationOutputSnapshotType=Microsoft.Web.Compilation.Snapshots.SnapshotHelper, Microsoft.Web.Compilation.Snapshots, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\nAZURE_JETTY9_CMDLINE=-Djava.net.preferIPv4Stack=true -Djetty.port=%HTTP_PLATFORM_PORT% -Djetty.base=\"D:\\Program Files (x86)\\jetty-distribution-9.1.0.v20131115\" -Djetty.webapps=\"d:\\home\\site\\wwwroot\\webapps\"  -jar \"D:\\Program Files (x86)\\jetty-distribution-9.1.0.v20131115\\start.jar\" etc\\jetty-logging.xml\r\nAZURE_JETTY9_HOME=D:\\Program Files (x86)\\jetty-distribution-9.1.0.v20131115\r\nAZURE_TOMCAT7_CMDLINE=-Dport.http=%HTTP_PLATFORM_PORT% -Djava.util.logging.config.file=\"D:\\Program Files (x86)\\apache-tomcat-7.0.50\\conf\\logging.properties\" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsite.logdir=\"d:/home/LogFiles/\" -Dsite.tempdir=\"d:\\home\\site\\workdir\" -classpath \"D:\\Program Files (x86)\\apache-tomcat-7.0.50\\bin\\bootstrap.jar;D:\\Program Files (x86)\\apache-tomcat-7.0.50\\bin\\tomcat-juli.jar\" -Dcatalina.base=\"D:\\Program Files (x86)\\apache-tomcat-7.0.50\"  -Djava.io.tmpdir=\"d:\\home\\site\\workdir\" org.apache.catalina.startup.Bootstrap\r\nAZURE_TOMCAT7_HOME=D:\\Program Files (x86)\\apache-tomcat-7.0.50\r\nAZURE_TOMCAT8_CMDLINE=-Dport.http=%HTTP_PLATFORM_PORT% -Djava.util.logging.config.file=\"D:\\Program Files (x86)\\apache-tomcat-8.0.23\\conf\\logging.properties\" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsite.logdir=\"d:/home/LogFiles/\" -Dsite.tempdir=\"d:\\home\\site\\workdir\" -classpath \"D:\\Program Files (x86)\\apache-tomcat-8.0.23\\bin\\bootstrap.jar;D:\\Program Files (x86)\\apache-tomcat-8.0.23\\bin\\tomcat-juli.jar\" -Dcatalina.base=\"D:\\Program Files (x86)\\apache-tomcat-8.0.23\"  -Djava.io.tmpdir=\"d:\\home\\site\\workdir\" org.apache.catalina.startup.Bootstrap\r\nAZURE_TOMCAT8_HOME=D:\\Program Files (x86)\\apache-tomcat-8.0.23\r\nCommonProgramFiles=D:\\Program Files (x86)\\Common Files\r\nCommonProgramFiles(x86)=D:\\Program Files (x86)\\Common Files\r\nCommonProgramW6432=D:\\Program Files\\Common Files\r\nCOMPUTERNAME=RD0003FF80F0C8\r\nComSpec=D:\\Windows\\system32\\cmd.exe\r\nCOREHOST_TRACE=1\r\ndeployment_branch=master\r\nDEPLOYMENT_SOURCE=D:\\home\r\nDEPLOYMENT_TARGET=D:\\home\\site\\wwwroot\r\nDIRCMD=/OG /ON\r\nEnableNuGetPackageRestore=true\r\nFP_NO_HOST_CHECK=NO\r\nGO_WEB_CONFIG_TEMPLATE=C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\scripts\\go.web.config.template\r\nGYP_MSVS_VERSION=2015\r\nHOME=D:\\home\r\nHOMEDRIVE=D:\r\nHOMEPATH=\\home\r\nHOME_EXPANDED=C:\\DWASFiles\\Sites\\#1trdai-dotnet-001\\VirtualDirectory0\r\nHTTP_HOST=trdai-dotnet-001.scm.azurewebsites.net\r\nJAVA_HOME=D:\\Program Files\\Java\\jdk1.7.0_51\r\nKUDU_SELECT_NODE_VERSION_CMD=node \"C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\scripts\\selectNodeVersion\"\r\nKUDU_SELECT_PYTHON_VERSION_CMD=python \"C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\scripts\\select_python_version.py\"\r\nKUDU_SYNC_CMD=kudusync\r\nLOCALAPPDATA=D:\\local\\LocalAppData\r\nLOCAL_EXPANDED=C:\\DWASFiles\\Sites\\#1trdai-dotnet-001\r\nMSBUILD_PATH=D:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe\r\nNPM_JS_PATH=D:\\Program Files (x86)\\npm\\3.5.1\\node_modules\\npm\\bin\\npm-cli.js\r\nNUGET_EXE=C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\scripts\\nuget.exe\r\nNUMBER_OF_PROCESSORS=1\r\nOS=Windows_NT\r\nPath=C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\NativeBinaries/x86;C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\scripts;D:\\Program Files (x86)\\MSBuild\\14.0\\Bin;D:\\Program Files (x86)\\Git\\bin;D:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;D:\\Program Files (x86)\\Microsoft SQL Server\\110\\Tools\\Binn;D:\\Program Files (x86)\\Microsoft SDKs\\F#\\3.1\\Framework\\v4.0;D:\\Program Files (x86)\\npm\\3.5.1;C:\\DWASFiles\\Sites\\#1trdai-dotnet-001\\AppData\\npm;D:\\Program Files (x86)\\bower\\1.3.12;D:\\Program Files (x86)\\grunt\\0.1.13;D:\\Program Files (x86)\\gulp\\3.9.0.1;D:\\home\\site\\deployments\\tools;D:\\Program Files (x86)\\nodejs\\4.2.3;D:\\Windows\\system32;D:\\Windows;D:\\Windows\\System32\\Wbem;D:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;D:\\Users\\Administrator\\AppData\\Roaming\\npm;D:\\Program Files (x86)\\nodejs\\;d:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET Web Pages\\v1.0\\;D:\\Program Files\\Microsoft Network Monitor 3\\;D:\\Program Files (x86)\\Mercurial\\;D:\\Program Files (x86)\\PHP\\v5.4;D:\\Python27;\r\nPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY\r\nPROCESSOR_ARCHITECTURE=x86\r\nPROCESSOR_ARCHITEW6432=AMD64\r\nPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 2, GenuineIntel\r\nPROCESSOR_LEVEL=6\r\nPROCESSOR_REVISION=3f02\r\nProgramData=D:\\local\\ProgramData\r\nProgramFiles=D:\\Program Files (x86)\r\nProgramFiles(x86)=D:\\Program Files (x86)\r\nProgramW6432=D:\\Program Files\r\nPROMPT=$P$G\r\nPSModulePath=D:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\;d:\\Program Files\\Microsoft Security Client\\MpProvider\\;D:\\Program Files\\Microsoft Message Analyzer\\PowerShell\\\r\nPUBLIC=D:\\Users\\Public\r\nREGION_NAME=South Central US\r\nREMOTEDEBUGGINGBITVERSION=vx86\r\nREMOTEDEBUGGINGPORT=\r\nREWRITETABLE=\r\nScmType=LocalGit\r\nSCM_BUILD_ARGS=\r\nSCM_COMMAND_IDLE_TIMEOUT=60\r\nSCM_DNVM_PS_PATH=C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\scripts\\dnvm.ps1\r\nSCM_GIT_EMAIL=windowsazure\r\nSCM_GIT_USERNAME=windowsazure\r\nSCM_LOGSTREAM_TIMEOUT=1800\r\nSCM_TRACE_LEVEL=1\r\nSELECT_LATEST_VERSION_CMD=C:\\Program Files (x86)\\SiteExtensions\\Kudu\\53.50323.2151\\bin\\scripts\\selectLatestVersion.ps1\r\nSITE_BITNESS=x86\r\nSystemDrive=D:\r\nSystemRoot=D:\\Windows\r\nTEMP=D:\\local\\Temp\r\nTMP=D:\\local\\Temp\r\nUSERDOMAIN=WORKGROUP\r\nUSERNAME=RD0003FF80F0C8$\r\nUSERPROFILE=D:\\local\\UserProfile\r\nVCInstallDir_140=D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\\r\nVCTargetsPath=D:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\V140\\\r\nWEBJOBS_DEPLOY_CMD=deploy_webjobs.cmd\r\nwebpages:Enabled=true\r\nwebpages:Version=3.0.0.0\r\nWEBROOT_PATH=D:\\home\\site\\wwwroot\r\nWEBSITE_AUTH_ENABLED=False\r\nWEBSITE_COMPUTE_MODE=Dedicated\r\nWEBSITE_HOSTNAME=trdai-dotnet-001.azurewebsites.net\r\nWEBSITE_HTTPLOGGING_ENABLED=0\r\nWEBSITE_IIS_SITE_NAME=~1trdai-dotnet-001\r\nWEBSITE_INSTANCE_ID=fadd7e2eb86d410651a344a3aa107a50e8049b18e0409ca5c14b8acb50613063\r\nWEBSITE_LOCALCACHE_ENABLED=False\r\nWEBSITE_NODE_DEFAULT_VERSION=4.2.3\r\nWEBSITE_OWNER_NAME=6de210d0-cc8d-4f7e-ba0b-295f894b0638+trdai-test-01-SouthCentralUSwebspace\r\nWEBSITE_SCM_ALWAYS_ON_ENABLED=0\r\nWEBSITE_SCM_SEPARATE_STATUS=1\r\nWEBSITE_SITE_NAME=trdai-dotnet-001\r\nWEBSITE_SKU=Premium\r\nWEBSITE_VOLUME_TYPE=PrimaryStorageVolume\r\nWEBSOCKET_CONCURRENT_REQUEST_LIMIT=-1\r\nwindir=D:\\Windows\r\nwindows_tracing_flags=\r\nwindows_tracing_logfile=\r\nX-MS-SITE-RESTRICTED-JWT=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImloMF9oMU5aZzR4MTlBeWhzaExZU0YxcUxSSSJ9.eyJpc3MiOiJodHRwczovL2dlb21hc3Rlci5henVyZXdlYnNpdGVzLndpbmRvd3MubmV0LyIsImF1ZCI6Imh0dHBzOi8vdHJkYWktZG90bmV0LTAwMS5zY20uYXp1cmV3ZWJzaXRlcy5uZXQvIiwibmJmIjoxNDU4ODU3MDcxLCJleHAiOjE0NTg4NjA2NzEsInVuaXF1ZV9uYW1lIjoia3Rlc3QifQ.pyB6nZih321eGnvFK3_GkWp6xAMV79R609uqVYwz5vpV2lKLQ3QARVL-k5YjR2v6uzwnLZIVLV9jdLZv8tCw0OdmJuxpJ4SqALNqGMd5uj8xsHqxNvWqvXj7K9fhEZCHz3aP_RpJZrmEzKwy4wait1zy8qLnxXRLd5PQ2XIy-L3H6xje_2s73ecKWYuMz15FTm9_UR6-l686OU6Fgx5ZonGlYBXqiW7z8KoPC7NSDeSwdrnm0_81UrKE3mXOxQo1s_qgV5tDLcYr2Gd-4HZdd23hNyCSiRAchMlid_VtkvKcCpocuEVC0CnXs9thu5sRtX7iR79JG-NeBUkUBOZC5Q\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/205514847","html_url":"https://github.com/dotnet/cli/issues/2038#issuecomment-205514847","issue_url":"https://api.github.com/repos/dotnet/cli/issues/2038","id":205514847,"user":{"login":"troydai","id":1329240,"avatar_url":"https://avatars.githubusercontent.com/u/1329240?v=3","gravatar_id":"","url":"https://api.github.com/users/troydai","html_url":"https://github.com/troydai","followers_url":"https://api.github.com/users/troydai/followers","following_url":"https://api.github.com/users/troydai/following{/other_user}","gists_url":"https://api.github.com/users/troydai/gists{/gist_id}","starred_url":"https://api.github.com/users/troydai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troydai/subscriptions","organizations_url":"https://api.github.com/users/troydai/orgs","repos_url":"https://api.github.com/users/troydai/repos","events_url":"https://api.github.com/users/troydai/events{/privacy}","received_events_url":"https://api.github.com/users/troydai/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T21:57:47Z","updated_at":"2016-04-04T21:57:47Z","body":"If not this PR then something else is fixing this bug. I tested executing muxer directly just now on 2203 build and the original issue doesn't repo."}}