Category Archives: .NET

SharePoint 2010: Custom Timer Job Caching Old Code

I’m new to SharePoint 2010 development, and while I was working on a Custom Timer Job, every time I made a change to my code I noticed that those changes were not being applied… the “old” code was still being used. So, after doing some research (and losing a lot of hair), the way to [...]

Cryptographically Random Unique String

Looking for a way to create a Random Password Generator, I came across the following code written by Peter Bromberg (I thought to post it here in case it saves someone some time). This code will generate a cryptographically random unique string of any length you want. Ah! BTW, I’ve made a very small modification [...]

System.Web.HttpException: The file ‘/path/to/userControl.ascx’ does not exist.

If you’re working with User Controls (or other server side controls) and your file structure looks something like this: [] = directory [root] [userControls] ucTest.ascx ….. ucContainer.aspx Web.config And in your ucContainer.aspx file you have something similar to this: < %@ Register Src=”userControls/ucTest.ascx” TagName=”UserControl” TagPrefix=”uc1″ %> … … <uc1:UserControl id=”ucUserControl” runat=”server” /> … … And [...]

Parser Error Message: Could not load type ‘_Default’

While developing a .Net web app in C# with Visual Studio 2005, I got this error: Parser Error Message: Could not load type ‘_Default’ The reason: My website configuration was using the wrong .NET framework version (1.1.4322). The solution: Change it to use a .NET 2.0 version. In my case, 2.0.50727 The result: a nicely [...]