mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Prepared Azure projects for .NET 4.0
Changed Azure references to SDK 1.2 Added a hack for the ASP.NET 4 bug in HttpEncoder Converted projects to VS10 --HG-- branch : dev
This commit is contained in:
@@ -2,7 +2,6 @@ glob:bin
|
|||||||
glob:obj
|
glob:obj
|
||||||
glob:App_Data
|
glob:App_Data
|
||||||
glob:_ReSharper*
|
glob:_ReSharper*
|
||||||
glob:src/Orchard.suo
|
|
||||||
glob:*.user
|
glob:*.user
|
||||||
glob:*.patch
|
glob:*.patch
|
||||||
glob:*.hg
|
glob:*.hg
|
||||||
@@ -11,8 +10,8 @@ glob:artifacts
|
|||||||
glob:*.sln.cache
|
glob:*.sln.cache
|
||||||
glob:src/Orchard.Web/Media/*
|
glob:src/Orchard.Web/Media/*
|
||||||
glob:desktop.ini
|
glob:desktop.ini
|
||||||
glob:src/Orchard.Azure.suo
|
|
||||||
glob:src/Orchard.5.0.ReSharper
|
|
||||||
glob:log.xml
|
glob:log.xml
|
||||||
glob:profiling
|
glob:profiling
|
||||||
glob:*.csproj.orig
|
glob:src/*.suo
|
||||||
|
glob:src/*.ReSharper
|
||||||
|
glob:*.orig
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="AzureSDK" value="C:\Program Files\Windows Azure SDK\v1.1\"/>
|
<add key="AzureSDK" value="C:\Program Files\Windows Azure SDK\v1.2\"/>
|
||||||
</appSettings>
|
</appSettings>
|
||||||
</configuration>
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
@@ -10,8 +10,28 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Orchard.Azure.Tests</RootNamespace>
|
<RootNamespace>Orchard.Azure.Tests</RootNamespace>
|
||||||
<AssemblyName>Orchard.Azure.Tests</AssemblyName>
|
<AssemblyName>Orchard.Azure.Tests</AssemblyName>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<FileUpgradeFlags>
|
||||||
|
</FileUpgradeFlags>
|
||||||
|
<OldToolsVersion>3.5</OldToolsVersion>
|
||||||
|
<UpgradeBackupLocation />
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -21,6 +41,7 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
@@ -29,6 +50,7 @@
|
|||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
<Reference Include="Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||||
@@ -47,6 +69,7 @@
|
|||||||
<Reference Include="System.Core">
|
<Reference Include="System.Core">
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Web" />
|
||||||
<Reference Include="System.Xml.Linq">
|
<Reference Include="System.Xml.Linq">
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -75,6 +98,23 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Windows Installer 3.1</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
# Visual Studio 2008
|
# Visual Studio 2010
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Azure", "Orchard.Azure\Orchard.Azure.csproj", "{2505AA84-65A6-43D0-9C27-4F44FD576284}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Azure", "Orchard.Azure\Orchard.Azure.csproj", "{2505AA84-65A6-43D0-9C27-4F44FD576284}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Azure.Tests", "Orchard.Azure.Tests\Orchard.Azure.Tests.csproj", "{1CC62F45-E6FF-43D5-84BF-509A1085D994}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Azure.Tests", "Orchard.Azure.Tests\Orchard.Azure.Tests.csproj", "{1CC62F45-E6FF-43D5-84BF-509A1085D994}"
|
||||||
|
@@ -1,7 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
using Microsoft.WindowsAzure;
|
using Microsoft.WindowsAzure;
|
||||||
|
using Microsoft.WindowsAzure.ServiceRuntime;
|
||||||
using Microsoft.WindowsAzure.StorageClient;
|
using Microsoft.WindowsAzure.StorageClient;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Orchard.FileSystems.Media;
|
using Orchard.FileSystems.Media;
|
||||||
@@ -16,7 +18,7 @@ namespace Orchard.Azure {
|
|||||||
public CloudBlobContainer Container { get; private set; }
|
public CloudBlobContainer Container { get; private set; }
|
||||||
|
|
||||||
public AzureFileSystem(string containerName, string root, bool isPrivate)
|
public AzureFileSystem(string containerName, string root, bool isPrivate)
|
||||||
: this(containerName, root, isPrivate, CloudStorageAccount.FromConfigurationSetting("DataConnectionString")) {
|
: this(containerName, root, isPrivate, CloudStorageAccount.Parse(RoleEnvironment.GetConfigurationSettingValue("DataConnectionString"))) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AzureFileSystem(string containerName, string root, bool isPrivate, CloudStorageAccount storageAccount) {
|
public AzureFileSystem(string containerName, string root, bool isPrivate, CloudStorageAccount storageAccount) {
|
||||||
@@ -25,19 +27,37 @@ namespace Orchard.Azure {
|
|||||||
ContainerName = containerName;
|
ContainerName = containerName;
|
||||||
_root = String.IsNullOrEmpty(root) || root == "/" ? String.Empty : root + "/";
|
_root = String.IsNullOrEmpty(root) || root == "/" ? String.Empty : root + "/";
|
||||||
|
|
||||||
BlobClient = _storageAccount.CreateCloudBlobClient();
|
AzureHelper.InjectHttpContext(()
|
||||||
// Get and create the container if it does not exist
|
=>
|
||||||
// The container is named with DNS naming restrictions (i.e. all lower case)
|
{
|
||||||
Container = BlobClient.GetContainerReference(ContainerName);
|
|
||||||
Container.CreateIfNotExist();
|
|
||||||
|
|
||||||
if ( isPrivate ) {
|
BlobClient = _storageAccount.CreateCloudBlobClient();
|
||||||
Container.SetPermissions(new BlobContainerPermissions
|
// Get and create the container if it does not exist
|
||||||
{PublicAccess = BlobContainerPublicAccessType.Off});
|
// The container is named with DNS naming restrictions (i.e. all lower case)
|
||||||
}
|
Container = BlobClient.GetContainerReference(ContainerName);
|
||||||
else {
|
|
||||||
Container.SetPermissions(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Container });
|
Container.CreateIfNotExist();
|
||||||
}
|
|
||||||
|
if (isPrivate)
|
||||||
|
{
|
||||||
|
Container.SetPermissions(new BlobContainerPermissions
|
||||||
|
{
|
||||||
|
PublicAccess =
|
||||||
|
BlobContainerPublicAccessType
|
||||||
|
.Off
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Container.SetPermissions(new BlobContainerPermissions
|
||||||
|
{
|
||||||
|
PublicAccess =
|
||||||
|
BlobContainerPublicAccessType
|
||||||
|
.Container
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void EnsurePathIsRelative(string path) {
|
private static void EnsurePathIsRelative(string path) {
|
||||||
|
33
src/Orchard.Azure/AzureHelper.cs
Normal file
33
src/Orchard.Azure/AzureHelper.cs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Web;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace Orchard.Azure {
|
||||||
|
public class AzureHelper {
|
||||||
|
public static void InjectHttpContext(Action action) {
|
||||||
|
if(HttpContext.Current == null )
|
||||||
|
{
|
||||||
|
action();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var currentContext = HttpContext.Current;
|
||||||
|
try {
|
||||||
|
// THIS IS A HACK
|
||||||
|
// There is a bug in ASP.NET 4.0 in HttpEncoder.Current, which prevents some calls to HttpUtiliy.Decode/Encode
|
||||||
|
// from Application_Start, on IIS or Azure. This hack will be removed when the bug is corrected.
|
||||||
|
// This is fired by the assembly Microsoft.WindowsAzure.StorageClient. Should be corrected in .NET4 SP1
|
||||||
|
|
||||||
|
HttpContext.Current = new HttpContext(new HttpRequest(String.Empty, "http://localhost", String.Empty), new HttpResponse(new StringWriter()));
|
||||||
|
|
||||||
|
action();
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
HttpContext.Current = currentContext;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -2,8 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
using System.Yaml.Serialization;
|
using System.Yaml.Serialization;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
using Microsoft.WindowsAzure.ServiceRuntime;
|
||||||
using Microsoft.WindowsAzure.StorageClient;
|
using Microsoft.WindowsAzure.StorageClient;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
using Orchard.Environment.Configuration;
|
using Orchard.Environment.Configuration;
|
||||||
@@ -23,7 +25,7 @@ namespace Orchard.Azure.Environment.Configuration {
|
|||||||
set; }
|
set; }
|
||||||
|
|
||||||
public AzureShellSettingsManager(IShellSettingsManagerEventHandler events)
|
public AzureShellSettingsManager(IShellSettingsManagerEventHandler events)
|
||||||
: this(CloudStorageAccount.FromConfigurationSetting("DataConnectionString"), events)
|
: this(CloudStorageAccount.Parse(RoleEnvironment.GetConfigurationSettingValue("DataConnectionString")), events)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,15 +35,23 @@ namespace Orchard.Azure.Environment.Configuration {
|
|||||||
_storageAccount = storageAccount;
|
_storageAccount = storageAccount;
|
||||||
_events = events;
|
_events = events;
|
||||||
|
|
||||||
BlobClient = _storageAccount.CreateCloudBlobClient();
|
AzureHelper.InjectHttpContext(() =>
|
||||||
|
{
|
||||||
|
BlobClient = _storageAccount.CreateCloudBlobClient();
|
||||||
|
|
||||||
// Get and create the container if it does not exist
|
// Get and create the container if it does not exist
|
||||||
// The container is named with DNS naming restrictions (i.e. all lower case)
|
// The container is named with DNS naming restrictions (i.e. all lower case)
|
||||||
Container = new CloudBlobContainer(ContainerName, BlobClient);
|
Container = new CloudBlobContainer(ContainerName, BlobClient);
|
||||||
Container.CreateIfNotExist();
|
Container.CreateIfNotExist();
|
||||||
|
|
||||||
// Tenant settings are protected by default
|
// Tenant settings are protected by default
|
||||||
Container.SetPermissions(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Off });
|
Container.SetPermissions(new BlobContainerPermissions
|
||||||
|
{
|
||||||
|
PublicAccess =
|
||||||
|
BlobContainerPublicAccessType.Off
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerable<ShellSettings> IShellSettingsManager.LoadSettings() {
|
IEnumerable<ShellSettings> IShellSettingsManager.LoadSettings() {
|
||||||
@@ -51,25 +61,41 @@ namespace Orchard.Azure.Environment.Configuration {
|
|||||||
void IShellSettingsManager.SaveSettings(ShellSettings settings) {
|
void IShellSettingsManager.SaveSettings(ShellSettings settings) {
|
||||||
if ( settings == null )
|
if ( settings == null )
|
||||||
throw new ArgumentException(T("There are no settings to save.").ToString());
|
throw new ArgumentException(T("There are no settings to save.").ToString());
|
||||||
|
|
||||||
if ( string.IsNullOrEmpty(settings.Name) )
|
if ( string.IsNullOrEmpty(settings.Name) )
|
||||||
throw new ArgumentException(T("Settings \"Name\" is not set.").ToString());
|
throw new ArgumentException(T("Settings \"Name\" is not set.").ToString());
|
||||||
|
|
||||||
var filePath =String.Concat(settings.Name, "/", "Settings.txt");
|
AzureHelper.InjectHttpContext(
|
||||||
var blob = Container.GetBlockBlobReference(filePath);
|
() =>
|
||||||
blob.UploadText(ComposeSettings(settings));
|
{
|
||||||
|
var filePath = String.Concat(settings.Name, "/", "Settings.txt");
|
||||||
|
var blob = Container.GetBlockBlobReference(filePath);
|
||||||
|
blob.UploadText(ComposeSettings(settings));
|
||||||
|
});
|
||||||
|
|
||||||
_events.Saved(settings);
|
_events.Saved(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerable<ShellSettings> LoadSettings() {
|
IEnumerable<ShellSettings> LoadSettings() {
|
||||||
var settingsBlobs =
|
|
||||||
BlobClient.ListBlobsWithPrefix(Container.Name + "/" ).OfType<CloudBlobDirectory>()
|
|
||||||
.SelectMany(directory => directory.ListBlobs()).OfType<CloudBlockBlob>()
|
|
||||||
.Where(blob => string.Equals(Path.GetFileName(blob.Uri.ToString()), "Settings.txt", StringComparison.OrdinalIgnoreCase));
|
|
||||||
|
|
||||||
foreach ( var settingsBlob in settingsBlobs ) {
|
var result = new List<ShellSettings>();
|
||||||
yield return ParseSettings(settingsBlob.DownloadText());
|
|
||||||
}
|
AzureHelper.InjectHttpContext(
|
||||||
|
() =>
|
||||||
|
{
|
||||||
|
var settingsBlobs =
|
||||||
|
BlobClient.ListBlobsWithPrefix(Container.Name + "/").OfType<CloudBlobDirectory>()
|
||||||
|
.SelectMany(directory => directory.ListBlobs()).OfType<CloudBlockBlob>()
|
||||||
|
.Where(
|
||||||
|
blob =>
|
||||||
|
string.Equals(Path.GetFileName(blob.Uri.ToString()),
|
||||||
|
"Settings.txt",
|
||||||
|
StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
|
result.AddRange(settingsBlobs.Select(settingsBlob => ParseSettings(settingsBlob.DownloadText())));
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Content {
|
class Content {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
# Visual Studio 2008
|
# Visual Studio 2010
|
||||||
Project("{CC5FD16D-436D-48AD-A40C-5A424C6E3E79}") = "Orchard.Azure.CloudService", "Orchard.Azure.CloudService\Orchard.Azure.CloudService.ccproj", "{03C5327D-4E8E-45A7-ACD1-E18E7CAA3C4A}"
|
Project("{CC5FD16D-436D-48AD-A40C-5A424C6E3E79}") = "Orchard.Azure.CloudService", "Orchard.Azure.CloudService\Orchard.Azure.CloudService.ccproj", "{03C5327D-4E8E-45A7-ACD1-E18E7CAA3C4A}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Azure.Web", "Orchard.Azure.Web\Orchard.Azure.Web.csproj", "{0DF8F426-9F30-4918-8F64-A5B40BA12D10}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Azure.Web", "Orchard.Azure.Web\Orchard.Azure.Web.csproj", "{0DF8F426-9F30-4918-8F64-A5B40BA12D10}"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- Import the target files for this project template -->
|
<!-- Import the target files for this project template -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\Cloud Service\v1.0\</CloudExtensionsDir>
|
<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\Cloud Service\1.0\Visual Studio 10.0\</CloudExtensionsDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(CloudExtensionsDir)Microsoft.CloudService.targets" />
|
<Import Project="$(CloudExtensionsDir)Microsoft.CloudService.targets" />
|
||||||
</Project>
|
</Project>
|
@@ -2,7 +2,7 @@
|
|||||||
<ServiceDefinition name="OrchardCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
|
<ServiceDefinition name="OrchardCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
|
||||||
<WebRole name="Orchard.Azure.Web">
|
<WebRole name="Orchard.Azure.Web">
|
||||||
<InputEndpoints>
|
<InputEndpoints>
|
||||||
<InputEndpoint name="HttpIn" protocol="http" port="80" />
|
<InputEndpoint name="HttpIn" protocol="http" port="8080" />
|
||||||
</InputEndpoints>
|
</InputEndpoints>
|
||||||
<ConfigurationSettings>
|
<ConfigurationSettings>
|
||||||
<Setting name="DiagnosticsConnectionString" />
|
<Setting name="DiagnosticsConnectionString" />
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
@@ -11,8 +11,13 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Orchard.Azure.Web</RootNamespace>
|
<RootNamespace>Orchard.Azure.Web</RootNamespace>
|
||||||
<AssemblyName>Orchard.Azure.Web</AssemblyName>
|
<AssemblyName>Orchard.Azure.Web</AssemblyName>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<MvcBuildViews>false</MvcBuildViews>
|
<MvcBuildViews>false</MvcBuildViews>
|
||||||
|
<FileUpgradeFlags>
|
||||||
|
</FileUpgradeFlags>
|
||||||
|
<OldToolsVersion>3.5</OldToolsVersion>
|
||||||
|
<UpgradeBackupLocation />
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -22,6 +27,7 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
@@ -30,6 +36,7 @@
|
|||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Autofac, Version=2.1.13.813, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
|
<Reference Include="Autofac, Version=2.1.13.813, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
|
||||||
@@ -56,23 +63,18 @@
|
|||||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Core">
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
<Reference Include="System.Web.ApplicationServices" />
|
||||||
</Reference>
|
<Reference Include="System.Web.DynamicData" />
|
||||||
<Reference Include="System.Data.DataSetExtensions">
|
<Reference Include="System.Web.Entity" />
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
<Reference Include="System.Web.Extensions" />
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\\Assemblies\System.Web.Mvc.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\\Assemblies\System.Web.Mvc.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Xml.Linq">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="System.Web" />
|
<Reference Include="System.Web" />
|
||||||
<Reference Include="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
|
||||||
<Reference Include="System.Web.Abstractions" />
|
<Reference Include="System.Web.Abstractions" />
|
||||||
<Reference Include="System.Web.Routing" />
|
<Reference Include="System.Web.Routing" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
@@ -80,6 +82,7 @@
|
|||||||
<Reference Include="System.Web.Services" />
|
<Reference Include="System.Web.Services" />
|
||||||
<Reference Include="System.EnterpriseServices" />
|
<Reference Include="System.EnterpriseServices" />
|
||||||
<Reference Include="System.Web.Mobile" />
|
<Reference Include="System.Web.Mobile" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Global.asax.cs">
|
<Compile Include="Global.asax.cs">
|
||||||
@@ -98,7 +101,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Config\Host.config" />
|
<Content Include="Config\Host.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup>
|
||||||
|
<Folder Include="App_Data\" />
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\Orchard\Orchard.Framework.csproj">
|
<ProjectReference Include="..\..\Orchard\Orchard.Framework.csproj">
|
||||||
<Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
|
<Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
|
||||||
@@ -109,11 +114,9 @@
|
|||||||
<Name>Orchard.Azure</Name>
|
<Name>Orchard.Azure</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup />
|
||||||
<Folder Include="App_Data\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
@@ -8,67 +8,41 @@
|
|||||||
\Windows\Microsoft.Net\Framework\v2.x\Config
|
\Windows\Microsoft.Net\Framework\v2.x\Config
|
||||||
-->
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<appSettings/>
|
||||||
<configSections>
|
<system.diagnostics configSource="Config\Diagnostics.config"/>
|
||||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
<!--
|
||||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
|
||||||
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
|
||||||
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
|
||||||
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
|
|
||||||
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
|
||||||
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
|
||||||
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
|
||||||
</sectionGroup>
|
|
||||||
</sectionGroup>
|
|
||||||
</sectionGroup>
|
|
||||||
</configSections>
|
|
||||||
|
|
||||||
<appSettings/>
|
|
||||||
|
|
||||||
<system.diagnostics configSource="Config\Diagnostics.config" />
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Set default transaction timeout to 30 minutes so that interactive debugging
|
Set default transaction timeout to 30 minutes so that interactive debugging
|
||||||
is easier (default timeout is less than one minute)
|
is easier (default timeout is less than one minute)
|
||||||
-->
|
-->
|
||||||
<system.transactions>
|
<system.transactions>
|
||||||
<defaultSettings timeout="00:30:00" />
|
<defaultSettings timeout="00:30:00"/>
|
||||||
</system.transactions>
|
</system.transactions>
|
||||||
|
<system.web>
|
||||||
<system.web>
|
<!--
|
||||||
|
|
||||||
<!--
|
|
||||||
Set compilation debug="true" to insert debugging
|
Set compilation debug="true" to insert debugging
|
||||||
symbols into the compiled page. Because this
|
symbols into the compiled page. Because this
|
||||||
affects performance, set this value to true only
|
affects performance, set this value to true only
|
||||||
during development.
|
during development.
|
||||||
-->
|
-->
|
||||||
<compilation debug="true">
|
<compilation debug="true" targetFramework="4.0">
|
||||||
<assemblies>
|
<assemblies>
|
||||||
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
<add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
|
||||||
<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
</compilation>
|
||||||
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
<!--
|
||||||
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
|
||||||
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
|
||||||
</assemblies>
|
|
||||||
</compilation>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The <authentication> section enables configuration
|
The <authentication> section enables configuration
|
||||||
of the security authentication mode used by
|
of the security authentication mode used by
|
||||||
ASP.NET to identify an incoming user.
|
ASP.NET to identify an incoming user.
|
||||||
-->
|
-->
|
||||||
<authentication mode="Forms">
|
<authentication mode="Forms">
|
||||||
<forms loginUrl="~/Users/Account/AccessDenied" timeout="2880" />
|
<forms loginUrl="~/Users/Account/AccessDenied" timeout="2880"/>
|
||||||
</authentication>
|
</authentication>
|
||||||
|
<membership defaultProvider="OrchardMembershipProvider">
|
||||||
<membership defaultProvider="OrchardMembershipProvider">
|
<providers>
|
||||||
<providers>
|
<clear/>
|
||||||
<clear/>
|
<!--<add name="AspNetSqlMembershipProvider"
|
||||||
<!--<add name="AspNetSqlMembershipProvider"
|
|
||||||
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
|
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
|
||||||
connectionStringName="ApplicationServices"
|
connectionStringName="ApplicationServices"
|
||||||
enablePasswordRetrieval="false"
|
enablePasswordRetrieval="false"
|
||||||
@@ -83,130 +57,67 @@
|
|||||||
passwordStrengthRegularExpression=""
|
passwordStrengthRegularExpression=""
|
||||||
applicationName="/"
|
applicationName="/"
|
||||||
/>-->
|
/>-->
|
||||||
<add name="OrchardMembershipProvider" type="Orchard.Security.Providers.OrchardMembershipProvider, Orchard.Framework"
|
<add name="OrchardMembershipProvider" type="Orchard.Security.Providers.OrchardMembershipProvider, Orchard.Framework" applicationName="/"/>
|
||||||
applicationName="/" />
|
</providers>
|
||||||
</providers>
|
</membership>
|
||||||
</membership>
|
<profile>
|
||||||
|
<providers>
|
||||||
<profile>
|
<clear/>
|
||||||
<providers>
|
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" applicationName="/"/>
|
||||||
<clear/>
|
</providers>
|
||||||
<add name="AspNetSqlProfileProvider"
|
</profile>
|
||||||
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
|
<roleManager enabled="false">
|
||||||
connectionStringName="ApplicationServices"
|
<providers>
|
||||||
applicationName="/"
|
<clear/>
|
||||||
/>
|
<add name="OrchardRoleProvider" type="Orchard.Security.Providers.OrchardRoleProvider, Orchard.Framework"/>
|
||||||
</providers>
|
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
||||||
</profile>
|
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
||||||
|
</providers>
|
||||||
<roleManager enabled="false">
|
</roleManager>
|
||||||
<providers>
|
<!--
|
||||||
<clear />
|
|
||||||
<add name="OrchardRoleProvider" type="Orchard.Security.Providers.OrchardRoleProvider, Orchard.Framework"/>
|
|
||||||
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
</providers>
|
|
||||||
</roleManager>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The <customErrors> section enables configuration
|
The <customErrors> section enables configuration
|
||||||
of what to do if/when an unhandled error occurs
|
of what to do if/when an unhandled error occurs
|
||||||
during the execution of a request. Specifically,
|
during the execution of a request. Specifically,
|
||||||
it enables developers to configure html error pages
|
it enables developers to configure html error pages
|
||||||
to be displayed in place of a error stack trace.
|
to be displayed in place of a error stack trace.
|
||||||
-->
|
-->
|
||||||
|
<customErrors mode="Off"/>
|
||||||
<customErrors mode="Off" />
|
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
||||||
|
<namespaces>
|
||||||
<pages>
|
<add namespace="System.Web.Mvc"/>
|
||||||
<controls>
|
<add namespace="System.Web.Mvc.Ajax"/>
|
||||||
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
<add namespace="System.Web.Mvc.Html"/>
|
||||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
</controls>
|
<add namespace="System.Linq"/>
|
||||||
|
<add namespace="System.Collections.Generic"/>
|
||||||
<namespaces>
|
<add namespace="Orchard.Mvc.Html"/>
|
||||||
<add namespace="System.Web.Mvc"/>
|
</namespaces>
|
||||||
<add namespace="System.Web.Mvc.Ajax"/>
|
</pages>
|
||||||
<add namespace="System.Web.Mvc.Html"/>
|
<httpHandlers>
|
||||||
<add namespace="System.Web.Routing"/>
|
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
<add namespace="System.Linq"/>
|
</httpHandlers>
|
||||||
<add namespace="System.Collections.Generic"/>
|
</system.web>
|
||||||
<add namespace="Orchard.Mvc.Html" />
|
<system.web.extensions/>
|
||||||
</namespaces>
|
<!--
|
||||||
</pages>
|
|
||||||
|
|
||||||
<httpHandlers>
|
|
||||||
<remove verb="*" path="*.asmx"/>
|
|
||||||
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
|
|
||||||
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
</httpHandlers>
|
|
||||||
|
|
||||||
<httpModules>
|
|
||||||
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
|
||||||
</httpModules>
|
|
||||||
|
|
||||||
</system.web>
|
|
||||||
|
|
||||||
<system.codedom>
|
|
||||||
<compilers>
|
|
||||||
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
|
|
||||||
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<providerOption name="CompilerVersion" value="v3.5"/>
|
|
||||||
<providerOption name="WarnAsError" value="false"/>
|
|
||||||
</compiler>
|
|
||||||
|
|
||||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4"
|
|
||||||
type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<providerOption name="CompilerVersion" value="v3.5"/>
|
|
||||||
<providerOption name="OptionInfer" value="true"/>
|
|
||||||
<providerOption name="WarnAsError" value="false"/>
|
|
||||||
</compiler>
|
|
||||||
</compilers>
|
|
||||||
</system.codedom>
|
|
||||||
|
|
||||||
<system.web.extensions/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The system.webServer section is required for running ASP.NET AJAX under Internet
|
The system.webServer section is required for running ASP.NET AJAX under Internet
|
||||||
Information Services 7.0. It is not necessary for previous version of IIS.
|
Information Services 7.0. It is not necessary for previous version of IIS.
|
||||||
-->
|
-->
|
||||||
<system.webServer>
|
<system.webServer>
|
||||||
<validation validateIntegratedModeConfiguration="false"/>
|
<validation validateIntegratedModeConfiguration="false"/>
|
||||||
|
<modules runAllManagedModulesForAllRequests="true">
|
||||||
<modules runAllManagedModulesForAllRequests="true">
|
</modules>
|
||||||
<remove name="ScriptModule" />
|
<handlers>
|
||||||
<remove name="UrlRoutingModule" />
|
<remove name="MvcHttpHandler"/>
|
||||||
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
<remove name="UrlRoutingHandler"/>
|
||||||
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
</modules>
|
</handlers>
|
||||||
|
</system.webServer>
|
||||||
<handlers>
|
<runtime>
|
||||||
<remove name="WebServiceHandlerFactory-Integrated"/>
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
<remove name="ScriptHandlerFactory" />
|
<dependentAssembly>
|
||||||
<remove name="ScriptHandlerFactoryAppServices" />
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
||||||
<remove name="ScriptResource" />
|
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
|
||||||
<remove name="MvcHttpHandler" />
|
</dependentAssembly>
|
||||||
<remove name="UrlRoutingHandler" />
|
</assemblyBinding>
|
||||||
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
|
</runtime>
|
||||||
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
</configuration>
|
||||||
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
|
|
||||||
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
|
||||||
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
</handlers>
|
|
||||||
</system.webServer>
|
|
||||||
|
|
||||||
<runtime>
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
|
||||||
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
|
|
||||||
</configuration>
|
|
||||||
|
@@ -8,45 +8,19 @@ namespace Orchard.Azure.Web {
|
|||||||
public override bool OnStart() {
|
public override bool OnStart() {
|
||||||
DiagnosticMonitor.Start("DiagnosticsConnectionString");
|
DiagnosticMonitor.Start("DiagnosticsConnectionString");
|
||||||
|
|
||||||
#region Setup CloudStorageAccount Configuration Setting Publisher
|
|
||||||
|
|
||||||
// This code sets up a handler to update CloudStorageAccount instances when their corresponding
|
|
||||||
// configuration settings change in the service configuration file.
|
|
||||||
CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) => {
|
|
||||||
// Provide the configSetter with the initial value
|
|
||||||
configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));
|
|
||||||
|
|
||||||
RoleEnvironment.Changed += (sender, arg) => {
|
|
||||||
if ( arg.Changes.OfType<RoleEnvironmentConfigurationSettingChange>()
|
|
||||||
.Any(change => ( change.ConfigurationSettingName == configName )) ) {
|
|
||||||
// The corresponding configuration setting has changed, propagate the value
|
|
||||||
if ( !configSetter(RoleEnvironment.GetConfigurationSettingValue(configName)) ) {
|
|
||||||
// In this case, the change to the storage account credentials in the
|
|
||||||
// service configuration is significant enough that the role needs to be
|
|
||||||
// recycled in order to use the latest settings. (for example, the
|
|
||||||
// endpoint has changed)
|
|
||||||
RoleEnvironment.RequestRecycle();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
});
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
// For information on handling configuration changes
|
// For information on handling configuration changes
|
||||||
// see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
|
// see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
|
||||||
RoleEnvironment.Changing += (sender, e) => {
|
RoleEnvironment.Changing += RoleEnvironmentChanging;
|
||||||
// If a configuration setting is changing
|
|
||||||
if (
|
|
||||||
e.Changes.Any(
|
|
||||||
change => change is RoleEnvironmentConfigurationSettingChange) ) {
|
|
||||||
// Set e.Cancel to true to restart this role instance
|
|
||||||
e.Cancel = true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
return base.OnStart();
|
return base.OnStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void RoleEnvironmentChanging(object sender, RoleEnvironmentChangingEventArgs e) {
|
||||||
|
// If a configuration setting is changing
|
||||||
|
if ( e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange) ) {
|
||||||
|
// Set e.Cancel to true to restart this role instance
|
||||||
|
e.Cancel = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
@@ -10,8 +10,28 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Orchard.Azure</RootNamespace>
|
<RootNamespace>Orchard.Azure</RootNamespace>
|
||||||
<AssemblyName>Orchard.Azure</AssemblyName>
|
<AssemblyName>Orchard.Azure</AssemblyName>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<FileUpgradeFlags>
|
||||||
|
</FileUpgradeFlags>
|
||||||
|
<OldToolsVersion>3.5</OldToolsVersion>
|
||||||
|
<UpgradeBackupLocation />
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -21,6 +41,7 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
@@ -29,13 +50,16 @@
|
|||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||||
<Reference Include="Microsoft.WindowsAzure.StorageClient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
<Reference Include="Microsoft.WindowsAzure.StorageClient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core">
|
<Reference Include="System.Core">
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Web" />
|
||||||
<Reference Include="System.Xml.Linq">
|
<Reference Include="System.Xml.Linq">
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -50,6 +74,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="AzureHelper.cs" />
|
||||||
<Compile Include="CloudBlobContainerExtensions.cs" />
|
<Compile Include="CloudBlobContainerExtensions.cs" />
|
||||||
<Compile Include="FileSystems\AppData\AzureAppDataFolder.cs" />
|
<Compile Include="FileSystems\AppData\AzureAppDataFolder.cs" />
|
||||||
<Compile Include="Environment\Configuration\AzureShellSettingsManager.cs" />
|
<Compile Include="Environment\Configuration\AzureShellSettingsManager.cs" />
|
||||||
@@ -63,6 +88,23 @@
|
|||||||
<Name>Orchard.Framework</Name>
|
<Name>Orchard.Framework</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Windows Installer 3.1</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
Reference in New Issue
Block a user