SIMULATE "APPLICATION_START" IN SHAREPOINT

If you've worked within a SharePoint project, you may have noticed the absense of the "Global.asax" file. The SharePoint infrastructure doesn't include this file, so all methods within it, including the "Application_Start", are also unavailable. However, with some tricky maneuvering, we are able to simulate it.

[continue reading]

Simulate "Application_Start" in Sharepoint
11.25.2013 ~ 03:30 PM
posted in professional
tagged in sharepoint : c# : asp-net
comments [0]

 

ORCHARD CMS - ERRORS WHEN PUSHING CHANGES IN THE MIGRATIONS FILE

I really love the Orchard CMS (the CMS engine built upon the .NET MVC Framework), but it isn't without its quirks. I've found that often times, when I try to delete a column from an existing table in the migrations file, the site inexplicably starts throwing errors. After digging through the error log, I found that the error usually is along the following lines:

Error when updating module: "A tenant could not be started: Default NHibernate.PropertyNotFoundException: Could not find a getter for property '{property}' in class '{className}'" 

Basically, even though the column was deleted in the migrations file, Orchard is still looking for that column.

[continue reading]

Orchard CMS - Errors When Pushing Changes in the Migrations File
2.07.2013 ~ 04:57 PM
posted in professional
tagged in c# : asp-net : orchard : orchard-cms
comments [0]

 

"THE TYPE OR NAMESPACE NAME 'SCRIPT' DOES NOT EXIST IN THE NAMESPACE'SYSTEM.WEB' (ARE YOU MISSING AN ASSEMBLY REFERENCE?)"

Sound familiar? How about one of these:

  1. The type or namespace name 'KeyValueConfigurationCollection' could not be found (are you missing a using directive or an assembly reference?)
  2. The type or namespace name 'Serialization' does not exist in the namespace 'System.Xml' (are you missing an assembly reference?)
  3. The type or namespace name 'SqlClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

The underlying problem is that the assembly being referenced isn’t included in the GAC (global assembly cache) on the server. Since developers typically have more control over their local environments, this error is often only exposed when a project is deployed to a production server.

[continue reading]

"The type or namespace name 'Script' does not exist in the namespace'System.Web' (are you missing an assembly reference?)"
5.03.2012 ~ 11:18 AM
posted in professional
tagged in c# : asp-net
comments [2]

 

USING REGEX AND YIELD TO RECURSIVELY FIND MULTIPLE CONTROLS

This is a simple extension method that finds all child controls whose ID matches the regex pattern.

[continue reading]

Using Regex and Yield to Recursively Find Multiple Controls
6.08.2011 ~ 10:33 AM
posted in professional
tagged in c# : asp-net : extension-methods
comments [0]

 

C# DELIMITER

This is a handy little class that I’ve used quit a bit since it’s creation, so I thought I’d share it with the world.

[continue reading]

C# Delimiter
1.13.2011 ~ 12:57 PM
posted in professional
tagged in c# : asp-net
comments [0]