Well had another problem all of a sudden with SP 2010.

I wasn’t able to make any list or library because this error kept popping up.

So again thinking of what did I do now, what did I changed that wasn’t allowed to? For a change I didn’t do anything that wasn’t allowed , deployed a few webparts, but that couldn’t be the problem.

After some searching I can across this site ( link)

It stated that it could be a production bug.

If you go to the central admin -> manage web apps -> general settings of the web app with the problem and re enable the security validation. Wait a minute, yeah i’ve changed this not to lang ago because I had issues with some generating/adding open xml (office) documents.

No that can’t be it….. Sure enough the error was gone.

The short explenation: Silverlight Application is unable to connect to the WCF endpoint configured by the product for enabling Client Object Model, if Security validation is set to Off. (copy/paste from the site)

hope this will help someone in the end. It’s a stupid error to have, but an error none the less πŸ™‚

Hey everyone

Today I had a problem that kept me busy for 2 hours.

I loaded up an old webpart (was in type class library and I’ve build the webpart entirely via code) and I wanted to debug it.

Deployed the webpart and activated the feature, checked the DLL was in the GAC (global assembly cache).

Visual Studio loaded up the solution, added a breakpoint in the constructor, attach to process. Ok the red dot was filled so all was good.

Ok let’s go debugging, eeuhm, that’s strange the webpart is being displayed and the breakpoint isn’t being hit.

After searching for 30min, I used my best friend (google πŸ˜‰ )

Found a few possible solutions, saying that it’s a 32-64bit setting in IIS. Ok let’s change it (advanced setting in IIS web app ) , nope didn’t work

Another one was in Microsoft.netframeworkv4…… ASPNET_REGIIS -ir , nope didn’t work as well

Last one , basic setting in IIS , change to classic and V4 , still nothing.

Changed the 32-64bit, V4 back to normal and starting to look again.

To make a long story short. If you can attach to the process, it all appears normal but VS2010 doesn’t want to hit any breakpoints. Go to Tools -> attach to process -> select the W3WP and before you hit attach, check the “attach to” field.

If this is on Automatically, this could be your problem. Especially when it says “Automatic: Managed (v4.0) code, T-SQL code” .

Change it to manual and only select “Managed (v2.0, v1.1, v1.0) code”.

This did it for me πŸ˜€

happy debugging

This is a short blog for the people who are looking for IISAPP (in the command prompt gave the W3Wp process id’s and their link to the IIS application pool) in windows 2008.

Well in short it’s gone, but no worries “%windir%system32inetsrvappcmd.exe list wp” Β is the new command.

Why would you use it? if you must debug and wspbuilder isn’t working correctly (normally a wrong DDL) and you need to attach it manually. If you have 10 W3WP”s services, you can ofcourse connect to all of them, but if you are with 2 developers on 1 dev machine, this can be quit annoying.

So main rule, only connect to your W3Wp and not all 10 πŸ™‚

Hope it helps someone

hey everyone

Today I started up the CAML Builder again (I know, Linq to SharePoint rulez, but underneath it still translates to CAML πŸ™‚ ).
So it started giving me an error saying that the user isn’t getting access to the Content Database.

Ok, SQL 2008 management studio (for those who have to install it on a server 2008, good luck but I’m not a too bad of a guy πŸ™‚ http://goneale.com/2009/05/24/cant-install-microsoft-sql-server-2008-management-studio-express/ )

open -> security -> right click user -> properties -> user mapping (got an error saying that certain db’s are not listed) ok ok , uh? where are my content db’s. Those are the db’s that are not listed

Ok rightclick the db’s , no access, figures …. and is normal, at install and creating content db, SharePoint 2010 is only giving sa and another account access and all the rest, well you shouldn’t be snooping arround in the catacombs of SharePoint SQL he .

But my problem still existed, I couldn’t use the CAML Builder πŸ™

SO, as every good SharePoint we’ll have to be all round and via some googleing (lost the url where I found the solution, but I’m just spreading the word, give credit who’s credit due πŸ™‚ )

the solution is in the SharePoint Powershell
$w = Get-SPWebApplication -identity “name of the web app”

et voila user has access to the sql content db of the web app.

If you have a blog, post it , It kept my busy for atleast 4 hours before I found what I was looking for.

Hey everyone

Today I was testing a migration from our clientportal from MOSS 2007 to SharePoint 2010.

Well after the stsadm preupgradecheck and a few error the rest went smooth.

Once migrated I noticed that the look & feel still 2007 was, this was ofcourse of the visual upgrade setting.

Well you can visual upgrade via 2 ways.

(top level site) Site Actions -> Site Settings -> and in site collection administration Visual Upgrade

or the way I used is via PowerShell (let’s admit it , we’ve all been waiting to use this wonderful and easy language)

well here’s the powershell script (and ofcourse you can use some in C# code.

$site = Get-SPSite(” sitecollectionurl “)

foreach ($web in $site.AllWebs) { $web.UIVersion = 4; $web.Update()Β }

The thing is UIVersion = 4 sets the view to SharePoint 2010

UIVersion = 3 sets the view to SharePoint 2007.




hey everyone

Some time ago I had to do a restore of a SharePoint intranet. Nothing special here, using the stsadm commands backup and restore, so far so good.
But the problem came during the restore process, the server took so much memory that it almost flatlined. Even opening a window took ages.

Now what was the problem?
Out of the box SharePoint installs the embedded SQL server.
But if you are not a DBAdmin like me (I know SharePointers need to know Windows Server to the bone (IIS, AD, DNS, …) you would probebly not know this.
The embedded SQL server has a memory issue and that is, by default it requires all the memory and this is where the problem was.
You’ll need to go via a SQL Management studio express program to your (.pipeMSSQL$MICROSOFT##SSEEsqlquery) embedded sql server.
Than rightclick your sql server and choose properties -> memory options and here change the default maximum server memory to whatever is right for the server.

Some pointers, look at the purpose of the sql server, if you need to index 200.000files don’t give it 512MB. Also look at the memory of the server it self, server has 4GB memory, don’t give 6GB πŸ™‚

Hope this helps someone

hey everyone

Well i’ve been busy again in the SharePoint world of consulting and developing.

And we’ve been working with SharePoint 2010 beta 1 since day one and what a change ….

It all looks nice although i still find myself looking for the site actions button on the right hand side of the screen (it’s moved to the left for the people who haven’t seen the new SP).

And also i’m missing the breadcrumb, maybe it’s still there … Β hidden … but i highly doubt it. Instead it’s a small icon with some sort of ajax navigation control behind it

Anyway I’ll soon post an blog about how to add navigation and how to use globalAdminPageBase class to add pages to the Central Admin of SharePoint 2010.

I’ve downloaded a wsp written by Karine Bosch (give credits who’s credit due, it’s very well written for SharePoint 2007, http://www.u2u.be/Res/Tools/SharePointJobDefConfig.aspx)

and i’ve reviewed it to be used in SharePoint 2010.

So watch out for the next few blogs and i’ll leave you with a few sneek previews.

[nggallery id=1]