Shan McArthur

As Vice President - Technology and Senior Architect of ADXSTUDIO CMS, Shan exhibits a profound dedication and proficiency in his field. Having specialized in the IT industry for over a decade, his experience and knowledge support his instrumental role in the architecture and ongoing development of the company's web development technology.
Tags
CRMUG User Group Website
Packaging Azure project manually when the 'Publish' action fails
|
Comments (1) 
| Rate this article: 

Problem

We have many complex references in most of the sites that we build.  I have found that there are some bugs in the MsBuild task when I select 'Publish' from the context menu using the Visual Studio extensions that are provided in the PDC Otober CTP.  This usually starts when I bring in certain references into the web project.  The error that I see in my output window is:

C:\Program Files (x86)\MSBuild\Microsoft\Cloud Service\v1.0\Microsoft.CloudService.targets(603,5): error MSB4018: The "CSPack" task failed unexpectedly.
System.IO.IsolatedStorage.IsolatedStorageException: Unable to determine the identity of domain.

Resolution

The resolution to this problem is to call the cspack utility manually.  To do this, you should open a Windows Azure SDK Command Prompt window, then navigate to your project.  The default directory that the Visual Studio extension will use is the debug\bin\Publish folder in your deployment project.  You can use this folder, or any other folder you wish.  Simply call cspack with the filename of your .csdef file, and specify the roles using the /role: switch and the output folder using the /out: folder.

I typically create a command line file for my project to automate this.  For convention (and the hope that this is just a temporary thing until the next CTP), I use the debug\bin\Publish folder as the destination folder.  My command file also copie the ServiceConfiguration.cscfg file to the publish folder.  This process then eliminates the requirement to hit the 'Publish' menu option in the deployment project.

Update

Wow, the blogosphere is fast.  No sooner than I published this article, than a followup article with better insight into the problem was published by Jim Nakashima.  I guess the root of my problem was the size of the package and not the complexity of the DLL that I was referencing.  My packages are approaching about 20MB, and when I was isolating this with an empty website, simply adding a reference to our CMS project was enough to surface this bug.  I am happy that the problem has been identified because that means it will be fixed in the next CTP.  I am happy that there is a workaround for now using the cspack command line.  Here is the followup article: http://blogs.msdn.com/jnak/archive/2008/11/14/visual-studio-publish-of-a-large-windows-azure-cloud-service-may-fail.aspx

Update - Jan 17, 2009 - final resolution

The January CTP has resolved this bug and I no longer have any problems with my Azure solutions not publishing within the Visual Studio development environment.  Thanks for that fix Jim!

Tags

Comments (1)
#re: Developer
Your box for the verification character is not proper. It needs resizing. Thanks
11/19/2008 8:24:22 AM by None
Submit a Comment
Title:  
Name:    
Comment:    
Verification:

Type the characters you see in the picture below.