in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Aaron Robertson-Hodders SharePoint Blog

Published by

Comments

 

Ishai Sagi [MVP] said:

I wrote about this a year ago, and included screenshots of how to do it :

www.sharepoint-tips.com/.../found-it-how-to-add-properties-to.html

I don't understand the other problem you are describing. A reset is almost never required (only if you have corruption)

June 19, 2007 7:52 PM
 

Aaron said:

Ishai,

This post was meant to be an end-to-end how to, but I agree that from step 4 onwards the process is identical, and I'm going to add a link at that point to your post if that's ok?!

In regard to the reset, I don't know WHY it happened, I'm just reporting that it DID happen! I agree that it should never be required - especially in a large deployment, but I have seen it several times since RTM. I am definitely trying to determine if there is a pattern...

June 21, 2007 12:24 AM
 

Mike Walsh said:

Doesn't a MacBook Pro have a maximum of 3GB ?

(I have a MacBook with 2GB and I'm running WSS 3.0 under Parallels which is more convenient than using Bootcamp as I can test browser capability from the Mac (Safari; Firefox) which provides additional useful information on the restrictions.)

Mike Walsh

July 5, 2007 1:33 AM
 

adrh said:

Mike,

The previous versions had a max of 3GB, the new ones support up to 4GB.

I have installed the trial of Parallels just to see how it feels, but I hadn't thought of that added benefit.

To be completely honest, I'm really using bootcamp so I can play 3D windows games on it. ;-) I expect that I could do so under Parallels too, but haven't tried...

July 5, 2007 7:59 PM
 

Mike Walsh said:

Parallels is working well for me and is well worth the money even though I am p***sed that a US company insists on me buying it through sites that charge me either German or US VAT. Both at least let me choose if I wanted the credit charge to be in dollars or Euros (etc.) which means a small saving when saying dollars ...

I have Win 2003 Server running WSS 3.0 on one VM and Win Server 2008 where I'm just installing its built-in WSS 3.0 on another VM.

Both are now using networking so I can get at them from my Vista portable (Office 2007) or my XPPro desktop (Office 2003) but during the week I switched the networking (easily) to local only so I could just take the Mac with me and still access that copy of WSS 3.0 (without needing to take my home router and wireless router with me ...)

Mike

July 6, 2007 7:17 AM
 

Dax Alexander said:

Aaron, thanks for the FYI on the 3GB limitation on the Windows Vista side.  I have the exact same configuration you do, with the new high res screen and was wondering why I couldn't see the extra RAM.  

July 11, 2007 6:48 AM
 

Monica said:

Hi,

I have been trying to setup a NLB environment using sharepoint 2007. What i observed is that the web application configurations are replicated to all the servers in the farm only if you extend it using the central administration website. If i use APIs to create/extend a sharepoint webapplication, the configurations do not get replicated on the other server in the farm. Any idea on this problem?

July 17, 2007 6:48 AM
 

Carl said:

How did you do it?

July 17, 2007 1:59 PM
 

Chandan Patralekh said:

I am not aware how sharepoint can be load balanced but yes, if any needs more info on WLBS (Windows NLB then they can visit my URL. It has comprehensive information on NLB. I am sure you'll like the way others have.

July 17, 2007 11:43 PM
 

adrh said:

Monica, I'm not sure I can help with your issue. Is the problem that particular settings in IIS are not replicated, or that web.config settings are not. I believe you can send web.config details as part of the extend process using the API, but this may not be what you are after!

July 31, 2007 7:51 PM
 

adrh said:

I created a webpart which renders controls for the UI based on XML configuration. The users selections generate a query string and then it uses the MOSS query object model to execute the query and return the results.

July 31, 2007 7:54 PM
 

njrw said:

Makes a lot of sense to me!

August 9, 2007 7:37 PM
 

Oskar Austegard said:

And if you're looking for a great way to search for SharePoint content, go to http://SharepointSearch.info, which uses GSE to index a whole host of SharePoint related blogs and sites (including this blog, as well as SharePointSearch.com)

August 10, 2007 9:48 AM
 

notorioustech said:

Thanks Aaron!!.

This site is constantly evolving. The solution builder is still in development but when released members will be able to check off their LOB apps and and in one step generate an RFP across all the necessary vendors!!

We are very interested in signing up experts in the community to participate in the site and help us develop useful content.  

-Christopher

August 10, 2007 10:52 AM
 

Amkate said:

I also tried to make custom search.

I used CAML for creating query.

Did you used same query object or it is better to use SQL query directly?

August 20, 2007 9:47 AM
 

Aaron Robertson-Hodders SharePoint Blog said:

A long time ago I said "One day I'd like to automate the generation of the DDF file, perhaps

August 29, 2007 9:30 PM
 

Rich Finn said:

Thanks Aaron...

August 29, 2007 10:14 PM
 

SharePoint 2007 link love 08-30-2007 at Virtual Generations said:

Pingback from  SharePoint 2007 link love 08-30-2007 at  Virtual Generations

August 30, 2007 1:41 AM
 

SharePoint 2007 link love 08-30-2007 at Virtual Generations said:

Pingback from  SharePoint 2007 link love 08-30-2007 at  Virtual Generations

August 30, 2007 1:41 AM
 

Blogger Loser » Blog Archive » Auto-create DDF for SharePoint Solutions said:

Pingback from  Blogger Loser  » Blog Archive   » Auto-create DDF for SharePoint Solutions

August 30, 2007 4:02 AM
 

Rich Finn said:

Aaron -

Just posted a new version of the app that creates the manifest...

-Rich

feeds.feedburner.com/.../CreateDDFWSPToolNowWithManifest.aspx

August 30, 2007 2:03 PM
 

Aaron Robertson-Hodders SharePoint Blog said:

About a day after I posted about Rich Finn's auto-create DDF tool, he completed the story with the

September 11, 2007 5:31 PM
 

Blogger Loser » Blog Archive » And now, auto-create Manifest XML said:

Pingback from  Blogger Loser  » Blog Archive   » And now, auto-create Manifest XML

September 11, 2007 7:31 PM
 

RIch Finn said:

Well, I'm working on an installer, but don't tell anybody..;)

September 11, 2007 8:08 PM
 

Rod howarth said:

I'm confused, doesn't VSEWSS do that already...? As per:

roddotnet.blogspot.com/.../deploying-wss-30-web-parts-easily-to.html

either way, anything to simplify and speed up this process is great.

September 11, 2007 8:34 PM
 

Mirrored Blogs said:

Body: Was configuring the people search and found this article which explains it in great detail. In

September 17, 2007 8:49 AM
 

ibu said:

Its interesting that you find that OOB web part cannot be used in results page unless we pass the query as a keyword query in the URL to a results page. I have added the custom Core Search result web part in the results.aspx and added the OOB Search Action Link Web part in the results.aspx. Now when i am coming from default search (Keyword Query) the Search Action Link Web part is visible but when i am coming from Advance search page then OOb Search Action Link is not Visible.(The same behaviour what you mentioned). How should i get the Search Action Link web part Visible when i am navigating from Advance Search Web part, Can i send a Empty Query String , Will it work ? Thanks in Advance

October 2, 2007 7:49 PM
 

AlanP said:

Hello ADRH,

We have also built a custom Enterprise Search Webpart but we are having some problems. The FullTextSqlQuery errors when more than 10 properties in the where clause.

We have successfully implemented a fulltextsqlquery webpart allowing users to add filter conditions based on multichoice properties (mapped to managed properties).  However we have found that once a user selects more than 10 properties you get a “query is malformed” error message.

This is a sample query:

SELECT WorkId, Rank, Title, Author, Size, Path, Description, Write, SiteName, CollapsingStatus, HitHighlightedSummary, HitHighlightedProperties, ContentClass, IsDocument, PictureThumbnailURL, DocType, Year, Source FROM Scope () WHERE (\"scope\" ='Reports') AND  FREETEXT (defaultproperties, 'any') AND ( Geography ='Belgium'  OR  Geography ='Brazil' OR Geography ='Canada' OR  Geography ='Chile' OR  Geography ='China' OR  Geography ='Colombia' OR  Geography ='Croatia') AND ( DocType ='Pulse Documents' OR  DocType ='Annual' OR  DocType ='Country Reports' ) ORDER BY Rank DESC

If you run this query we get results back however if the user adds one more property selection e.g. one more country the results error.

We’ve tried putting these into comparison arrays but again the same error occurs.

I’ve checked in the advanced search web part (looking at the executed query in the logs) and you can get a working query with a lot more than 10 properties together.

Does anyone have any ideas as to what is doing this????

October 3, 2007 8:54 AM
 

Julian Harris, Social Computing Guy » Google Search Appliance installation guide said:

Pingback from  Julian Harris, Social Computing Guy » Google Search Appliance installation guide

October 17, 2007 1:36 AM
 

Thomas Carpe said:

I'm having similar issues with properties in a custom field even if they only leverage the OOTB types like Text and MultiChoice.

What happens is that I can enter them and save them, and if I step through the debugger I can see that the data was definitely saved to them (this.Field.GetCustomProperty[myPropertyName] works), but when I go back to the FldEditEx.aspx page to modify them, the data isn't there, and it is usally replaced by either a weird arrangement of checkboxes or text like "<My Field Title> field value."

Note that i am using custom fields and field controls but that my property schemas are done entirely in the FIELDSTYPES.xml file. :-)

This behavior is very odd, and I thought it might be realted to this old hotfix support.microsoft.com/.../932055 which perhaps didn't make it into the security rollups from Sept and Oct.? I am thinking of opening a support issue. I really don't want the hassle of having to create some custom controls for what should just work as is.

I'll let you know if I find a workaround for this, as maybe it will also help with the custom property controls as well.

October 18, 2007 11:47 AM
 

Chandan Patralekh said:

Its very difficult to find all the information about Windows NLB on the technet. I would have ideally liked to place all the information here. But that would become to cumbersome.  Please click on my name and visit it once. Don't consider it as spam as its not something available any where on the net. I am sure you would like it becasue it has all the information from basics to advanced, all at one place. It has webcast links, NLB document, links to KB articles related to NLB and some good resources which are available on we.

October 19, 2007 3:28 AM
 

Jag said:

Nice article! MOSS is looked as a OOB content management and collabration suite. Many of my clients are unaware of its enterprise search functionality. I reckon its important for us to take MOSS search to MASSES.

Jag

October 29, 2007 10:04 PM
 

comparetheloan said:

really helpful guides.

October 30, 2007 11:35 AM
 

DocWattsMan said:

I found a repost of your blog that is similar to this article but not quire the same at jack.whyyoung.com/.../Creating-Custom-Field-Types.htm. Wanted to let you know that I had the same issue with OOTB custom properties in custom field types. I came up with a simple workaround to the issue that should hold over until MS releases a fix. Here's my post: A Workaround for SharePoint Property Bug in Custom Field Types at thomascarpe.com/.../Post.aspx.

November 1, 2007 1:30 PM
 

DocWattsMan said:

I got a workaround - for now. You can get by without writing custom field editor controls if you use this code. :-) Thanks for the background info, it really helped me get to the bottom of this isssue.

