mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
@@ -29,7 +29,7 @@ namespace Orchard.Azure {
|
|||||||
_storageAccount = storageAccount;
|
_storageAccount = storageAccount;
|
||||||
ContainerName = containerName;
|
ContainerName = containerName;
|
||||||
_root = String.IsNullOrEmpty(root) ? "": root + "/";
|
_root = String.IsNullOrEmpty(root) ? "": root + "/";
|
||||||
_absoluteRoot = _storageAccount.BlobEndpoint.AbsoluteUri + "/" + containerName + "/" + root;
|
_absoluteRoot = Combine(Combine(_storageAccount.BlobEndpoint.AbsoluteUri, containerName), root);
|
||||||
|
|
||||||
using ( new HttpContextWeaver() ) {
|
using ( new HttpContextWeaver() ) {
|
||||||
|
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Orchard.Azure.Web._Default" %>
|
|
||||||
|
|
||||||
<%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%>
|
|
@@ -1,20 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.Mvc;
|
|
||||||
using System.Web.UI;
|
|
||||||
|
|
||||||
namespace Orchard.Azure.Web {
|
|
||||||
public class _Default : Page {
|
|
||||||
public void Page_Load(object sender, EventArgs e) {
|
|
||||||
// Change the current path so that the Routing handler can correctly interpret
|
|
||||||
// the request, then restore the original path so that the OutputCache module
|
|
||||||
// can correctly process the response (if caching is enabled).
|
|
||||||
|
|
||||||
var originalPath = Request.Path;
|
|
||||||
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
|
|
||||||
IHttpHandler httpHandler = new MvcHttpHandler();
|
|
||||||
httpHandler.ProcessRequest(HttpContext.Current);
|
|
||||||
HttpContext.Current.RewritePath(originalPath, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -140,10 +140,6 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Default.aspx.cs">
|
|
||||||
<DependentUpon>Default.aspx</DependentUpon>
|
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Global.asax.cs">
|
<Compile Include="Global.asax.cs">
|
||||||
<DependentUpon>Global.asax</DependentUpon>
|
<DependentUpon>Global.asax</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -151,7 +147,6 @@
|
|||||||
<Compile Include="WebRole.cs" />
|
<Compile Include="WebRole.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Default.aspx" />
|
|
||||||
<Content Include="Global.asax" />
|
<Content Include="Global.asax" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@@ -53,7 +53,7 @@
|
|||||||
affects performance, set this value to true only
|
affects performance, set this value to true only
|
||||||
during development.
|
during development.
|
||||||
-->
|
-->
|
||||||
<compilation debug="true" targetFramework="4.0">
|
<compilation debug="true" targetFramework="4.0" batch="true" numRecompilesBeforeAppRestart="250">
|
||||||
<buildProviders>
|
<buildProviders>
|
||||||
<add extension=".csproj" type="Orchard.Environment.Extensions.Compilers.CSharpExtensionBuildProviderShim" />
|
<add extension=".csproj" type="Orchard.Environment.Extensions.Compilers.CSharpExtensionBuildProviderShim" />
|
||||||
</buildProviders>
|
</buildProviders>
|
||||||
@@ -116,7 +116,6 @@
|
|||||||
<httpHandlers>
|
<httpHandlers>
|
||||||
<!-- see below -->
|
<!-- see below -->
|
||||||
<clear />
|
<clear />
|
||||||
<add path="default.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true" />
|
|
||||||
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler" />
|
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler" />
|
||||||
|
|
||||||
</httpHandlers>
|
</httpHandlers>
|
||||||
@@ -133,7 +132,6 @@
|
|||||||
<!-- clear all handlers, prevents executing code file extensions, prevents returning any file contents -->
|
<!-- clear all handlers, prevents executing code file extensions, prevents returning any file contents -->
|
||||||
<clear />
|
<clear />
|
||||||
<!-- Return 404 for all requests via managed handler. The url routing handler will substitute the mvc request handler when routes match. -->
|
<!-- Return 404 for all requests via managed handler. The url routing handler will substitute the mvc request handler when routes match. -->
|
||||||
<add name="Default" path="default.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode" requireAccess="Script" />
|
|
||||||
<add name="NotFound" path="*" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" requireAccess="Script" />
|
<add name="NotFound" path="*" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" requireAccess="Script" />
|
||||||
</handlers>
|
</handlers>
|
||||||
</system.webServer>
|
</system.webServer>
|
||||||
@@ -142,7 +140,8 @@
|
|||||||
<probing privatePath="App_Data/Dependencies" />
|
<probing privatePath="App_Data/Dependencies" />
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
||||||
<bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
|
<bindingRedirect oldVersion="1.0.0.0" newVersion="3.0.0.0"/>
|
||||||
|
<bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
|
Reference in New Issue
Block a user