Author Archives: Bernado

Unknown's avatar

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.

The mysterious SPItemEventProperties.AfterProperties

What you can/cannot access in BeforeProperties and AfterProperties in list event receivers can be mysterious. Here is a very good/clear description of what you can expect when and where: http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=25 In addition to what’s in the above link, I found that … Continue reading

Posted in SharePoint | Leave a comment

Can’t create SPSite object in SharePoint 2010: FileNotFoundException: The Web application at http://localhost could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

I wrote my first console app against SP2010 in VS2010 the other day and ran into the above exception at the very first line: using (SPSite site = new SPSite(http://localhost) It turns out because my console app was targeting x86 … Continue reading

Posted in SharePoint | 2 Comments

Upload Multiple Documents in SharePoint stops working with Office 2010 clients

Problem: Uploading Multiple Documents into a Document Library in SharePoint doesn’t work on client machines with Office 2010 installed. You are able to drag & drop or browse for files, but when you click OK, the spinning icon just spins forever … Continue reading

Posted in Office 2010, SharePoint | 1 Comment

Changing custom timer job schedule in SharePoint 2010

Well actually this is really easy to do now in SharePoint 2010. In Central Admin, go to Monitoring > Review job definitions > [job] and you get the setting screen below.   Notice that there is also a RUN NOW … Continue reading

Posted in SharePoint | Leave a comment

Can’t retract SharePoint timer job because the job "cannot be deserialized because it does not have a public default constructor"

If you forgot to include a default constructor in your timer job class, you will get the error below when activating the feature that installs the job: SharePointProject1.TimerJobs.TrackingTimerJob cannot be deserialized because it does not have a public default constructor. … Continue reading

Posted in SharePoint | Leave a comment

Properties missing from Visual Studio 2010 Intellisense..

Today I ran into a problem that made me think I was either blind, crazy.. or both. I created a new SharePoint 2010 project in Visual Studio 2010 and was trying to code against the SPSite.WebApplication property but it was … Continue reading

Posted in SharePoint, Visual Studio 2010 | Leave a comment

Intermittent "Object reference not set to an instance of an object" error when looping through SPListItemCollection

Today I ran into an issue where I intermitently get the following error when attempting to loop through a SPListItemCollection in a foreach loop: Object reference not set to an instance of an object. at Microsoft.SharePoint.Library.SPRequest.SetVar(String bstrUrl, String bstrName, String bstrValue) … Continue reading

Posted in SharePoint | Leave a comment

Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

The other day I came across this problem that I had not seen before. It was to do with running unit tests in Visual Studio 2008. All tests would fail with the exception: Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable … Continue reading

Posted in Unit Test | Leave a comment

Can’t see Site Settings even if you are a Farm and Site Collection Administrator?

So today I needed to investigate certain settings of a site collection in our dev environment. I went to the web site but cannot see Site Settings in the Site Actions menu at all. I checked Central Admin and I am a … Continue reading

Posted in SharePoint | Leave a comment

Problem with Document Information Panel and SharePoint Lookup Columns

I have been troubleshooting an issue where Word 2007 could not open/load the Document Information Panel when a new document is created from SharePoint (MOSS 2007). The error message you’d get from Word is Document Information Panel cannot create a new, blank … Continue reading

Posted in Document Information Panel, Lookup Columns, SharePoint, Word 2007 | Leave a comment