November 1, 2007 1:34 PM
 

Abby said:

I'm having a problem getting the Manager field to show up in the People Search Results.  Any suggestions?  I've followed all the instructions to no avail.  Thanks in advance, Abby

November 4, 2007 7:39 AM
 

adrh said:

Abby, I assume that Manager is a field from the Profile (ie. AD)? If so and you followed all the instructions, the only thing I can think of is that you reset the crawled content. I realise a) this is drastic, and b) it should NOT be required, but I am nearly certain that I had to at least initially! Let me know how you get on...

November 4, 2007 11:12 PM
 

adrh said:

Forgot to mention that this daylight savings issue does not appear on MOSS when installed on RC0 of Windows Server 2008 so I guess they patched it - nice!

November 8, 2007 6:18 PM
 

adrh said:

I just had a thought which I heard somewhere and the article on MSDN backs it up:

Objects obtained using SPContext, ie. SPContext.Current.Site DO NOT need to be disposed and shouldn't because it might cause issues to SharePoint internally.

This got me thinking, what about the object under these Context-obtained objects? The article talks about AllWebs and OpenWeb, which makes sense, and so I am assuming that RootWeb would need to be disposed, meaning this would be ok (and not cause instability?!):

SPSite currentContextSite = SPContext.Current.Site;

