WindowsAzure-Accelerators/wa-accelerator-webroles — Issue #1: Using a dash "-" in the site name will cause a DirectoryNotFoundException
Author: ntotten
Created: 2012-01-31 01:47:19+00:00
State: open

If a "-" is used in the site name the local directory on the instance is created with the dash. But when PackageSitesToLocal() runs within SyncService (specifically the GetFolderLastModifiedTimeUtc() function ) the sitepath/directory string that is being passed into the function has had the "-" replaced with a "." thus throwing a DirectoryNotFoundException

e.g. if I name my site dev-site the GetFolderLastModifiedTimeUtc(String sitePath) will throw "DirectoryNotFoundException:Could not find a part of the path 'C:\Resources\directory\[guid].HostProjectName.Sites\dev.site\' " which is true because the directory on the instance that was created is C:\...\dev-siteUsing a dash "-" in the site name will cause a DirectoryNotFoundException