Closed Lowmach1ne closed 4 years ago
Hi @Lowmach1ne,
Unfortunately I am not that familiar with Plesk, but I suspect this is due to it being a Plesk environment and that there is some condition used in the Plesk set up that is not working here.
Would you please follow the steps here https://github.com/Azure/App-Service-Migration-Assistant/wiki/How-the-Assistant-Works#what-information-is-sent-for-assessments and post the output you get for step 3 (the iisConfigAssistant.exe GetSiteList command)? I'm expecting this to return an error including a little more information than what was displayed in the UI, and should give us a better idea of what's happening.
Thanks, Kristina
Hi @krolson,
Sorry for the delay, there is the result of this cmd :
C:\Users\Administrator\AppData\Local\Programs\azure-appService-migrationAssistant\iisConfigAssistant>iisConfigAssistant.exe GetSiteList { "HResult": "80070003", "DisplayMessage": "The system cannot find the path specified. (Exception from HRESULT: 0x80070003)", "TelemetryMessage": "An unhandled exception occurred. HResult=80070003", "StackTrace": " at Microsoft.Web.Administration.Interop.IAppHostAdminManager.GetAdminSection(String bstrSectionName, String bstrPath)\r\n at Microsoft.Web.Administration.Configuration.GetSectionInternal(C ing[] args) in D:\\a\\1\\s\\src\\IisConfigurationHelper\\iisConfigAssistant\\Program.cs:line 44" }
Thank you
Hi, is there any update on this? I am getting the same error message with IIS running? I am also running server 2012 R2.
Hello,
We have not determined the root cause of this error, and have not been able to reproduce it here.
I have some ideas, though.
Are you running a 32 bit or 64 bit version of Windows, and is it Windows 7 or Windows 2008R2?
Also, could you please check the following registry keys and tell me the values for MajorVersion and MinorVersion in each:
HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\InetStp
Thanks, -Wade
From: jbwalkup notifications@github.com Sent: Wednesday, February 5, 2020 8:32 AM To: Azure/App-Service-Migration-Assistant App-Service-Migration-Assistant@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [Azure/App-Service-Migration-Assistant] The system cannot find the path specified. (#22)
Hi, is there any update on this? I am getting the same error message with IIS running?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2FApp-Service-Migration-Assistant%2Fissues%2F22%3Femail_source%3Dnotifications%26email_token%3DAJOMS7NTHL3YVVP5SPZLLA3RBLSWZA5CNFSM4J6CNO52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK4CH2A%23issuecomment-582493160&data=02%7C01%7Cwadeh%40microsoft.com%7C02e5fb6d74d946c2128408d7aa58e19a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637165171032109054&sdata=1IJgabY%2BiQxMxYHgS8f9QeEkyftsZ9V2ccQn%2BpZQiP0%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJOMS7PLGR56XXPZIUQJKN3RBLSWZANCNFSM4J6CNO5Q&data=02%7C01%7Cwadeh%40microsoft.com%7C02e5fb6d74d946c2128408d7aa58e19a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637165171032119052&sdata=eJWtK%2BHPdWpFxb7LAeKvUlwiDZQr%2B%2FuOZBjSvmiOtTg%3D&reserved=0.
Hi, thanks for the quick reply. It is on windows server 2012 R2 64 bit. HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp Major=8 minor=5 HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\InetStp Major=8 minor=5
Hmm. I was hoping to find some problem there, but those entries are correct.
Based on the call stack, it looks like it’s failing trying to initialize the IIS configuration. Unfortunately, the exception is being thrown down in native code, and there is not enough information in the managed call stack to piece it together without a local repro of the problem.
I know that there are some things that can induce a similar (but not identical) exception. For example, if you are using redirection.config to share configuration with multiple servers, or otherwise move the IIS configuration files, you can run into a similar problem if the path doesn’t exist. It is also possible that there is something unusual in the sections defined in your applicationhost.config file.
If you can share your applicationhost.config file, I would be willing to try and use it to reproduce the problem here. If you choose to do that, please take a close look at the file contents and make sure that you redact any sensitive information inside, such as usernames, passwords, etc. Also, if there are any path names that you don’t want to share, you would need to sanitize them.
Thanks, -Wade
From: jbwalkup notifications@github.com Sent: Wednesday, February 5, 2020 9:54 AM To: Azure/App-Service-Migration-Assistant App-Service-Migration-Assistant@noreply.github.com Cc: Wade Hilmo wadeh@microsoft.com; Comment comment@noreply.github.com Subject: Re: [Azure/App-Service-Migration-Assistant] The system cannot find the path specified. (#22)
Hi, thanks for the quick reply. It is on windows server 2012 R2 64 bit. HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp Major=8 minor=5 HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\InetStp Major=8 minor=5
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2FApp-Service-Migration-Assistant%2Fissues%2F22%3Femail_source%3Dnotifications%26email_token%3DAJOMS7LVAOY57M4ZFZTB35DRBL4LZA5CNFSM4J6CNO52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK4LSOQ%23issuecomment-582531386&data=02%7C01%7Cwadeh%40microsoft.com%7C5f427bb205a04fb7c8e008d7aa64641d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637165220472258858&sdata=IrfDvKpbX5yGW%2F0NB6E%2BS%2BdelvfP5SCd91ouXxNzoM4%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJOMS7O57ZPKY3FNGXDW323RBL4LZANCNFSM4J6CNO5Q&data=02%7C01%7Cwadeh%40microsoft.com%7C5f427bb205a04fb7c8e008d7aa64641d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637165220472268851&sdata=0gPbFihs37VC1BpzjzZT9h3EnqhdGlUl7yXtVNqpHME%3D&reserved=0.
Hi Wade thank you for your time. Unfortunately, I do not think I will be able to share the file you requested at this time. I will just have to keep searching and hope something comes up.
Thanks, I understand.
If you should encounter this on something like a test machine, where you could share information, please let us know. I am very interested in finding the root cause on this one.
-Wade
From: jbwalkup notifications@github.com Sent: Wednesday, February 5, 2020 1:13 PM To: Azure/App-Service-Migration-Assistant App-Service-Migration-Assistant@noreply.github.com Cc: Wade Hilmo wadeh@microsoft.com; Comment comment@noreply.github.com Subject: Re: [Azure/App-Service-Migration-Assistant] The system cannot find the path specified. (#22)
Hi Wade thank you for your time. Unfortunately, I do not think I will be able to share the file you requested at this time. I will just have to keep searching and hope something comes up.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2FApp-Service-Migration-Assistant%2Fissues%2F22%3Femail_source%3Dnotifications%26email_token%3DAJOMS7J3FSIH7KDGJOJKHULRBMTVFA5CNFSM4J6CNO52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK5AACY%23issuecomment-582615051&data=02%7C01%7Cwadeh%40microsoft.com%7C85845ce49d14474f17f908d7aa8028dc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637165339731388769&sdata=HTCrKw4RlS39gsKOqA4%2BHW9WwwGjdTydD6jbSjamwQU%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJOMS7NLEJZEPZ26CVNY2I3RBMTVFANCNFSM4J6CNO5Q&data=02%7C01%7Cwadeh%40microsoft.com%7C85845ce49d14474f17f908d7aa8028dc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637165339731388769&sdata=IlnBnfY%2BRKRIofFsru5VFA%2BH7q1ykkv7%2BVs22Lx%2FwTQ%3D&reserved=0.
Closing this issue due to lack of activity in last 90 days. Please open a new issue if you are still experiencing this issue with latest version.
Hi,
I have an issue, I'm on a 2008 R2 with plesk, and when i try to launch the Azure App service migration assistant, I have this error :
By default my website are on c:\inetpub\vhosts
How I can specify where is the folder for the website ?
Thank you
how did you resolve this issue?
Hi @Sachikp , I wonder if Plesk is doing something that limits access to the IIS server config (applicationHost.config) location - this is usually locked down to Administrators group, which is why the Azure App Service Migration Assistant must run as admin - however if it is more limited and the administrator account does not have access to the location it might return this type of error. Could you please check what the permissions are on the %WINDIR%"\System32\inetsrv\config directory and specifically the applicationHost.config file inside that directory? If this is the issue, then you could try adding explicit permissions for the Administrator account your are using for the tool for that directory location to see if that changes the behavior.
Hi @Sachikp , I wonder if Plesk is doing something that limits access to the IIS server config (applicationHost.config) location - this is usually locked down to Administrators group, which is why the Azure App Service Migration Assistant must run as admin - however if it is more limited and the administrator account does not have access to the location it might return this type of error. Could you please check what the permissions are on the %WINDIR%"\System32\inetsrv\config directory and specifically the applicationHost.config file inside that directory? If this is the issue, then you could try adding explicit permissions for the Administrator account your are using for the tool for that directory location to see if that changes the behavior.
Hi. just to update you i have run few commands from https://github.com/Azure/App-Service-Migration-Assistant/wiki/PowerShell-Scripts link and below is the output.
Thank you for help.!!
Hi @Sachikp,
Looking at this more closely, this error can happen due to issues with access on web site content, not only the root server applicationHost.config. This includes for issues like path-too-long (where a directory path is greater than 260 characters). If you create a .ps1 script and run something like below, which simply attempts to load the Microsoft.Web.Administration.dll ("MWA") that ships with IIS and iterate thought the configs, you'll likely get the same error, as this is coming from the base functional call in MWA which is used by both the Migration Assistant GUI and the PowerShell scripts to interact with the IIS configuration system.
$ErrorActionPreference = "Stop"; #Make all errors terminating
try {
Write-Host "START"
$PSVersionTable
#LoadMWH
$iisInstallPath = [System.Environment]::ExpandEnvironmentVariables("%windir%\system32\inetsrv\Microsoft.Web.Administration.dll");
[System.Reflection.Assembly]::LoadFrom($iisInstallPath) | Out-Null;
Write-Host "MWA loaded"
Write-Host "Get ServerManager start"
$sm = New-Object Microsoft.Web.Administration.ServerManager;
Write-Host "Get applicationHost config"
$Config = $sm.GetApplicationHostConfiguration();
Write-Host "GetConfigPathSections count start"
$configPathsSection = $Config.GetSection("configPaths")
$allConfigPaths = 0;
$appHostConfigPaths = 0;
foreach($configElement in $configPathsSection.GetCollection()) {
$pathValue = $configElement['path'];
$locationPath = $configElement['locationPath'];
if($pathvalue -ne "") {
$allConfigPaths++
if($pathValue -eq "MACHINE/WEBROOT/APPHOST") {
$appHostConfigPaths++
}
}
}
Write-Host "GetConfigPaths count complete"
Write-Host "Number of config paths: $allConfigPaths, number of appHost (locationPaths): $appHostConfigPaths"
Write-Host "END"
} catch {
Write-Host "Exception occurred: $($_.Exception)"
}
I've tried to repro this on my end with very long paths or removing permissions but haven't yet been able to reproduce this same behavior. Is it possible there are very long file paths involved?
Hi,
I have an issue, I'm on a 2008 R2 with plesk, and when i try to launch the Azure App service migration assistant, I have this error :
By default my website are on c:\inetpub\vhosts
How I can specify where is the folder for the website ?
Thank you