using (SPWeb currentRootWeb = currentContextSite.RootWeb)

{

  ...

}

November 13, 2007 7:31 PM
 

Alex Angas said:

Hi there,

I think it depends on your definition of explicitly disposing. The top of the MS article you linked to states 'You can automatically dispose of SharePoint objects that implement the IDisposable interface by using the Microsoft Visual C# using clause'. I've read another blog post (can't find it now of course) that says you must always use using because calling Dispose() isn't enough - although I don't think it explained why.

The good thing about using() is that it is supposed to wrap the code in try/finally to ensure the object is disposed even if an exception occurs (see forums.microsoft.com/.../ShowPost.aspx).

Speaking of those "Potentially excessive number of SPRequest objects..." errors by the way, have you ever tried setting the reg key it describes in the error message to see how much of MS' code doesn't appear to use dispose properly? For some reason I get it all the time when using foreach over SPListItem objects in List.Items, and I'm very diligent about disposing SP objects correctly.

Cheers, Alex.

November 14, 2007 8:22 AM
 

Mirrored Blogs said:

Today I&#39;ve started to investigate how to create enable load balancing for our Sharepoint 2007 environment

November 14, 2007 1:41 PM
 

adrh said:

Alex,

I have seen information that suggests close() then dispose() too, and given it seems so contentious as to which is enough using seems like the plan!

