View IPrestrictAzureWebsite.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
View gist:8211550
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
View gist:8211541
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View gist:8211531
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View gist:8173167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View gist:8173060
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
View contourXSLTwithURL.xslt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" |
View Regex-numbers&spaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^[\s\d]*$ |
View memberExist.Umbraco.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userName = "myUserName"; | |
var memberExist = false; | |
if(Membership.GetUser(userName) != null) | |
{ | |
memberExist = true; | |
} |
View text_general.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
NewerOlder