Publish website

Topics: Administration, Announcements, Core, General
Feb 24, 2013 at 1:04 PM
Edited Feb 24, 2013 at 1:56 PM
How to publish a orchard website from visual studio 2012? I have deploy a website , but now I want to deploy the site, the address is: www.antiekbrocante.nl

I see that the orchard framework has 67 projects(In my solution). But I select the Orchard.Web folder and click right mouse and then choose for: Publish but then I get the question: publish web application(select or import a publish profile) So I went to my InetPub folder --> wwwroot -->Orchard.. but what then??

oke, I managed to publish the site with visual studio 2012 with the Publish function in visual stuido.

but now I get this errors:

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory. Detailed Error InformationModule DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x00000000
Requested URL http://www.antiekbrocante.nl:80/
Physical Path \192.168.0.100\localuser\antiekbro
Logon Method Anonymous
Logon User Anonymous


And the output of visual studio 2012 is:

1>------ Build started: Project: Orchard.Framework, Configuration: Release Any CPU ------
2>------ Build started: Project: Orchard, Configuration: Release Any CPU ------
3>------ Build started: Project: Orchard.WarmupStarter, Configuration: Release Any CPU ------
2> Orchard -> C:\inetpub\wwwroot\OrchardNew\src\Tools\Orchard\bin\Release\Orchard.exe
3> Orchard.WarmupStarter -> C:\inetpub\wwwroot\OrchardNew\src\Orchard.WarmupStarter\bin\Release\Orchard.WarmupStarter.dll
1> Orchard.Framework -> C:\inetpub\wwwroot\OrchardNew\src\Orchard\bin\Release\Orchard.Framework.dll
4>------ Build started: Project: Orchard.Core, Configuration: Release Any CPU ------
4> Orchard.Core -> C:\inetpub\wwwroot\OrchardNew\src\Orchard.Web\Core\bin\Orchard.Core.dll
5>------ Build started: Project: Orchard.Web, Configuration: Release Any CPU ------
5> Orchard.Web -> C:\inetpub\wwwroot\OrchardNew\src\Orchard.Web\bin\Orchard.Web.dll
6>------ Publish started: Project: Orchard.Web, Configuration: Release Any CPU ------
6>Connecting to ftp.antiekbrocante.nl...
6>Copying all files to temporary location below for package/publish:
6>obj\Release\Package\PackageTmp.
6>Publishing folder /...
6>Publishing folder bin...
6>Publishing folder Config...
6>Publishing folder Media...
6>Site was published successfully http://www.antiekbrocante.nl/
========== Build: 5 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========


And this is my web.config file

[config]
<?xml version="1.0"?>
<!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  <remove name="host" />
  <remove name="pages" />
  <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
  <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>

<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false" />
</configSections>

<appSettings>
<add key="webpages:Enabled" value="false" />
<add key="log4net.Config" value="Config\log4net.config" />
</appSettings>

<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
  <namespaces>
    <add namespace="System.Web.Mvc" />
    <add namespace="System.Web.Mvc.Ajax" />
    <add namespace="System.Web.Mvc.Html" />
    <add namespace="System.Web.Routing" />
    <add namespace="System.Web.WebPages" />
    <add namespace="System.Linq"/>
    <add namespace="System.Collections.Generic"/>
    <add namespace="Orchard.Mvc.Html"/>
  </namespaces>
</pages>
</system.web.webPages.razor>
<!-- Set default transaction timeout to 30 minutes so that interactive debugging is easier (default timeout is less than one minute) --> <system.transactions>
<defaultSettings timeout="00:30:00"/>
</system.transactions>
<system.web>
<!--<trust level="Medium" originUrl="" />-->

<httpRuntime requestValidationMode="2.0" />
<!-- 
        Set compilation debug="true" to insert debugging 
        symbols into the compiled page. Because this 
        affects performance, set this value to true only 
        during development.
-->
<compilation debug="true" targetFramework="4.0" batch="true" numRecompilesBeforeAppRestart="250" optimizeCompilations="true">
    <buildProviders>
    <add extension=".csproj" type="Orchard.Environment.Extensions.Compilers.CSharpExtensionBuildProviderShim"/>
  </buildProviders>
  <assemblies>
    <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
    <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
    <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
    <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <remove assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <remove assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <remove assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <remove assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <remove assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <remove assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <remove assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <remove assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <remove assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <remove assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <remove assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <remove assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <remove assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <remove assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <remove assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <remove assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <remove assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <remove assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </assemblies>
</compilation>
<!--
        The <authentication> section enables configuration 
        of the security authentication mode used by 
        ASP.NET to identify an incoming user. 
-->
<authentication mode="Forms">
  <forms loginUrl="~/Users/Account/AccessDenied" timeout="2880"/>
</authentication>

<!--
        The <customErrors> section enables configuration 
        of what to do if/when an unhandled error occurs 
        during the execution of a request. Specifically, 
        it enables developers to configure html error pages 
        to be displayed in place of a error stack trace.
-->
<customErrors mode="RemoteOnly" />
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
  <namespaces>
    <add namespace="System.Web.Mvc"/>
    <add namespace="System.Web.Mvc.Ajax"/>
    <add namespace="System.Web.Mvc.Html"/>
    <add namespace="System.Web.Routing"/>
    <add namespace="System.Linq"/>
    <add namespace="System.Collections.Generic"/>
    <add namespace="Orchard.Mvc.Html"/>
  </namespaces>
</pages>

<httpHandlers>
  <!-- see below -->
  <clear />
  <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>

</httpHandlers>

<httpModules>
  <add name="WarmupHttpModule" type="Orchard.WarmupStarter.WarmupHttpModule, Orchard.WarmupStarter, Version=1.0.20, Culture=neutral"/>
</httpModules>
</system.web>
<!-- 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. --> <system.webServer>
<validation