I had wondered about the whole exception thing when using using ;-) and in my mind that is an excellent reason, rather than doing the whole try/catch/finally, check if null dispose() thing!

Yeah, I did turn on that resgistry flag at some point (although not in my current environment). And the current ones I see I'm convinced are related to something than I can't dispose myself! Meaning it probably is somewhere in the MS code.

It doesn't sit well though, because the stack trace obviously includes references to my code, even though I'm sure that it's not caused by my code directly! I think it is also related to list iteration as you found...

November 14, 2007 5:07 PM
 

Jim said:

Hi our company just bought WISDOM. I installed it in a load balancing evironment and then I tried to add server in DMF explore successfully. But when I tried to access the site, it said authentication problem. Any idea?

November 15, 2007 10:08 AM
 

adrh said:

Jim,

You will need to activate both the web front ends. I assume you have only installed central admin on one of them, which means you will need to run the Activation Wizard from the programs menu on the other. If you have any problems, email support@macroview.com.au and we'll sort it out for you!

November 15, 2007 3:36 PM
 

Addendum to the SharePoint Deployment Daylight Savings patch issue said:

Pingback from  Addendum to the SharePoint Deployment Daylight Savings patch issue

November 27, 2007 9:28 AM
 

Sathya said:

Hi,

We have scenario where we have created a wb application befor configuring load balancing server. After all applications are installed we found the request is too high and so we created a another web server for load balancing and add in the same farm. But problem is how to point a load balancing url for the extended site. In central admin we are getting any option to edit load balacing for created site, only on extending i can see this option ;(.

November 29, 2007 4:07 AM
 

SharePoint, SharePoint and stuff said:

Ín der Beta2 Version vom MOSS war es noch möglich, Websitespalten an Daten aus dem BDC (Business Data

December 21, 2007 4:35 AM
 

JoeD said:

I will check this out over the weekend.... sounds awesome!  Not being able to have a BDC column in a content type is a big hole in Sharepoint.  This will be a big help.

December 21, 2007 8:06 AM
 

useful sharepoint links « SharePoint, Wiki, Create, Column, Data, Business, Free, Catalog « konfabulieren said:

Pingback from  useful sharepoint links &laquo; SharePoint, Wiki, Create, Column, Data, Business, Free, Catalog &laquo; konfabulieren

December 22, 2007 12:43 AM
 

Blog del CIIN said:

Una vez más, en esta nueva entrega recogemos el recopilatorio de enlaces, recursos y diferentes elementos

December 23, 2007 4:07 PM
 

Joe said:

I tried installing this on my development MOSS 2007 server.  I can add the field to my content type and use it in a list.  However when I try to click the search button (the little book), it takes me to a standard MOSS error screen with the error "File not found".

(Of course in true MOSS fashion, it does not clue you in on what file it cannot find...)

Any ideas?  I've looked in the _layouts folder and the MVBDCLookUp.aspx file and mvpickerdialog.master are both there.  I do not have AJAX installed, but it sounded like it was not required.

December 26, 2007 7:56 PM
 

adrh said:

Joe, my apologies, but while it does not require AJAX to run, it does reference the AJAX Assembly. I could have added that to the WSP, but then it would get removed when the solution is retracted and break AJAX!! So, the best solution for you is to install AJAX, but not go through all the configuration for it to run on MOSS and things should work better!

December 26, 2007 8:22 PM
 

Joe said:

Installing AJAX worked - that allowed me to add a list item to a list with the BDC column.

However, when I edit the item, I get "An unexpected error has occurred." and it will let me get to the Web Parts Maintenance Page (which shows only the ListFormWebPart is on it).

December 27, 2007 8:22 PM
 

Dirk said:

I installed the wsp-File via stsadm, but can't see any changes in MOSS. Did I forget something?

January 4, 2008 10:21 AM
 

Alex Rybin said:

Guys, just install hotfix and take it easy.

I just did it and everything works....

January 9, 2008 6:08 PM
 

Mirrored Blogs said:

Ín der Beta2 Version vom MOSS war es noch möglich, Websitespalten an Daten aus dem BDC (Business Data

January 9, 2008 7:10 PM
 

SharePoint link love: 12-28-2007 at Virtual Generations said:

Pingback from  SharePoint link love: 12-28-2007 at  Virtual Generations

January 24, 2008 1:50 AM
 

Steve said:

Where is the .wsp file? There doesn't appear to be a current release on the Codeplex site.  Am I just being thick?

February 10, 2008 6:09 PM
 

MOSS newbie said:

I'm trying to exclude Folders from search results.  I don't understand what you're doing up there and the images are missing.  Can you better explain how to exclude Folders from search results?

February 19, 2008 4:21 PM
 

Valy Greavu - Live Blog said:

Poate că sunt unii care au observat că &#238;n ultima perioada nu prea am fost activ pe aici. Eram prin

February 22, 2008 6:14 PM
 

D2 said:

I'll talk Blues, with you but it will be the St. Louis Blues Hockey

http://blues.nhl.com/

February 26, 2008 10:41 AM
 

Links (2/27/2008) « Steve Pietrek’s SharePoint Stuff said:

Pingback from  Links (2/27/2008) &laquo; Steve Pietrek&#8217;s SharePoint Stuff

February 27, 2008 7:16 PM
 

Luc said:

great article, convincing point of view!

March 13, 2008 1:09 PM
 

Sharepoint said:

I am also facing this problem. I am not able to search on Manager field as well as Assistant.

I think there is some additional settings required for searching fields that contain people picker control (as Manager & Assistant both are filled as people picker controls in user profiles).

March 18, 2008 7:31 AM
 

http://www.sharepointblogs.com/aaronrh/archive/2007/08/30/auto-create-ddf-for-sharepoint-solutions.aspx said:

March 22, 2008 1:55 AM
 

Nas said:

Hi there, great post, now if I want to add a new section in the Site Settings page, how can I do that?

Thanks in advance.

Nas

March 24, 2008 3:24 PM
 

Warren said:

Hi again. I've found a possible solution to my own question to you earlier ... basically, I've added a Web property to your BDCField class and changed the ContextId propert to check whether SPContext.Current is null, and if so to use the Web property to generate a ContextId. This is needed because using the BDCField in a feature receiver, SPContext.Current is null.

Then I add the following code in the feature receiver of my app, to set the custom properties.

           SPField f = web.Fields[@"Brand"];

           BDCField ff = (BDCField)f;

           ff.Web = web;

           ff.Application = @"MyCustomCorpWebInstance";

           ff.Entity = @"Brand";

           ff.DisplayFields = @"PreferredName";

           ff.ReturnField = @"PreferredName";

           ff.PushChangesToLists = true;

           ff.Update();

So the site column definition does not include the <Customization> element ...

Seems like a real kludge to me, but I am under severe pressure to "get it working" ... so this will do for now.

April 16, 2008 5:08 AM
 

Warren said:

And finally ... the answer to my question ...

1. Add a safecontrol entry in your web config

     <SafeControl Assembly="MacroView.SharePointFields.BDCColumn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6f7d66a3bb7de652" Namespace="MacroView.SharePointFields" TypeName="*" Safe="True" AllowRemoteDesigner="True" />

2. Register the MacroView control in your page layout:

<%@ Register TagPrefix="MacroView" Namespace="MacroView.SharePointFields" Assembly="MacroView.SharePointFields.BDCColumn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6f7d66a3bb7de652" %>

3. Add a BDC Field edit control inside a PublishingWebControls:EditModePanel runat="server"

    <MacroView:BDCFieldControl FieldName="Brand" BDCApplication="CadburyCorpWebInstance" BDCEntity="Brand" BDCDisplayFields="PreferredName" BDCReturnField="PreferredName" runat="server" />

!!

April 17, 2008 6:32 AM
 

Avi said:

Hi

Can you please share the code? It it is not against your ethics?

April 21, 2008 10:31 AM
 

Chris said:

Aaron Robertson-Hodders-

How did you get the research results exported into excel? I'd like to do the same.

April 30, 2008 12:24 PM
 

John said:

I know this post is old, but my team is coming up on this situation. We're trying to weigh the pro's and cons. Did you have any more thoughts?

April 30, 2008 3:49 PM
 

andrew robertson customs said:

Pingback from  andrew robertson customs

May 13, 2008 9:50 AM
 

Adrian Fiechter said:

Customization can't be deploied with a feature by default (SP1).

To do it, include the following wss.xsd patch:

www.codeplex.com/.../View.aspx

May 20, 2008 8:50 AM
 

Adrian Fiechter said:

BDCField.cs Line 129:

When i am activating the list instance over a feature, i have no context. That means SPContext.Current == null.

What is with the following way to solve the problem:

public int ContextId

       {

           get

           {

               if (SPContext.Current != null)

               {

                   return SPContext.Current.GetHashCode();

               }

               else

               {

                   return -1;

               }

           }

       }

May 20, 2008 11:16 AM
 

muraliKrishna.N said:

Its a very nice article.

I sujest  you to post more tutorials on Enterprise search while it is very burning requirement for organizations

June 2, 2008 1:52 AM
 

Colin said:

Correct me if I'm wrong, but the problem with .RootWeb (and all the other SPWeb objects you need to dispose of) is that accessing the propery creates a new instance of an SPWeb.

That means that in your code sample, you're actually creating 6 new SPWebs each of the 6 times you use oSPSite.RootWeb. 5 of those webs aren't disposed of, and the last one was created just to be immediately disposed (oSPSite.RootWeb.Dispose()).

What you want to do instead is add the line:

     using( SPWeb rootWeb = oSPSite.RootWeb )

...at the beginning of your code and just use the rootWeb instance in the block that follows.

June 11, 2008 11:44 AM
 

adrh said:

Well Colin, I'm not going to correct you because I'm not actually sure if you're wrong (or right!). I would have thought that the first time you access the property that the object was created and thereafter it was just used.

Having said that, I would have thought that things would have been disposed of correctly in the first place, so who knows. ;-)

I you do know, I'd love to hear!

In reality, the code you posted is exactly what I do in practice with anything that I think needs disposing!

June 11, 2008 4:31 PM
 

Jon said:

I'm having the same issue with the Manager property.. anyone figure this out yet??

June 26, 2008 11:49 AM
 

Randy Woods said:

Thanks - this is a very helpful post. Readers might also be interested in our recent blog series in which we compare approaches to tuning the Google Search Appliance and Microsoft Search Technologies.

July 3, 2008 3:34 PM
 

Jaime said:

Hi, I have created my own custom field type following this post and others like this.

I have problem and It's that my field can save modified values. If I create a new column of my type, properties are stored properly. But, when I want to modify these properties, it doesn't work as I expected.

I saw your post and it uses the solution when the column is added and not when is modified. Can you explain a little more why of my behaviour and the reason of your solution???

Thanks.

July 7, 2008 6:36 AM
 

Microsoft Office For Macbook ♦ Apple MacBook and MacBook Pro News said:

July 27, 2008 5:06 PM
 

Best Macbook ♦ Apple MacBook and MacBook Pro News said:

[...] an interesting post was made today on this site [...]...