Archive

Archive for the ‘Errors’ Category

Multiple List Templates in a Single Feature

February 11, 2007 1 comment

Well, that learnt me. If you noticed my earlier post, I had a feature.xml that created two list templates (among other items).

Well, guess what – apprently currently you can’t do that.

Not that MOSS tells you that (nope, that would be far too helpful). What I found when I tried it was that the first templates schema was always being called whenever I created a list based off the second template.

First off I thought it was due to an errant bit of code somewhere so I spent a good chunk of today looking for it. After I gave up that direction I went to plan B and split up my solution into two projects – one for each list template.

Which now works.

Oh – and don’t even think of trying to put two features in a single feature.xml or create two feature.xml files with different names – MOSS really doesn’t like that; But at least it tells you…

Categories: Errors, Feature, MOSS, Schema, Template

MOSS Feature install & DELETE PEND

February 11, 2007 Leave a comment

Just had a funky situation when replacing a feature. One of the steps my customized install.bat script does is to empty out the destination feature folder prior to rebuilding it. However in this case it barfed each time telling me of an Access Denied error on one of the folders being deleted.

I quick scan through with the sysinternals utility FileMon showed me the status on the folder was DELETE PEND. What was essentially going on, I quickly discovered, was that IIS still had it’s grubby little paws on the folder. One quick iisreset later and et-voilĂ ! the problem was resolved.

Categories: Errors, Feature, IIS, MOSS
Follow

Get every new post delivered to your Inbox.