Sometimes if you attempt to publish the same LightSwitch project to different targets (e.g. first publishing to IIS then publishing to Azure) you can get some weird errors in the publish wizard. If you have switched your publish targets or if you have manually updated/removed settings from your .lsproj or .lsproj.user file, you can do what I refer to as “declaring publish wizard bankruptcy” to start with a clean slate (i.e. the following will wipe out all previous state the publish wizard was keeping track of):
<AdministratorFullName> <AdministratorUserName> <AllowUntrustedCertificate> <DeployDatabase> <AddAdministrator> <BootstrapperComponentsUrl> <DefaultInstallLocation> <DeploySchema> <PublishNewDatabase> <PublishUrl> <PublishSite> <RemotePublish> <UseLightSwitchWebDeploymentProvider> <AzureAllowUpgrade> <AzureAppendTimestampToDeploymentLabel> <AzureDeploymentLabel> <AzureWebSite> <AzureWebSpace> <AzureHostedService> <AzureHostedServiceLabel> <AzureStorageService> <SslCertificateThumbprint> <LightSwitchPublishVersion> <PublishServiceOnly> <AzureCredentials> <RequireSecureConnection> <AllowAllWindowsUsers> <DefaultDatabaseName>
5. Save this file
6. Open your project in VS
7. Attempt to publish, re-specifying all your settings.
So if you ever can’t get publish to work (after it has already worked) try these steps to see if it helps. Otherwise, I will see you on the forums
http://social.msdn.microsoft.com/Forums/en-US/category/vslightswitch