Unable to create Umbraco Packages
Created by Dan Lister on 2 September 2010
If you experience the below error while creating an Umbraco package
Root element is missing.
I had this problem a while ago, check your /App_Data/packages/created/createdPackages.config
Mine was an empty file so I added the following;
<?xml version="1.0" encoding="utf-8"?>
<packages></packages>
Then I could create packages without getting the above error.
iPhone and Augmented Reality
Created by Dan Lister on 1 September 2010
Some tutorials found for Augmented Reality development on the iPhone.
Upgrading to EPiServer 6 and Login Urls
Created by Dan Lister on 1 September 2010
When upgrading to EPiServer 6, amendments to custom login pages have to be made if the custom login page is using the generic EPiServer styling. EPiServer have altered style sheet references and also class names.
EPiServer and ISAPI Url Rewriting
Created by Dan Lister on 1 September 2010
ISAPI URL Rewriting
If for any reason, friendly urls are not being parsed and are not having a page displayed, it maybe the case that the ASP.NET ISAPI filter is not configured properly. In order to correct, a new application extension mapping is required on the IIS website. This can be found in "Home > Configuration > Insert Wildcard Application Map". The executable path should be as follows: "C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" and the "Verify that file exists" property should be unchecked.
How to check if an EPiServer Dynamic Property has been specified on the current page
Created by Dan Lister on 1 September 2010
Use the following method to check if an EPiServer Dynamic property has been set on the current, passing the page reference and property key to the method.
public static bool IsSetOnPage(PageReference pgRef, string key)
{
DynamicPropertyCollection prop = DynamicProperty.ListForPage(pgRef);
return prop != null && prop[key] != null && string.IsNullOrEmpty(prop[key].InheritedValue);
}
How to remove GIT Commits
Created by Dan Lister on 1 September 2010
Use the following git commands with caution. Do not do this unless absolutely necessary.
To remove the last GIT commit, use the following command:
git reset --hard HEAD~1
To tell GitHub you definitely want to force an update and rewind the history, use the following git command:
git push origin +master:master
Too Many Connections via Windows Remote Desktop
Created by Dan Lister on 11 June 2010
To previously solve the problem of having too many connections while trying to remote desktop into a windows machine, the command 'mstsc.exe /console' could be used to force all users out of the machine.
Unable to upload PDFs or DOCs using EPiServer's VPP
Created by Dan Lister on 7 June 2010
You may encounter an unusual problem with EPiServer's virtual path provider where by you will be unable to upload PDF or word documents but are able to upload things such as images.
EPiServer TypeInitializationException, Windows 7 and IIS 7
Created by Dan Lister on 7 June 2010
A problem may arise when using Windows 7, IIS 7 and EPiServer CMS 5. When the application refuses to start, you will receive a TypeInitializationException. I think this is caused by the global application start method trying to access the Data Factory class when unavailable.
Installing AJAX on an existing Web Application
Created by Dan Lister on 7 June 2010
Installing AJAX, I've found, can be a slight pain when a web application has already been created. I've found the following steps help to install the AJAX framework successfully to an existing .NET Web Application.
Retrieving EPiServer's SiteUrl Property
Created by Dan Lister on 28 May 2010
Finding EPiServer's site URL is a little more challenging then you'd expect. To access the current site's URL, use the following property:
UriSupport.SiteUrl
Fancybox and Submitting ASP.NET Forms
Created by Dan Lister on 27 May 2010
In order to submit .NET forms from a Fancybox, validation and postback has to be manually triggered to perform the desired behaviour. Because a .NET form is rendered outside the page's form element, the form won't know where to post to.
Showing a Fancybox after Successful Validation
Created by Dan Lister on 27 May 2010
I recently had a scenario where by I required a Fancybox to appear after validation had been executed within a standard ASP.NET form. The difference being that I wanted the Fancybox to only appear if validation had been successful. In order to solve the problem, I had to add an extra function to the 'onclientclick' property of the form's submit control and manually trigger the web form validation function.
Self Closing Script Tags in Internet Explorer
Created by Dan Lister on 20 April 2010
It turns out that all versions of Internet Explorer do not like self closing script tags or as the Internet world calls it, element minimization. Self closing script tags are perfectly valid XHTML elements, but invalid HTML elements. Internet Explorer only supports XHTML to the extent that only HTML-compatible markup is possible. All other major browsers support XHTML markup.
EPiServer File Manager and Missing Thumbnails
Created by Dan Lister on 20 April 2010
Recently I encountered a problem whereby viewing thumbnails for images within EPiServer's file manager would not render correctly. After investigating as to why this problem occurred, I found that the issue was due to incorrect permissions on the '/util/temp/thumbcache/' folder within the site's application folder.