diff --git a/LinqToUmbraco/src/umbraco.Linq/Core/DocTypeBase.cs b/LinqToUmbraco/src/umbraco.Linq/Core/DocTypeBase.cs
index 46966db7b3..3ffcf84257 100644
--- a/LinqToUmbraco/src/umbraco.Linq/Core/DocTypeBase.cs
+++ b/LinqToUmbraco/src/umbraco.Linq/Core/DocTypeBase.cs
@@ -6,6 +6,7 @@ using System.Runtime.Serialization;
using umbraco.BusinessLogic;
using System.Xml.Linq;
using System.Collections.Generic;
+using System.Text.RegularExpressions;
namespace umbraco.Linq.Core
{
@@ -367,5 +368,14 @@ namespace umbraco.Linq.Core
public event PropertyChangedEventHandler PropertyChanged;
#endregion
+
+ protected void ValidateProperty(string regex, string value)
+ {
+ Regex r = new Regex(regex);
+ if (!r.IsMatch(value))
+ {
+ throw new InvalidCastException("Value does not match validation expression from Umbraco");
+ }
+ }
}
}
diff --git a/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine.Tests/DTMetal.Engine.Tests.csproj b/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine.Tests/DTMetal.Engine.Tests.csproj
index cbb91add6e..e00a467fad 100644
--- a/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine.Tests/DTMetal.Engine.Tests.csproj
+++ b/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine.Tests/DTMetal.Engine.Tests.csproj
@@ -68,7 +68,7 @@
False
- ..\..\..\dep\Reference Assemblies\Umbraco\umbraco.DataLayer.dll
+ ..\..\..\..\umbraco\datalayer\bin\Debug\umbraco.DataLayer.dll
diff --git a/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine/Extensions.cs b/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine/Extensions.cs
index 9d5d8b24e5..68666d7d06 100644
--- a/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine/Extensions.cs
+++ b/LinqToUmbraco/src/umbraco.Linq/DTMetal.Engine/Extensions.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using umbraco.DataLayer;
+using System.Data.SqlTypes;
namespace umbraco.Linq.DTMetal.Engine
{
@@ -39,7 +40,7 @@ namespace umbraco.Linq.DTMetal.Engine
{
return reader.GetInt("ParentId");
}
- catch (NullReferenceException)
+ catch (SqlNullValueException)
{
return 0;
}
diff --git a/LinqToUmbraco/src/umbraco.Linq/DTMetal/DTMetal.csproj b/LinqToUmbraco/src/umbraco.Linq/DTMetal/DTMetal.csproj
index dd29eec700..d64cd1a76e 100644
--- a/LinqToUmbraco/src/umbraco.Linq/DTMetal/DTMetal.csproj
+++ b/LinqToUmbraco/src/umbraco.Linq/DTMetal/DTMetal.csproj
@@ -48,6 +48,10 @@
+
+
+ 3.5
+
diff --git a/foreign dlls/MSBuild/MSBuildCommunityTasks/MSBuild.Community.Tasks.Targets b/foreign dlls/MSBuild/MSBuildCommunityTasks/MSBuild.Community.Tasks.Targets
index d90cb5b6f7..ba10f25695 100644
--- a/foreign dlls/MSBuild/MSBuildCommunityTasks/MSBuild.Community.Tasks.Targets
+++ b/foreign dlls/MSBuild/MSBuildCommunityTasks/MSBuild.Community.Tasks.Targets
@@ -3,7 +3,7 @@
- $(MSBuildExtensionsPath)\MSBuildCommunityTasks
+ $(ProjectDir)..\..\foreign dlls\MSBuild\MSBuildCommunityTasks
$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.dll
diff --git a/foreign dlls/umbraco.Linq.DTMetal.CodeBuilder.dll b/foreign dlls/umbraco.Linq.DTMetal.CodeBuilder.dll
index 12995030c8..924129d37c 100644
Binary files a/foreign dlls/umbraco.Linq.DTMetal.CodeBuilder.dll and b/foreign dlls/umbraco.Linq.DTMetal.CodeBuilder.dll differ
diff --git a/foreign dlls/umbraco.Linq.DTMetal.Engine.dll b/foreign dlls/umbraco.Linq.DTMetal.Engine.dll
index 28ed75bbe9..b979596572 100644
Binary files a/foreign dlls/umbraco.Linq.DTMetal.Engine.dll and b/foreign dlls/umbraco.Linq.DTMetal.Engine.dll differ
diff --git a/umbraco/presentation/umbraco.presentation.csproj b/umbraco/presentation/umbraco.presentation.csproj
index 6a72a09243..c543f6919f 100644
--- a/umbraco/presentation/umbraco.presentation.csproj
+++ b/umbraco/presentation/umbraco.presentation.csproj
@@ -3358,7 +3358,7 @@
XmlTree.xsd
-
+
@@ -3425,7 +3425,6 @@
-
@@ -3482,6 +3481,6 @@
- xcopy "$(ProjectDir)..\..\foreign dlls\*.dll" "$(TargetDir)*.dll" /Y
+
\ No newline at end of file
diff --git a/umbraco/presentation/web.STANDARD.config b/umbraco/presentation/web.STANDARD.config
index f231558d4b..48204aa464 100644
--- a/umbraco/presentation/web.STANDARD.config
+++ b/umbraco/presentation/web.STANDARD.config
@@ -1,28 +1,28 @@
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
-
+
+
@@ -50,69 +50,69 @@
-
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
+
-
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
+
@@ -132,15 +132,15 @@
-
-
+
+
-
+
@@ -185,37 +185,37 @@
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
-
+
\ No newline at end of file
diff --git a/umbraco/presentation/web.config b/umbraco/presentation/web.config
deleted file mode 100644
index f231558d4b..0000000000
--- a/umbraco/presentation/web.config
+++ /dev/null
@@ -1,221 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- http://regexlib.com/WebServices.asmx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/umbraco/presentation/web.config.APOWELL-VISTA.xslt b/umbraco/presentation/web.config.APOWELL-XP.xslt
similarity index 74%
rename from umbraco/presentation/web.config.APOWELL-VISTA.xslt
rename to umbraco/presentation/web.config.APOWELL-XP.xslt
index 0727903449..f8777c6d02 100644
--- a/umbraco/presentation/web.config.APOWELL-VISTA.xslt
+++ b/umbraco/presentation/web.config.APOWELL-XP.xslt
@@ -4,9 +4,13 @@
- server=.\sqlexpress;database=umbraco-4.1;Integrated Security=true
+ server=.\sqlexpress;database=umbraco-4.1;integrated security=true
-
+
+
+ 4.1.0.alpha
+
+