Unable to cast object of type ‘Microsoft.SqlServer.Management.Smo.SimpleObjectKey’
by admin on Feb.03, 2010, under Software, sql server
Today I was doing some tasks on SQL Server 2005 with SP2. I had some problems with adding jobs and getting the following error message:
Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent.JobObjectKey'.
The issue was using client tools without SP2. You can't add jobs to a SQL Server 2005 with SP2 with SQL Server 2005 RTM Client Tools.
MOSS 2007 / MSS 2010 virtualization problems.
by admin on Jan.20, 2010, under Virtualization
In the last couple of years I installed alot of different farms for SPS2003, MOSS 2007 and yet I started with the installation of MSS 2010.
Most organizations started using Virtualization software like VMWare ESX of other virtualization software. As far as I know I had to most problems with MOSS 2007 on virtual boxes. The most problems where database servers or badly configured boxes.
When you're using SQL Server or other database server you'll will see that when they are bad configured your farm is performing very very bad. Why?
One of the biggest reasons is that when you're running a database direct on a Virtual Hard Drive it will not perform as well. Why? Mostly the vhd's are using the same LUN on a SAN or physical disk. The best option here is to use pass-through disk to a LUN on a SAN.
Second when you're running a DB server on a Virtual Box and you allocate shared memory and shared CPU's it will also cost performance. This is also for MOSS or SP2010. You should use one-on-one CPU. So if you need 4 virtual CPU's you'll also need 4 cores and not sockets. For another example check your NUMA(Non Uniform Memory Access).
If you have a virtualbox with 8 cores and 32 GB of memory then your NUMA is 4 GB. So you can maximum allocate 4 GB of memory to a virtual server. If you allocate more memory it can cost your performance.
If your using VLAN's and you have multiple Virtual Switches ensure that your MOSS or SP2010 environment is using the same Virtual Switch. If the latency is higher then 1ms your performance will drop. MOSS and SP2010 will only have a good performance with a very low latency.
Also if you're running an AD server and this server is also running poorly your SharePoint environment will also perform poorly. SharePoint authenticates alot.
Most hardware performance issues are written above. Look at it when you're making SharePoint environment virtualized. 80% of the problems are the DB server of the Indexing Server of your SharePoint environment.
MSS 2010 / .NET 3.5 / Farm
by admin on Dec.12, 2009, under blog
Well I installed a complete new infrastructure to test the first beta of Microsoft SharePoint Server 2010. So configured a SQL Server 2008 R2 CTP with Windows Server 2008 R2 EE on Hyper-V.
Everything done. And let's play with MSS 2010. Well I was happy to say that I had the option of installing a farm. Well when the installation was running I could say I was disappointed by the fact that SQL Server 2008 was installed on the APP server. So I concluded that the first installation I had no choice that SQL Server was running on the same machine.
The second conclusion is the unforsaken Ribbon of Office 2007. You have alot more options, but if you can say that everything will be worked out better? Well I can say that MOSS 2007 was allready full with bugs with the initial RTM release, and how many bugs can we have with MSS 2010? Well hopefully not that much like MOSS 2007 RTM, because we can wait again for along time to see the first SP. The naming of WSS to Foundation isn't not too bad, but if you can say if it is a Foundation?
The next thing is the fact that not ASP.NET 4.0 Beta 2 is used by MSS 2010. So we're going not upwards, but standing still with the same framework. Also noticed that you have to
use some regfixes to fix some bugs for MSS 2010. Too bad!
First conclusion:
MSS 2010 is alot faster.
MSS 2010 has .NET Framework 2.0/3.5 and not .NET 4.0
Beta and farm installation is too bad.
MSS 2010 has alot of new features and options (also Lotes Notes included).
And yet more to come.
Windows 7 Installation
by admin on Oct.12, 2009, under Hardware, Software, maintenance
Well finally I had the time to make a clean install for Windows 7 Ultimate x64.
It took me 1,5 half hour to be up and running again... that means Install Windows 7, full updates, Office 2007 Ultimate and MSN to work with.
Well that wasn't to hard, except for the Realtek RTL8111 drivers for my LAN. The drivers supplied by Microsoft Update ruined the LAN connection, so I had to download new drivers from Realtek by itself.
After that I was happy that I finally installed it
Update: 10/15/2009 12:16 AM
So the first important things I've noticed is:
Now let's keep playing with Windows 7.
Owwh yeah my system configuration:
CPU: AMD Phenom II X4 940
Mainboard: Gigagyte GA-MA790GP-DS4H RF3
Memory: OCZ DDR2-800 Reaper 4x2GB CL4 OCZ2RPR800C44GK
Graphics cards: 2xSapphire 4850 1GB
Disk config: 3x320gb RAID 5 for OS
Disk config 2: 3x1TB RAID 5 for DATA
Sound: Soundblaster 2 Audigy 24bit Advanced
Screens: 2x IIyama 26"
Moved site to Hosting
by admin on Oct.10, 2009, under maintenance
I used to host my own sites, but since KPN disconnected every port I'd used I had to get some Hosting party to host my sites and email.
Damnit, there goes my own stuff..
Server went down for some reason
by admin on Aug.03, 2009, under blog, maintenance
A strange thing happend last day is that for some reason my Web Server went down in action... I couldn't explain why it happend, but I managed to gave it a rebirth of the server.
After 30 days without reboot, wow :-S It went down, and yet I cannot figure out why. Nothing changed, and I saw my logfiles and even there it didn't show anything. So, what happened then? I don't know.
DataFlow in SSIS and OLE DB Command
by admin on Jul.11, 2009, under Programming, SSIS, sql server
I've been working for the first time with a DataFlow of updating data in a SQL Database with SSIS. The only problem is that a colleaque did made it, but he forget something with it. After reading some documentation about the DataFlow in SSIS and the using of a OLE DB command to execute a Stored Procedure I came to a certain problem.
The problem is that a OLE DB Command can execute a Stored Procedure, but the error handling is really a issue. Why, you can give a output parameter with it, but for some reason it doesn't work well. The question is why they didn't use a SQL Task to execute a Stored Procedure. Now I'm searching why my stored procedure isn't fired well.
Well the problem is that the stored procedure contains a error handling not supported by the OLE DB Command. And when you have error handling handled by you SSIS you get a Error Number 0 returned. So your searching for a problem with Error number 0? That's really crap. So I get rid of the Error handling in the stored procedure, and well the funny thing is that the stored procedure really is fired well and with filled parameters. But another problem is now that there are not enough parameters filled to execute the Stored Procedure properly.
So I have to search for that issue to solve the problem....
Van werken wordt je niet moe …
by admin on Jul.11, 2009, under General, life
Wat me altijd verbaast van mensen die zeggen dat ze moe zijn van het werken? Is dat psychisch of lichamelijk? Te weinig slapen, problemen, te weinig goed eten, noem het maar op? Waar ligt dat nou aan? Ik kan het af en toe niet bevatten... Ligt het misschien aan de werkdruk, of aan de manier van werken? Ligt het aan de mensen waarmee je werkt?
Het zijn allemaal van die dingen die parte zouden kunnen spelen als je moe bent... Ik zelf wordt echt niet moe van werken, het tegendeel zelfs... ik krijg er energie van... iedere dag weer ben ik blij dat ik kan werken, en hoop ik altijd dat er teveel werk ligt. De reden dat ik hoop dat er teveel ligt dat betekend dat ik er tegen aan mag gaan... Yes, mensen kunnen dat af en toe niet bevatten, maar ik vind het heerlijk als ik een druk op me heb.
of ik nou 40 uur of 60 uur moet werken dat maakt me niet eens uit... het belangrijkste is dat ik kan werken op de manier zoals me dat zelf bevalt, en op de snelheid die mij bevalt. Als ik in een te laag tempo moet gaan werken dan trek ik dat niet, want daar wordt ik moe van... dan krijg je het gevoel dat ik bezig moet zijn om maar bezig te zijn. Dan moet je op een tempo werken wat je niet ligt.
Te weinig slapen kan wel resulteren in een vermoeidheid, maar dat heeft dan niets met werken te maken, maar met de gesteldheid van een persoon. Aan me eet patroon zal het niet liggen, want ik eet genoeg om 2 tot 3 mensen te voeden, hahaha.
Neej, je wordt niet moe van werken, je wordt moe van alles daarom heen. Een relatie wat niet loopt, conflicten op het werk, het werk bevalt je niet, je slaapt te weinig, noem het maar op. En als mensen zeggen dat ze moe zijn van werken dan kun je je afvragen of ze niet ergens anders moe van zijn... ls het goed is doe je je werk wat je graag doet, en waar je goed in bent. En af en toe zul je dingen doen die je niet bevallen, maar dat is nu eenmaal het werkleven... heeft niets mee te maken dat je moe bent van werken, maar eerder dingen doet waar je niet goed in bent, waar je dus meer je hersenen moet gebruiken...
Ik kan begrijpen dat je wel lichamelijk moe bent, we worden immers allemaal wel een dagje ouder, en voor mensen die lichamelijk werk verzetten die zullen het heus wel zwaarder hebben... maar er is niets zo fijn als lichamelijk moe zijn... lichamelijk moe betekend dat je lichaam wat te doen heeft gehad... en dat is alleen maar positief. Dat geeft je ook een voldoening, althans in mijn geval dan... voor een ander kan ik niet spreken.
Waar ik me wel aan stoor is dat mensen lopen te zeiken dat ze teveel werk op hun bordje hebben, of dat ze helemaal vol zitten in hun hersenpan... houdt in dat ze het gewoonweg niet aan kunnen, en dus in weze niet geschikt zijn voor het werk wat ze beoefenen...
Waar ik wel moe van kan worden is het lange reizen in de auto om naar een klant toe te gaan, omdat je er zo vroeg uit moet en 's avonds laat pas thuis komt, maar dat heeft dan weer niets met werken te maken... dat kost best veel energie, want je bent gewoonweg op pad zonder eigenlijk daadwerkelijk bezig te zijn met werken. Ja werken bijv in je auto, omdat er genoeg mensen zijn op de weg waar je gewoon voor moet opletten dat ze niet spontaan naar links komen zetten als je naast ze rijdt, of dat er weer is een debiel is die niet kan rijden. Dat zijn van die dingen waar je gewoon weg op moet letten en dat kost energie.
Ach zo kan ik uren blijven schrijven over dit soort zaken, maar ik vind het heerlijk om te werken... het geeft me voldoening om een klant vrolijk te zien als je een product oplevert, of dat je problemen verhelpt... dat is een doelstelling die ik mezelf iedere dag weer stel. Gewoon dingen bewerkstelligen waar je mensen mee kan opvrolijken.
how to exclude paths in your #sharepoint farm
by admin on Jul.03, 2009, under blog
Allright let's get started. Because a normal SharePoint farm will not allow you to request pages with logged in on your website. This is because MOSS will intercept every page you will ask even when you are using an Web Application. In WSS 2.0 and SPS 2003 you had to the possibility to exclude certain paths from being captured by SPS or WSS.
Well in SharePoint 2007 you can't make an exclusion in Central Administration, but you can do it by manual. How to do this is easy or not, but it's possible. You can't access pages directly in a Web Application, but you can create a Virtual Directory. Still when you access this virtual directory, SharePoint won't allow you to access this virtual directory.
Now we have to do it another way. Let's modify the web.config of your Web Application.
this is probably how your
<httpHandlers> <remove verb="GET,HEAD,POST" path="*" /> <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </httpHandlers>
modify it to this:
<httpHandlers> <!-- <remove verb="GET,HEAD,POST" path="*" /> --> <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" /> <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" /> <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </httpHandlers>
Change the trust level:
<trust level="Full" originUrl="" />
Ensure that your virtual directory has it's own web.config. Without an own web.config it will inherit from your web.config in your website (of course your web.config of your web application).
