Azure / App-Service-Migration-Assistant

Azure Websites Migration Assistant for Windows is a tool that allows customers to move their existing sites hosted on IIS servers into the cloud on Azure App Service. For more information check out https://appmigration.microsoft.com .
https://appmigration.microsoft.com
MIT License
75 stars 60 forks source link

TypeError: Cannot read property 'split' of undefined #15

Closed mrchops1024 closed 4 years ago

mrchops1024 commented 4 years ago

Investigative information

Please provide the following:

Repro steps

  1. Download MSI
  2. Install with admin priveledges on dev web server
  3. Open via desktop shortcut with admin priviledges

Expected behavior

According to screenshots it's supposed to list my existing sites.

Actual behavior

Error: TypeError: Cannot read property 'split' of undefined

Screen Shot 2019-10-23 at 4 42 45 PM

Known workarounds

None.

krolson commented 4 years ago

Hello @mrchops1024, Thank you for reporting this!

I think I know why this is happening, but to be sure it will really fix the issue you're hitting could you please do the following steps and let us know what the output looks like?

  1. Find out the path for the installation of iisConfigurationHelper.exe: Right-click the AppServiceMigrationTool desktop shortcut and select Properties. Look for the path in the "Start in" value (should be something like: C:\Users\\AppData\Local\Programs\azure-appService-migrationtool).
  2. Open an admin command prompt and go to that location with added "\iisConfigAssistant": C:\Users\\AppData\Local\Programs\azure-appService-migrationtool\iisConfigAssistant
  3. Try running this command and send us the output (obscure site names as desired): iisConfigAssistant.exe GetSiteList

Thank you, Kristina

mrchops1024 commented 4 years ago

I received the following error message:

{
  "HResult": "80070002",
  "DisplayMessage": "Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.",
  "TelemetryMessage": "An unhandled exception occurred.  HResult=80070002",
  "StackTrace": "   at iisConfigAssistant.Program.DoGetSiteList(String[] args)\r\n   at iisConfigAssistant.Program.Main(String[] args) in D:\\a\\1\\s\\src\\IisConfigurationHelper\\iisConfigAssistant\\Program.cs:line 44"
}
idubnori commented 4 years ago

I've had a same one, came from #6

{
  "HResult": "80070002",
  "DisplayMessage": "Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.",
  "TelemetryMessage": "An unhandled exception occurred.  HResult=80070002",
  "StackTrace": "   at iisConfigAssistant.Program.DoGetSiteList(String[] args)\r\n   at iisConfigAssistant.Program.Main(String[] args) in D:\\a\\1\\s\\src\\IisConfigurationHelper\\iisConfigAssistant\\Program.cs:line 44"
}
krolson commented 4 years ago

Thank you for getting back to us with those details.

We believe this is happening because the Migration Assistant has a dependency on version 4.7.2 of the .NET Framework and were able to reproduce the behavior for this reason (such as if only 4.6.1 is installed).

Can you please confirm which version(s) of the .NET Framework are installed on your machine (see https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed) and/or install 4.7.2 (possible source: https://support.microsoft.com/en-us/help/4054530/microsoft-net-framework-4-7-2-offline-installer-for-windows) and try running the tool again?

I have opened workitems on our side to better highlight the minimum system requirements on the tool download page and the next release will be display a more informative and actionable error message.

mrchops1024 commented 4 years ago

The server had 4.6.2 installed. I've installed 4.7.2 and verified the utility opens now.

NitashaV commented 4 years ago

Thanks for confirming the fix.

RiccardoGMoschetti commented 4 years ago

Hi, We have some situations in which we're migrating apps hosted on W2008R2 servers with 4.6.1. I think App Service supports this version of .Net framework. Would it be possible to recompile the assistant so that it is compatible with 4.6.1? Thanks a lot.

krolson commented 4 years ago

(Yes. We are currently working on this for the next release.)