0

I have an Azure cloud service project to which I am adding a cache worker role. While local build goes through fine, I get the following error on my server builds :

CloudServices38 : The entrypoint dll is not defined for worker role <cachename>

What is wrong? How do I fix this?

aoetalks
  • 1,741
  • 1
  • 13
  • 26
Aadith Ramia
  • 10,005
  • 19
  • 67
  • 86

2 Answers2

0

Make sure all the Azure DLLs are marked Copy Local = True in the properties window. Also, package your projects, then unzip them. Once you build the package, you will have a file YourProject.cspkg. Change the extension from .cspkg to .zip and extract the files. In these files you should see a file with the extension .cssx YourProject_.cssx. Change the extension from .cssx to .zip and extract again. You project that is deployed will be in the folder YourProject\sitesroot\0 - verufy all the files you are expecting (i.e. content and everything that is in the bin directory on your local build.

viperguynaz
  • 12,044
  • 4
  • 30
  • 41
0

You need to run a Build and a Publish separately. I ran into the same problem on my project and this fixed it.

1) Visual Studio Build (or MSBuild) action with arguments /t:Build (clean here)

2) Visual Studio Build (or MSBuild) action with arguments /t:Publish (do not clean here)

Note: I had to run these actions separately (not /Build;Publish) otherwise I got an error about the cloud service entry point.

Pieced this together from this question and from here and here.

Community
  • 1
  • 1
aoetalks
  • 1,741
  • 1
  • 13
  • 26