Copied to clipboard

Flag this post as spam?

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


  • Nate 143 posts 184 karma points
    Apr 15, 2010 @ 01:48
    Nate
    0

    Does umbraco work with .NET 4 framework?

    I ran the web installer and I'm getting an error.  I installed the .net 4 framework monday and I think that's my problem.

     

    Here's the error: Error Summary

    HTTP Error 500.19 - Internal Server Error

    The requested page cannot be accessed because the related configuration data for the page is invalid.

     

    Detailed Error Information
    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x800700b7
    Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
    Config File \\?\C:\inetpub\wwwroot\Umbraco2\web.config
    Requested URL http://localhost:80/umbraco2/default.aspx
    Physical Path C:\inetpub\wwwroot\Umbraco2\default.aspx
    Logon Method Not yet determined
    Logon User Not yet determined
    Config Source
        8:       <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        9:         <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
       10:         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    
  • Aaron Powell 1708 posts 3046 karma points c-trib
    Apr 15, 2010 @ 02:15
    Aaron Powell
    0

    I have VS2010 installed on my machine, and have so for quite a while with no problems.

    Make sure your IIS is set to run .NET 2.0, as Umbraco is only for the 2.0 CLR. Umbraco 4 will not support the .NET 4.0 framework.

  • Petr Snobelt 923 posts 1535 karma points
    Apr 15, 2010 @ 09:26
    Petr Snobelt
    0

    Interesting .NET framework isn't backward compatible, or it's web.config issue?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Apr 15, 2010 @ 11:15
    Jeroen Breuer
    0

    Umbraco 4 won't support the .NET 4.0 framework, but can you use .NET 4.0 in your own dll's if you update the web.config to support .NET 4.0? Just like you can now download Web.config file to use with .NET 3.5+ (Recommended default) will there also be a release for .NET 4.0?

  • Sander Houttekier 114 posts 163 karma points
    Apr 27, 2010 @ 10:04
    Sander Houttekier
    0

    I hope so too, as that might be a huge deal breaker for a client of us who wants all their tools and sites in .net 4.0
    i got alot of otther issues to look at but i will eventually need to know about this too before we agree on contract :)

  • Tobias Neugebauer 52 posts 93 karma points
    Apr 27, 2010 @ 10:20
    Tobias Neugebauer
    0

    Hi all,

    that was one of the first things I tried after installing VS 2010 and it works :) yeah (I run 4.1 beta II on Framework 4.0). There were some things I had  to do befor  got it working:

    1. Set the Application Pool to .Net Framework 4

    2. Edit the web.config! In Framework 4 many of the settings from the previous versions went to the machine.config wich made the web.config much smaller. It will append my config so you could check yours against it.

    <?xml version="1.0"?>
    <configuration>
        <configSections>
            <section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter"/>
            <section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
            <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>
            <section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" requirePermission="false"/>
            <section name="Examine" type="Examine.Config.ExamineSettings, Examine"/>
            <section name="ExamineLuceneIndexSets" type="UmbracoExamine.Config.ExamineLuceneIndexes, UmbracoExamine"/>
        </configSections>
        <urlrewritingnet configSource="config\UrlRewriting.config"/>
        <microsoft.scripting configSource="config\scripting.config"/>
        <clientDependency configSource="config\ClientDependency.config"/>
        <Examine configSource="config\ExamineSettings.config"/>
        <ExamineLuceneIndexSets configSource="config\ExamineIndex.config"/>
        <appSettings>
            <add key="umbracoDbDSN" value="YOUR CONNECTION STRING HERE"/>
            <add key="umbracoConfigurationStatus" value="4.1.0.betaII"/>
            <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"/>
            <!--
          Set this to true to enable storing the xml cache locally to the IIS server even if the app files are stored centrally on a SAN/NAS
          Alex Norcliffe 2010 02 for 4.1
        -->
            <add key="umbracoContentXMLUseLocalTemp" value="false"/>
        </appSettings>
        <system.net>
            <mailSettings>
                <smtp>
                    <network host="127.0.0.1" userName="username" password="password"/>
                </smtp>
            </mailSettings>
        </system.net>
        <!-- REMOVE FOR BETA -->
        <!-- added by NH to test foreign membership providers-->
        <connectionStrings>
            <remove name="LocalSqlServer"/>
            <!--<add name="LocalSqlServer" connectionString="server=.\sqlexpress;database=aspnetdb;user id=DBUSER;password=DBPASSWORD" providerName="System.Data.SqlClient"/>-->
        </connectionStrings>
        <system.web>
            <!-- <trust level="Medium" originUrl=".*" /> -->
            <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, umbraco"/>
                <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule, umbraco"/>
                <!-- CLIENT DEPENDENCY -->
                <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/>
            </httpModules>
            <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"/>
                <!-- 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"/>
                <!-- CLIENT DEPENDENCY -->
                <add verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>
                <!-- SPELL CHECKER -->
                <add verb="GET,HEAD,POST" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/>
            </httpHandlers>
            <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.0">
                </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" passwordFormat="Hashed"/>
                </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>
        <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>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                <remove name="UrlRewriteModule"/>
                <remove name="umbracoRequestModule"/>
                <remove name="viewstateMoverModule"/>
                <remove name="umbracoBaseRequestModule"/>
                <remove name="ScriptModule"/>
                <remove name="ClientDependencyModule"/>
                <!-- URL REWRTIER -->
                <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
                <!-- UMBRACO -->
                <add name="umbracoRequestModule" type="umbraco.presentation.requestModule, umbraco"/>
                <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule, umbraco"/>
                <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule, umbraco"/>
                <!-- ASPNETAJAX -->
                <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <!-- CLIENT DEPENDENCY -->
                <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/>
            </modules>
            <handlers accessPolicy="Read, Write, Script, Execute">
                <remove name="WebServiceHandlerFactory-Integrated"/>
                <remove name="ScriptHandlerFactory"/>
                <remove name="ScriptHandlerFactoryAppServices"/>
                <remove name="ScriptResource"/>
                <!-- ASPNETAJAX -->
                <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"/>
                <!-- UMBRACO CHANNELS -->
                <add verb="*" name="Channels" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco"/>
                <add verb="*" name="Channels_Word" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco"/>
                <!-- CLIENT DEPENDENCY -->
                <add verb="*" name="ClientDependency" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>
                <!-- SPELL CHECKER -->
                <add verb="GET,HEAD,POST" name="SpellChecker" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/>
            </handlers>
        </system.webServer>
       
    </configuration>

    Hope this helps

    Toby

  • Sander Houttekier 114 posts 163 karma points
    Apr 27, 2010 @ 10:57
    Sander Houttekier
    0

    well, i took the latest 4.1 beta 2, and alot is different in your web.config

    i'm compairing them, while trying to figure out what changes were made for the .net 4.0 version
    and what were made just for your project.

    should there be more than just changing the compiler version  targetFramework="4.0"

    well theres that and of course the 4.0 appPool.  The site is running in that application Pool and gives this error after the config changes:

    The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.

    if you could be a little more speciifc on what you changed that would be a big help
    thanks

  • Tobias Neugebauer 52 posts 93 karma points
    Apr 27, 2010 @ 11:23
    Tobias Neugebauer
    0

    Okay, i try to remember (please backup your web.config first ;) ):

    1. change in compilation Tag change from

    <compilation defaultLanguage="c#" debug="true" batch="false">

    to

    <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.0">

    and deleted the complete assemblies-section under that

    2. remove/comment out the asp-prefixed controls under system.web/pages/controls

    3. under system.webServer and system.web remove/comment out all ASPNETAJAX handlers and modules

    4. remove/comment out the whole system.codedom section

    As a rule of thumb youcould go through your web.config file search for ' Version=3.5.0.0' and comment out all those lines and the system.codedom-section

    Hope that helps

    Toby

    P.S. ScottGu mad a blog post about the changes in the standard web.config: http://weblogs.asp.net/scottgu/archive/2009/08/25/clean-web-config-files-vs-2010-and-net-4-0-series.aspx

  • Sander Houttekier 114 posts 163 karma points
    Apr 27, 2010 @ 11:44
    Sander Houttekier
    0

    seems to work i do think you left something out though :)
    site runs, backend runs, but when publishing it renders the potentially harmfull script   because there are html tags in the node for the rich text editors)

    weirdly enough adding ValidateRequest="false" to the page directive of editContent.aspx

    or doing it globally in web.config 

    does not change a thing

  • Sander Houttekier 114 posts 163 karma points
    Apr 27, 2010 @ 12:50
    Sander Houttekier
    0

    so if i understand you well,

    most of the things you comment / removed   are things that found another place in the 4.0

    in the machine config you say.

     

    as i have assemblies i want to add, but since the assemblies node in the compilation node had to be removed for the above goal (transfering to .net 4.0)

  • Tobias Neugebauer 52 posts 93 karma points
    Apr 27, 2010 @ 15:00
    Tobias Neugebauer
    0

    Hi,

    you are correct if you would like to add your own controls do add them where you used to add them :) It's just a matter of not having to declare those .Net 3.5 Controls.

    Maybe you could check your default web.config file which you can find here: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config everything which is defined in ther does not have to be in the web.config file sinc yours inherit settings from this standard web.config. So you could check to figure out what to remove from your web.config.

     

  • Sander Houttekier 114 posts 163 karma points
    Apr 27, 2010 @ 15:49
    Sander Houttekier
    1

    Except for the ValidateRequest issue everything seems to work
    every postback in backend with fields holding html returns an error to the screen for a possible dangerous script
    it does not help to add ValidateRequest="false" in the pagedirective, nor does it help adding the attribute to the pages element in the web.config.
    i'm going to include my web.config for reference maybe someone finds the reason for this blocking error 

    you might notice there is some code inserted for MVC too, tagged with <!-- ASP MVC -->
    these have nothing to do with the error, i tried cutting them out , same result

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <configSections>
            <section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
            <section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
            <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>
            <section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core"/>
            <section name="UmbracoExamine" type="UmbracoExamine.Core.Config.UmbracoExamineSettings, UmbracoExamine.Core"/>
            <section name="ExamineLuceneIndexSets" type="UmbracoExamine.Providers.Config.ExamineLuceneIndexes, UmbracoExamine.Providers"/>
        </configSections>
        <urlrewritingnet configSource="config\UrlRewriting.config" />
        <microsoft.scripting configSource="config\scripting.config" />
        <clientDependency configSource="config\ClientDependency.config" />
        <UmbracoExamine configSource="config\ExamineSettings.config" />
        <ExamineLuceneIndexSets configSource="config\ExamineIndex.config" />
        <appSettings>
            <add key="umbracoDbDSN" value="server=sander_pc\SQLEXPRESS;database=umbraco_vs_mvc82;user id=umbraco_vs_mvc;password=umbraco_vs_mvc" />
            <add key="umbracoConfigurationStatus" value="4.1.0.betaII" />
            <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" />
            <add key="umbracoContentXMLUseLocalTemp" value="false"/>
        </appSettings>
        <system.net>
            <mailSettings>
                <smtp>
                    <network host="127.0.0.1" userName="username" password="password" />
                </smtp>
            </mailSettings>
        </system.net>
        <!-- REMOVE FOR BETA -->
        <!-- added by NH to test foreign membership providers-->
        <connectionStrings>
            <remove name="LocalSqlServer" />
            <!--<add name="LocalSqlServer" connectionString="server=.\sqlexpress;database=aspnetdb;user id=DBUSER;password=DBPASSWORD" providerName="System.Data.SqlClient"/>-->
        </connectionStrings>
        <system.web>
            <!-- <trust level="Medium" originUrl=".*" />-->
            <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="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco" />
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                </controls>
                <namespaces>
                    <!-- ASP MVC -->
                    <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"/>
                </namespaces>
            </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, umbraco" />
                <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule, umbraco" />
                <!-- CLIENT DEPENDENCY -->
                <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/>
                <!-- ASP MVC -->
                <add name="RegisterRoutesModule" type="RegisterRoutesModule"/>
            </httpModules>
            <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"/>
                <!-- 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" />
                <!-- CLIENT DEPENDENCY -->
                <add verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>
                <!-- SPELL CHECKER -->
                <add verb="GET,HEAD,POST" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco" />
            </httpHandlers>
            <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.0">
                <assemblies>
                    <!-- ASP MVC -->
                    <add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add assembly="System.Web.Abstractions, 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" passwordFormat="Hashed" />
                </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>
        <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>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules>
            <remove name="UrlRewriteModule"/>
            <remove name="umbracoRequestModule"/>
            <remove name="viewstateMoverModule"/>
            <remove name="umbracoBaseRequestModule"/>
            <remove name="ScriptModule"/>
            <remove name="ClientDependencyModule"/>
            <!-- URL REWRTIER -->
            <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
            <!-- UMBRACO -->
            <add name="umbracoRequestModule" type="umbraco.presentation.requestModule, umbraco" />
            <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule, umbraco" />
            <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule, umbraco" />
            <!-- ASPNETAJAX -->
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.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" />
          <!-- ASPNETAJAX -->
          <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" />
          <!-- UMBRACO CHANNELS -->
          <add verb="*" name="Channels" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
          <add verb="*" name="Channels_Word" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
          <!-- CLIENT DEPENDENCY -->
          <add verb="*" name="ClientDependency" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/> 
          <!-- SPELL CHECKER -->
          <add verb="GET,HEAD,POST" name="SpellChecker" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/>
        </handlers>
      </system.webServer>
    </configuration>
  • Sander Houttekier 114 posts 163 karma points
    Apr 27, 2010 @ 16:20
    Sander Houttekier
    0

    Owkay, i found the issue
    weird that you did not have these difficulties toby, as your web.config does not contain this:

    <httpRuntime requestValidationMode="2.0" />

     

    adding that line (in configuration/system.web) does fix it (somehow) its not actually a fix, more like a "please use the old validation, that did not trigger on those specific postbacks in .net2.0"

    anyway, publishing and editing xslt's and css files works again. 

  • Tobias Neugebauer 52 posts 93 karma points
    Apr 27, 2010 @ 16:25
    Tobias Neugebauer
    0

    great! i would give a "thumb up" for this one but it's only allowd from karma 70+ sorry

  • Sander Houttekier 114 posts 163 karma points
    Apr 30, 2010 @ 14:21
    Sander Houttekier
    0

    Just as information,

    the the web.config i use is not 100% good,
    as the umbraco does not seem to be working properly after moving changes to the testing server.

    locally i can run a 4.1 umbraco with the above web.config and it works well in .net 4.0

    but after moving to the server, it fails at loading the content tree's
    when i remove the web.config changes and put it back in the default app pool, the tree loads again
    so i'm going to do more testing and see what changes made this issue come up.

  • Tobias Neugebauer 52 posts 93 karma points
    Apr 30, 2010 @ 14:27
    Tobias Neugebauer
    0

    cool maybe a wiki doc would be great for this topic!

    Is there a complete .Net 4.0 on the server! I've read that from 4.0 the framework is devided into two different profiles (the client profile and the full blown one). Can you check which one is installed on the server as i suppose you (as i) have installed the full framework on your machine this could make a/the difference...

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 10, 2010 @ 10:08
    Jeroen Breuer
    0

    Has a wiki already been added? Would love to see a good overview of how to use .Net 4.0 with Umbraco.

    Jeroen

  • Thomas.R 39 posts 62 karma points
    Jun 17, 2010 @ 15:09
    Thomas.R
    0

    I've just installed the last Umbraco 4.1 RC, compiled my projects and changed the app pool to target the .net framework 4 but i got this following error : 

    BC30560: 'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'.

    It targets the InternalXmlHelper file which contains unmanaged code, has someone encountered this problem ?

  • Thomas.R 39 posts 62 karma points
    Jun 17, 2010 @ 15:25
    Thomas.R
    0

    So far that i've read, it is because of IronPython : 

    http://lists.ironpython.com/pipermail/users-ironpython.com/2008-August/008126.html

Please Sign in or register to post replies

Write your reply to:

Draft