Simple question, how to set maximum upload file size in SharePoint? Here’s how….
6 Jun 2012
18 Apr 2012
‘File Not Found’ Error after SmartPart Installed on SharePoint 2007
Guys, I think want to share something from today’s work. Some colleague found a problem with our SharePoint 2007 and been installed with SmartPart. I don’t know what version which causing the problem. But seems that this is a common problem. When you look at the Web Part gallery, and there’s a new button to create a new *.dwp file. Tried to click it, and you’ll got the error, File Not Found.
Before I wrote this, I have no idea what SmartPart is, to be honest. But, once again, always put your hope on search engine, and it’ll work (well, not always).
Please, enjoy the solutions at this address, http://smartpart.codeplex.com/workitem/2708. The method call involving registering an assembly. And as I thought, it only just an assembly file problem, not pointing to a correct version. SmartPart is using System.Web.Extensions the old version (1.0.61025.0) while in the whole SharePoint web context is using another newer version. That’s why it throws an error.
It says that you need to add (or modify if it does exist) the entry in dependentAssembly in web.config. Check and re-check the XML before applying.
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0" />
- </dependentAssembly>
Hope it helps you out.
3 Apr 2012
Change Virtual HD (VHD) UUID in Oracle VirtualBox without Clone
This tips really helped me out when I want to copy a VHD and add a new virtual machine to my Oracle VirtualBox. I really liked VirtualBox, working fine until now, liked the integration between host and guest OS, really manageable but still have Cons on file Copy and Paste between host and guest OS. But when you tried to copy VHD to another location, and just add it to a new virtual machine, this thing came out!
Last time, I must clone that VHD which will create a new VHD/VDI with a new UUID, which was took very long time if your VHD more than a Gigs. Now, not anymore! Just ran this command, and in seconds, the UUID changed without clone the HD! And you can start creating your brand new virtual machine.
vboxmanage internalcommands sethduuid <the VHD path>
So sorry if my language screwed up ….
19 Mar 2012
Automatic IIS Configuration Script for SharePoint 2010
Just found out this batch script from Microsoft. Maybe you ever found this solution, but better to share piece by piece than just share the link from Microsoft.
15 Feb 2012
Forefront Identity Manager Service Failed to Start in SharePoint 2010
Did you ever got this when restarting your SharePoint 2010 machine?
Too bad that this thing is always happening every time you restart your SharePoint 2010 machine. Got the answer from a buddy in internet (thanks Michael Hanes, this is really helping me a lot!). I got to tell you, this thing happens after I’ve upgraded my SharePoint development box to Service Pack 1.
This is the simple fix, I hope you’ll find this thing helpful to you by looking at the series of images below. Please ask me anything if it not clear to you. Thanks!
30 Jan 2012
Simple Scheduled SSIS Package for Import Data
Well, next week will be a brand new workplace for me. This week means rest for me, and I’m happy with it. Anyway, I’ll share to you how to make a simple SQL Server Integration Service package to be scheduled every time. You don’t have to do a code, if your import job is very simple. I’ll show you more on next paragraph.
26 Jan 2012
Windows Live Writer is the Best Blog Writer!
Problems in SharePoint 2010, “The service was unable to start because the version of the database does not match the version of the product.”
Lately, I’ve updated my SharePoint 2010 development engine to SharePoint 2010 Service Pack 1, and after updating SharePoint 2010 to Service Pack 1, and starting all services, there’s one service won’t run, Forefront Identity Manager Synchronization Service. When looked at the Event Viewer log, it says The service was unable to start because the version of the database does not match the version of the product.
19 Jan 2012
How to Query SharePoint Web Analytics Reports from SQL Server
2 Des 2011
Tips: Simplify your ‘OR’ Logic in C#.NET
I think I do have a little tips for you to share. Not very significant tips, but you can use it for your daily practice.
Sometimes when you want to use a logic like this, it’s too long to write code.
- if (Fld.Type == SPFieldType.Choice || Fld.Type == SPFieldType.Note || Fld.Type == SPFieldType.Integer || Fld.Type == SPFieldType.Number)
- FieldContent = (string)Li[Fld.Id];
But you can simplify your code using this code below.
- if (",Text,Note,Choice,Integer,Number,".Contains(Fld.TypeAsString))
- FieldContent = (string)Li[Fld.Id];
Happy coding…!