Dont Forget

ByTrent Jones

Issue with opening a solution with Silverlight in Visual Studio 2010

I recently started getting an issue opening any XAML file in the designer in visual studio. Visual studio would crash immediately. This then started to bleed over to crashing when trying to open the solution. I tried everything included reinstalling VS altogether. Didn’t work. When reapplying the Service Pack it downloads the Silverlight Developer tools from the internet. This version is 4.0.60531 which appears to be the culprit. Colleagues have an older version and have no issue. The error in Windows Event Viewer was fault in module agcore.dll. After a quick google i found this post with others having the same issue. The solution was to unregister System.Windows from the GAC. Presto. Works.

ByTrent Jones

Missing configuration file when using tt template

We are using tt templates to generate configurations for different environments. we choose this route for one file to maintain settings. However, everytime i added a new “config” like web.INT.config it wouldn’t be in the output directory of the build (using TFS2010). Found that I have to choose “Copy Always” from the file properties in Visual Studio to do the trick.

ByTrent Jones

Opening Test Results Pane in Visual Studio Error

Attempting to either run a unit test or open the Test Results pane in Visual Studio 2008 generates the following error on my machine:

“Exception has been thrown by the target of an invocation”

Following these instructions i have gotten around the issue. Sometimes I had to shut down a couple times and potentially be on the Team Explorer pane.

1. Close all the instances of Visual Studio
2. Open a VS (Without opening the solution).
3. Go to Test -> Windows -> Test Results.
4. Now open the solution and vsmdi.
5. Tests would run as usual

/via http://social.msdn.microsoft.com/Forums/en/vstsprofiler/thread/8bd8da75-76d2-4257-aeee-d040e6167bf9

ByTrent Jones

Sharepoint Central Administration Page not responding

In Windows 2008 Server removing the DynamicIpRestrictionModule will allow the page to work.

ByTrent Jones

IE and ContentEditable Attribute

Ran into an issue today using jQuery with IE and setting ContentEditable=’true’ on a click command. First I created a div with ContentEditable set to true without jquery and ran it in IE. Ok, it’s working. Now to try and add the attribute dynamically. I removed the attribute and replaced it with this bit of javascript:

$(function(){
$("#test").click(function() {
$(this).attr({ ContentEditable: "true" });
});
});

This did not work. Even though IE would allow the Cap “C” to set to true without jQuery, it would not work in doing so dynamically. Changing to:

$(function(){
$("#test").click(function() {
$(this).attr({ contentEditable: "true" });
});
});

Works perfectly.