Tuesday, 6 July 2010
Unexpected error creating debug information file
Sometimes I have had big problems when recompiling the SP projects and generating the PDB file. This time I disabled the VSHOST option for my WinForm project and the problem was solved.
VS spawns a new winformexe.vshost.exe process each time I tried to kill it with Process Explorer, so it kept me from recompiling the other SP corrctly.
How to: Disable the Hosting Process
Monday, 10 May 2010
WSPBuilder and VB.Net
A known fix for getting all ASP.Net items available in a WSPBuilder project is to amend the .csproj file with a ProjectTypeGuids element. The same goes for VB.Net but the element that needs to be added is different:
Wednesday, 24 February 2010
Enable debugging for _layouts files
<configuration>
<sharepoint>
<safemode maxcontrols="200" callstack="true" directfiledependencies="10" totalfiledependencies="50" allowpageleveltrace="false">
<pageparserpaths>
</pageparserpaths>
</safemode>
</sharepoint>
<system.web>
<compilation batch="false" batchtimeout="600" maxbatchsize="10000" maxbatchgeneratedfilesize="10000">
<httphandlers>
<add type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" path="*.aspx" verb="*">
</httphandlers>
<customerrors mode="Off">
</SYSTEM.WEB>
</configuration>
Save the file and your ASP.Net error messages will appear.
Sunday, 29 November 2009
Updatelistitems and 0x8007000
The webservice call worked correctly for site collection admin and site admins but not for ordinary users. The list was configurd with "Add item" and "View pages" permissons for ordinary users which should provide correct access for the UpdateListItem method.
The problem with the list was that is was configured with a "None" value for the property "Edit access" (General settings --> Advanced settings). After changing it to "Only their own" the method call succeeded. So the "Edit items" property was messing up a "New item" method call.
Updatelistitems and 0x8007000
The webservice call worked correctly for site collection admin and site admins but not for ordinary users. The list was configurd with "Add item" and "View pages" permissons for ordinary users which should provide correct access for the UpdateListItem method.
Saturday, 26 September 2009
Lifecycle problem with WSPBuilder and EditorPart
In the WebPart class that is created from WSPBuilder the CreateChildControls is triggered from the OnInit method. This has the consequence that the ApplyChanges method in the EditorPart class will be triggered after the CreateChildControls in the WebPart class. My solution was to remove the method call in OnInit and then the ApplyChanges method was firing correctly.
Thursday, 12 March 2009
Moving to WSPBuilder
We have been using STSDev for sometime now, but it feels like the development have stalled and other participants also noted that you need to fix bugs in the tool to make it work in different situations. So we have decided to switch to WSPBuilder instead for coming projects. Hopefully it cuts down the time developers needs to write code in the OM.
Thursday, 27 September 2007
Dataview and unghosted pages
The XSLT DataView can be used for many things when you want to customize the layout of web parts in your site. The problem when using the Data view on pages are that the pages gets unghosted. Follow this instruction to maintain your pages ghosted and even get a decent test and dev page.
1. Create a web part page
2. Add the list web part to the web part page
3. Open the page in FP 2003
4. Convert the web part to a XSLT Data View
5. Do your changes (the web part is actually converted to a XSLT document, check the Code window in FP 2003)
6. Save the page
7. Open the web part page in your browser and export the web part
8. Open the page you want to display the web part on (i.e Home)
9. Import the web part to the page (check the web part properties, the XSLT is available for direct editing)
10. Delete the web part page if you don´t need it anymore
Done