Posts

Showing posts with the label error

STSDEV on 64bit and DebugRefreshAssemblyInGAC

My new development machine is 64bit and STSDEV has a few things that need to be fixed in order for it to work on 64bit machines - see my $(ProgramFiles) post. The problem I'm talking about here surfaces when you do a DebugRefreshAssemblyInGAC build. Apparently the .vbs script that the $(ISSAPP_SCRIPT) token in the DebugRefreshAssemblyInGAC section is referring to (C:\windows\system32\iisapp.vbs), will not run until you make CScript your default script environment for *.vbs scripts. In order to fix the errors STSDEV gives you follow these steps: Go to C:\Windows\System32 and copy cscript.exe and iisapp.vbs Place the files in another folder (I used 'C:\Utilities\Builds' as you see below) alter your DebugRefreshAssemblyInGac to read as follows <Target Name="DebugRefreshAssemblyInGac" > <Message Text="(Re)installing assembly in GAC and recycling app pool" Importance="high" /> <Exec Command="$(GACUTIL) -if $(TargetPath)...

Page Layouts and <asp:Content>

I had a page layout that I liked, but I needed a slightly different version, so I copied the original, made my edits, redeployed my solution and provisioned a page with the new layout. BAM! A big fat error: Only Content controls are allowed directly in a content page that contains Content controls. Whats the deal? Everything looked exactly like the previous, working layout... or so I thought. The copy and paste apparently changed some of the <asp:Content> controls to <asp:content>, which SharePoint does not like. Re-capitalizing my tags fixed the issue.

STSDEV solution filesize limitation

STSDEV uses the MakeCab executable to build its .cab/.wsp solution files. Unfortunately, MakeCab has some holdover default settings from the dark ages of computing, one of which is its generated filesize maximum, which is set to 1.44Mb. This hasn't been a problem for me, as most packages tend to be fairly lightweight. However, when deploying a solution with lots of binary resources (a masterpage or layouts feature, for example), you will need to tell STSDEV and MakeCab that you want to build a bigger file. Deploying without making the adjustments will result in an incredibly unhelpful error from STSADM: The file manifest.xml does not exist in the solution package . A blogger at PointBridge was nice enough to document this here , but the fix is fairly simple so I've added the code below. To fix your solution packages, you'll need the source for STSDEV. Open the file \STSDev\Core\Builders\DeploymentFiles\CabDdfBuilder.cs , and enter the following at the end of the .ddf s...