Skip to content

Instantly share code, notes, and snippets.

Paul Sørensen PaulSorensen

View GitHub Profile
View IPrestrictAzureWebsite.xml
<system.webServer>
<security>
<ipSecurity allowUnlisted="false" denyAction="NotFound">
<add allowed="true" ipAddress="8.8.8.8" subnetMask="255.255.255.0" />
</ipSecurity>
</security>
</system.webServer>
@PaulSorensen
PaulSorensen / gist:8211550
Created Jan 1, 2014
TeaCommerce Umbraco 6.1.6 - prod enviroment (What causes the problem)
View gist:8211550
2013-12-31 17:15:00,678 [14] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 29] An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.DataTypes.StorePicker.StorePickerDataEditor.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
@PaulSorensen
PaulSorensen / gist:8211541
Created Jan 1, 2014
TeaCommerce Umbraco 6.1.6 - prod enviroment
View gist:8211541
2013-12-31 17:15:00,678 [14] ERROR umbraco.DataLayer.SqlHelper`1[[System.Data.SqlClient.SqlParameter, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - [Thread 29] Error executing query Select text from cmsTab where id = 9
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'cmsTab'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBeha
@PaulSorensen
PaulSorensen / gist:8211531
Created Jan 1, 2014
TeaCommerce Umbraco 6.1.6 - dev enviroment
View gist:8211531
2013-12-31 16:40:18,601 [70] ERROR umbraco.DataLayer.SqlHelper`1[[System.Data.SqlClient.SqlParameter, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - [Thread 58] Error executing query Select text from cmsTab where id = 9
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'cmsTab'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBeha
@PaulSorensen
PaulSorensen / gist:8173167
Created Dec 29, 2013
TeaCommerce StarterKit 3.3.0 on WIndows 2008 R2
View gist:8173167
2013-12-29 19:21:54,617 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Determining hash of code files on disk
2013-12-29 19:21:54,633 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Hash determined (took 12ms)
2013-12-29 19:21:54,648 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
2013-12-29 19:21:54,976 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 28 (took 331ms)
2013-12-29 19:21:55,023 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
2013-12-29 19:21:55,038 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 21ms)
2013-12-29 19:21:55,054 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Web.Mvc.SurfaceCo
@PaulSorensen
PaulSorensen / gist:8173060
Created Dec 29, 2013
TeaCommerce StarterKit 3.3.0 Umbraco 6.1.6
View gist:8173060
2013-12-29 19:14:08,301 [6] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 13] An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.DataTypes.StorePicker.StorePickerDataEditor.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
@PaulSorensen
PaulSorensen / contourXSLTwithURL.xslt
Created Dec 16, 2013
egeek.dk Umbraco Contour XSLT transformed email
View contourXSLTwithURL.xslt
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="urn:my-scripts"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="xsl msxsl user umbraco.library">
<xsl:output method="html" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="DTD/xhtml1-strict.dtd"
@PaulSorensen
PaulSorensen / Regex-numbers&spaces
Created Dec 4, 2013
egeek.dk Regex - numbers and spaces
@PaulSorensen
PaulSorensen / memberExist.Umbraco.cs
Last active Dec 29, 2015
Check if a member exist in Umbraco egeek.dk
View memberExist.Umbraco.cs
var userName = "myUserName";
var memberExist = false;
if(Membership.GetUser(userName) != null)
{
memberExist = true;
}
@PaulSorensen
PaulSorensen / text_general.xml
Created Oct 2, 2013
Solr fieldType "text_general"
View text_general.xml
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
<!-- in this example, we will only use synonyms at query time
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
-->
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
You can’t perform that action at this time.