Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ervin Mazor 2 posts 22 karma points
    Apr 25, 2010 @ 21:25
    Ervin Mazor
    0

    Running UMBRACO on vps

    Hi

    We are new to Umbraco

    We have umbraco set on 2 domains (leascar.co.il - Production and leascar.net - Test )

    The web sites are in Hebrew, both are set on vps that's running on virtuozzo with plesk control panel (on the same physical server).

    both web site work. However the test enviroment runs slower.
    The test environment is a copy of the production (besides some design changes).
    Each connect to a different database (sql server)

    the Main problem is with Umbraco admin.

    in the production site when we save a page, it beenig saved as ltr instead rtl
    When i try to save and publish i get the following error (after a long time, which seems like timeout)

    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

    here is the web.config file:

    ===============================================================================================

    <configuration>
        <configSections>
            <section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter"/>
            <!-- ASPNETAJAX -->
            <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>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                <section name="umbraco.presentation.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
            </sectionGroup>
        </configSections>
        <urlrewritingnet configSource="config\UrlRewriting.config"/>
        <appSettings>
            <add key="umbracoDbDSN" value="Data Source=XXXXXXXXXXXXXXXXXXXX;Initial Catalog=XXXXXXXXXXXXXX;User ID=XXXXXXXXXXXXXXX;Password=XXXXXXXXXXXXXXXX"/>
            <add key="umbracoConfigurationStatus" value="4.0.1"/>
            <add key="umbracoReservedUrls" value="/config/splashes/booting.aspx,/install/default.aspx,/config/splashes/noNodes.aspx"/>
            <add key="umbracoReservedPaths" value="/umbraco,/install/"/>
            <add key="umbracoContentXML" value="/data/umbraco.config"/>
            <add key="umbracoStorageDirectory" value="/data"/>
            <add key="umbracoPath" value="/umbraco"/>
            <add key="umbracoEnableStat" value="false"/>
            <add key="umbracoHideTopLevelNodeFromPath" value="true"/>
            <add key="umbracoEditXhtmlMode" value="true"/>
            <add key="umbracoUseDirectoryUrls" value="false"/>
            <add key="umbracoDebugMode" value="true"/>
            <add key="umbracoTimeOutInMinutes" value="20"/>
            <add key="umbracoVersionCheckPeriod" value="7"/>
            <add key="umbracoDisableXsltExtensions" value="true"/>
            <add key="umbracoDefaultUILanguage" value="en"/>
            <add key="umbracoProfileUrl" value="profiler"/>
            <add key="umbracoUseSSL" value="false"/>
            <add key="umbracoUseMediumTrust" value="false"/>
        </appSettings>
        <!-- This Replaces the old umbracoSmptpServer config-->
        <system.net>
            <mailSettings>
                <smtp>
                    <network host="127.0.0.1" userName="username" password="password"/>
                </smtp>
            </mailSettings>
        </system.net>
        <!-- added by NH to test foreign membership providers-->
        <connectionStrings>
            <remove name="LocalSqlServer"/>
            <add name="LocalSqlServerOrg" connectionString="server=localhost;database=Leascar;user id=michael;password=michael"/>
        <add name="LocalSqlServer" connectionString="Data Source=XXXXXXXXXXXXXXXXXXXX;Initial Catalog=XXXXXXXXXXXXX;User ID=XXXXXXXXXXXXXX;Password=XXXXXXXXXXXX" providerName="SQLOLEDB" />
        <!--<add name="LocalSqlServer" connectionString="Provider=SQLOLEDB;Data Source=.\sqlexpress;User ID=admin;Password=admin;Initial Catalog=Leascar_PRD" providerName="SQLOLEDB" />    -->
      </connectionStrings>
        <system.web>
            <customErrors mode="Off"/>
            <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
            <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>
            <globalization requestEncoding="UTF-8" responseEncoding="UTF-8"/>
            <xhtmlConformance mode="Strict"/>
            <pages enableEventValidation="false">
                <!-- ASPNETAJAX -->
                <controls>
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add tagPrefix="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco"/>
                    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </controls>
            </pages>
            <httpModules>
                <!-- URL REWRTIER -->
                <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
                <add name="umbracoRequestModule" type="umbraco.presentation.requestModule"/>
                <!-- UMBRACO -->
                <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule"/>
                <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule"/>
                <!-- ASPNETAJAX -->
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </httpModules>
            <httpHandlers>
                <remove verb="*" path="*.asmx"/>
                <!-- ASPNETAJAX -->
                <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
                <add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
                <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"/>
                <!-- UMBRACO CHANNELS -->
                <add verb="*" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco"/>
                <add verb="*" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco"/>
                <add path="*.xslt" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
            </httpHandlers>
            <compilation defaultLanguage="c#" debug="true" batch="false">
                <assemblies>
                    <!-- ASPNETAJAX -->
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
            </compilation>
            <authentication mode="Forms">
                <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/"/>
            </authentication>
            <authorization>
                <allow users="?"/>
            </authorization>
            <!-- Membership Provider -->
            <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
                <providers>
                    <clear/>
                    <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed"/>
                    <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false"/>
                </providers>
            </membership>
            <!-- added by NH to support membership providers in access layer -->
            <roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
                <providers>
                    <clear/>
                    <add name="UmbracoRoleProvider" type="umbraco.providers.members.UmbracoRoleProvider"/>
                </providers>
            </roleManager>
            <!-- Sitemap provider-->
            <siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true">
                <providers>
                    <clear/>
                    <add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true"/>
                </providers>
            </siteMap>
        </system.web>
        <!-- ASPNETAJAX -->
        <system.web.extensions>
            <scripting>
                <scriptResourceHandler enableCompression="true" enableCaching="true"/>
            </scripting>
        </system.web.extensions>
        <applicationSettings>
            <umbraco.presentation.Properties.Settings>
                <setting name="umbraco_com_regexlib_Webservices" serializeAs="String">
                    <value>http://regexlib.com/WebServices.asmx</value>;
                </setting>
            </umbraco.presentation.Properties.Settings>
        </applicationSettings>
        <!-- IIS 7 Integrated Mode Configuration
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules>
         
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
         
          <add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />
          <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />
          <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />

          <remove name="ScriptModule"/>
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
        <handlers accessPolicy="Read, Write, Script, Execute">
          <remove name="WebServiceHandlerFactory-Integrated"/>
          <remove name="ScriptHandlerFactory"/>
          <remove name="ScriptHandlerFactoryAppServices"/>
          <remove name="ScriptResource"/>
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

          <remove name="Channels"/>
          <remove name="Channels_Word"/>
          <add verb="*" name="Channels" preCondition="integratedMode" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
          <add verb="*" name="Channels_Word" preCondition="integratedMode" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
        </handlers>
      </system.webServer>
      -->
        <system.codedom>
                <compilers>
                    <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="WarnAsError" value="false"/></compiler>
                    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="OptionInfer" value="true"/>
                        <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom>
        <system.webServer>
                <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                <remove name="ScriptModule"/>
                <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules>
            <handlers>
                <remove name="WebServiceHandlerFactory-Integrated"/>
                <remove name="ScriptHandlerFactory"/>
                <remove name="ScriptHandlerFactoryAppServices"/>
                <remove name="ScriptResource"/>
                <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <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" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></handlers></system.webServer>
        <runtime>
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                <dependentAssembly>
                    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
                <dependentAssembly>
                    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>

    ===============================================================================================

    any thoughts would be appriciated

  • Paul Blair 466 posts 731 karma points
    Apr 25, 2010 @ 22:55
    Paul Blair
    0

    Hi Ervin,

    I had this problem as well i.e. it was working fine in one environment but not in the other. I came to the conclusion that something must of happened durign the setup. I deleted the website in IIS and reinstalled it. This solved the issue. nd double check the permissions on the fodlers as well.

    Cheers

    Paul

  • Ervin Mazor 2 posts 22 karma points
    Apr 25, 2010 @ 23:11
    Ervin Mazor
    0

    Hi Paul

     

    First, thank you for the advice.

    Second, should I delete and re install both web site ?

  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    May 01, 2010 @ 23:24
    Biagio Paruolo
    0

    Hi,

    you can write a your generic MAC value into machinekey section into web.config .

    This resolve your problem without disable viewstate encryption.

Please Sign in or register to post replies

Write your reply to:

Draft