I get the following error:
Disposal (Waiting for the role to begin ... Sites are being deployed. [2012-12-17T05: 30: 10Z])
Running One or more role instances are unhealthy. 1 Instances: 1 Unhealthy
I really tried to convert my web application to a cloud application.
here is what i did:
I added a cloud project for my solutions, I added a webrole that is connected to my web application, I created the sql azure database and copied my entire structure as well as the data in db I inserted the connection string into my webconfig and tried to start it when emulating, this worked fine then tried to deploy it, creating a cloud service, running the builder to create packages and download packages in the "stage" mode. this is where i got the errors.
I tried to create an empty cloud application and add the default webrole and upload it to the cloud, this worked fine. so I thought maybe I have something wrong in my settings for my webrole. I checked the difference between the two, and I noticed that both solutions had diagnostics enabled, but the storage account was empty in my own solution, so I entered "UseDevelopmentStorage = true" here. it has not changed anything. I also saw the difference in "packages.config"
default role:
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.7.0.0" targetFramework="net40" /> <package id="System.Web.Providers" version="1.1" targetFramework="net40" /> <package id="System.Web.Providers.Core" version="1.0" targetFramework="net40" /> <package id="WindowsAzure.Storage" version="1.7.0.0" targetFramework="net40" />
mine had:
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.7.0.0" targetFramework="net35" /> <package id="WindowsAzure.Storage" version="1.7.0.0" targetFramework="net35" />
I tried changing this and loading, did nothing
I do not use a working role, I have only one executable instance (the same as the default)
my application uses some authentication in global.asax, where it tries to read from User.Identity.Name and compare with the user in the database (this user is inserted in sql azure db). At first I thought that this could be the cause of the problem, but even if I comment on this code, the application will not work in the cloud.
Virtual machine size is small, trust level = full trust
I also saw some differences in settings where I had remote access settings. I tried to remove all this in order to rule out problems.
I'm reading something about settings that reference "copy local is true", but I'm not sure if this will make any difference.
Any ideas because I really don't know what to do next
EDIT:
I changed all the links to "copy local is true" and I am disabled for diagnostics to make sure nothing happened to it.
but now I get the error message:
<configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>
Funny, in my webconfig this is already installed ... And I can only find 1 webconfig. I'm not quite sure what I'm doing wrong.