Copied to clipboard

Flag this post as spam?

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


  • José A. 11 posts 31 karma points
    Feb 20, 2015 @ 14:41
    José A.
    0

    Error when upgrading to umbraco 7.2.2 and other issues

    We have just tried to upgrade to Umbraco 7.2.2 right from 7.2.1 (not a big jump, though).

    Optimus 1.2.1 was running just fine for the 7.2.1 version.

    During the upgrade process, right after all manual file copies and merges of .config files, when browsing the site for the first time in order to finish the update, the process stalled. We could not get further than the page /umbraco/AuthorizeUpgrade?redir=%2finstall%2f%3fredir%3dtrue%26url%3dhttp...

    The page AuthorizeUpgrade innerly requested the file /DependencyHandler.axd?s= which was throwing HTTP 500 Internal Server Errors. In ~/app_data/logs/UmbracoTraceLog.txt we could see errors like the following each time we tried to refresh the page:

    2015-02-20 13:16:33,984 [46] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 48] An unhandled exception occurred
    System.InvalidOperationException: Esta operación no se admite en un URI relativo.
       en System.Uri.get_PathAndQuery()
       en ClientDependency.Core.CompositeFiles.Providers.BaseCompositeFileProcessingProvider.WritePathToStream(ClientDependencyType type, String path, HttpContextBase context, StreamWriter sw)
       en ClientDependency.Core.CompositeFiles.Providers.CompositeFileProcessingProvider.<>c__DisplayClass3.<CombineFiles>b__0(String s)
       en System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
       en System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       en System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       en System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       en ClientDependency.Core.CompositeFiles.Providers.CompositeFileProcessingProvider.CombineFiles(String[] filePaths, HttpContextBase context, ClientDependencyType type, List`1& fileDefs)
       en ClientDependency.Core.CompositeFiles.CompositeDependencyHandler.ProcessRequestInternal(HttpContextBase context, String fileset, ClientDependencyType type, Int32 version, Byte[] outputBytes, OutputCachedPage page)
       en ClientDependency.Core.CompositeFiles.CompositeDependencyHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
       en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    The only workaround we found to finish the upgrade to 7.2.2 was to disable the optimisations (setting debug="true" in web.config). After this change the upgrade was able to finish. However...

    When we tried to set debug="false" back in web.config Umbraco backend stopped working again (the site contents were served, but the backend was not available because of this error). So we are running it now in debug="true" mode.

    Another weird thing that happens when debug is enabled, that might help pinpoint the source of the error (or errors) are the following:

    A. If, from the backend, we browse to Settings->Bundling->Scripts and click on any of the existing bundles, the background request to /App_Plugins/Optimus/Index?virtualPath=... fails with an HTTP 401 You must login to view this resource.

    B. If we try to créate a new bundle, right clicking on Scripts (for instance, it fails for Styles too), and select + Create, the inner request made to /umbraco/create.aspx?nodeId=1&nodeType=scriptBundle&nodeName... returns with HTTP 500 Internal Server Error.

    In this latter case, the error logged in UmbracoTraceLog.txt was:

    2015-02-20 14:22:54,987 [30] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 57] An unhandled exception occurred
    System.Web.HttpUnhandledException (0x80004005): Se produjo una excepción de tipo 'System.Web.HttpUnhandledException'. ---> System.ArgumentException: The create dialog for "scriptBundle" does not match anything defined in the "~/umbraco/config/create/UI.xml". This could mean an incorrectly installed package or a corrupt UI file
       en umbraco.cms.presentation.Create.OnLoad(EventArgs e)
       en System.Web.UI.Control.LoadRecursive()
       en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       en System.Web.UI.Page.HandleError(Exception e)
       en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       en System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       en System.Web.UI.Page.ProcessRequest()
       en System.Web.UI.Page.ProcessRequest(HttpContext context)
       en ASP.umbraco_create_aspx.ProcessRequest(HttpContext context) en c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6ffd8b37\ea6ae51a\App_Web_create.aspx.5f2dec3.lfwndyig.0.cs:línea 0
       en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  • Søren Reinke 158 posts 206 karma points c-trib
    Feb 20, 2015 @ 14:48
    Søren Reinke
    0

    I just installed a brand new 7.2.2. site, and added Optimus.

    When creating a new bundle i get the 401.0 

    You must login to view this resource.

    :-(

    Posted about it here:

    http://www.nibble.be/?p=237
     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 20, 2015 @ 15:16
    Tim Geyssens
    0

    Looks like the 401 is due to this error https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/55676-Securing-a-back-office-MVC-controller?p=0#comment208937 in 7.2.2 you get this when there is no member logged in so probably missing something

  • José A. 11 posts 31 karma points
    Feb 20, 2015 @ 16:37
    José A.
    0

    Just for testing and for adding a little more information about this issue:

    We are using ADUsersMembershipProvider as DefaultBackofficeProvider (see https://our.umbraco.org/wiki/how-tos/membership-providers/active-directory-membership-provider ).

    Since this is not the default Umbraco installation config, have tried to change it back to use the default Umbraco UsersMembershipProvider so that instead of logging in with an Active Directory user, we login with a regular Umbraco user.

    It does not make any difference. The errors still persist.

    I hope you (or any other developer) could have a look into it and fix this issue.

    Thanks for you support.

  • Guillaume 5 posts 26 karma points
    Feb 24, 2015 @ 16:00
    Guillaume
    0

    Hi have the same issue on a fresh install of Optimus 1.2.1 AFTER upgrading Umbraco 7.2.1 to 7.2.2... 

    Any workaround so far ? 

    I Know for sure that the bundling works with Umbraco 7.2.1, but as soon as i install it a fresh new instance of Umbraco 7.2.2, it's broken... if that info can help :)

  • Dmitriy Larionov 10 posts 30 karma points
    Feb 27, 2015 @ 13:28
    Dmitriy Larionov
    0

    I also have this error "401 You must login to view this resource." with Umbraco 7.2.2 and Optimus 1.2.1.

    When i just updated my Umbraco 7.2.0 to 7.2.2 Optimus (that was installed before update) was working well - i have edited my css bundle, saved, changes applied. But, after some time, Optimus became unusable - i can't open bundles and see this error in server answer.

    I also would like to know how to repair, if somebody knows.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 27, 2015 @ 13:54
    Tim Geyssens
    0

    Seems like this has to change , so umbraco knows it's a backoffice route

    https://github.com/TimGeyssens/BundlingAndMinificationForTheMasses/blob/master/BundlingAndMinificationForTheMasses/App_Start/RouteConfig.cs

    So it needs to live in /umbraco/backoffice instead of app_plugins

  • Ben 107 posts 373 karma points
    Mar 12, 2015 @ 15:45
    Ben
    0

    I don't have Optimus, but the same thing happened to me while doing a manual update from 7.1.8 to 7.2.2.  I changed the web.config to debug=true so the upgrade would work.  Once the upgrade was completed, I set debug=false and got the following error in the developer console (Chrome) and the backend wouldn't load:

    Uncaught ReferenceError: UmbClientMgr is not defined 

  • Arjan Woldring 122 posts 229 karma points
    Mar 19, 2015 @ 15:56
    Arjan Woldring
    0

    Will there be an update for this awesome package soon? Would like to upgrade to 7.2.X. Thanks anyway!

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 19, 2015 @ 15:58
    Tim Geyssens
    0

    Yeah new version will be out this month, staring the necessary work today

  • Arjan Woldring 122 posts 229 karma points
    Mar 19, 2015 @ 16:32
    Arjan Woldring
    0

    That is awesome Tim. This package really rocks! Thanks!

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 26, 2015 @ 11:31
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 26, 2015 @ 13:55
    Tim Geyssens
    0

    Might have found anoher issue, when your bundles throw a 404, then just do the following update to your web.config

    http://stackoverflow.com/a/25565327

  • Arjan Woldring 122 posts 229 karma points
    Mar 26, 2015 @ 19:21
    Arjan Woldring
    0

    That was quick! Thanks Tim. H5YR!

  • Søren Mastrup 118 posts 545 karma points c-trib
    Mar 27, 2015 @ 11:50
    Søren Mastrup
    0

    I am running a fresh install of Umbraco 7.1.4 and a fresh install of the latest Optimus package, but I still get the 404 errors on the bundles.

    I have tried adding code from the example on Stackoverflow:

    <modules runAllManagedModulesForAllRequests="true">
      <remove name="BundleModule" />
      <add name="BundleModule" type="System.Web.Optimization.BundleModule" />
      <remove name="WebDAVModule" />
      <remove name="UrlRewriteModule" />
      <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
      <remove name="UmbracoModule" />
      <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,umbraco" />
      <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" />
      <remove name="ClientDependencyModule" />
      <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
      <!-- Needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) -->
      <remove name="FormsAuthentication" />
      <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
      <add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
    </modules>
    

    This didn't work though. What can I try next?

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 12:33
    Chris Ashton
    0

    I too am experiencing a similar issue as Søren, as in my bundle returns a 404 status, and I notice the bundle isn't getting the querystring parameter added.

    • Umbraco 7.2.4 installed via NuGet
    • Using Optimus core and providers version 1.3.0 as I downloaded yesterday
    • Tried both with and without suggested Stackoverflow  BundleModule
    • Tried Visual Studio 2013 C# empty web project and Visual Studio 2013's Visual Studio 2012 empty MVC 4 project as per the guidelines found at https://our.umbraco.org/documentation/installation/install-umbraco-with-nuget
    I'm happy to test and provide logs etc.
    Thanks,
    Chris
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 12:36
    Tim Geyssens
    0

    In my case this did the trick 

    <removename="BundleModule"/>
     
    <addname="BundleModule"type="System.Web.Optimization.BundleModule"/>

    But sounds like yuo already tried that, I am running from webmatrix, will give it a go from vs

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 12:42
    Chris Ashton
    0

    Hi Tim,

    Thanks for the quick response!

    Yeah, I've tried both with and without the BundleModule code. I forgot to mention it is a fresh install with the following NuGet packages:

    • UrlPicker
    • Archetype
    • nuPickers
    • CMSImport
    • CMSImport.DataProviders.RSS
    • CMSImport.DataProviders.Umbraco

    although I've tried without these packages and I get the same result.

    Cheers,

    Chris

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 12:47
    Tim Geyssens
    0

    @chris thanks for the extra details, also mind sharing how you called your bundle? Then I can setup the same environment 

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 13:14
    Tim Geyssens
    0

    Hmm made it work by copying over the web.config from my webmatrix instance, doing a diff now to see what was missing

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 13:18
    Chris Ashton
    0

    Hi Tim,

    I added my bundle to App_Plugins\Optimus\Config\bundles.config using:

    <styleBundle virtualPath="~/bundles/siteCss" disableMinification="True">
      <include virtualPath="~/css/less/bwt-site.less" />
    </styleBundle>  
    

    and I use @Styles.Render("~/bundles/siteCss") in my template to call it. /css/less/bwt-site.less currently contains:

    body { background: red; }
    

    Cheers,

    Chris

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 13:41
    Tim Geyssens
    0

    Ok found the fix, in the web.config find

    <dependentAssembly>

            <assemblyIdentityname="JavaScriptEngineSwitcher.Core" publicKeyToken="c608b2a8cc9e4472" culture="neutral" />

            <bindingRedirectoldVersion="0.0.0.0-1.1.3.0" newVersion="1.1.3.0" />

     

          </dependentAssembly>

    and change to 

    <dependentAssembly>

            <assemblyIdentityname="JavaScriptEngineSwitcher.Core" publicKeyToken="c608b2a8cc9e4472" culture="neutral" />

            <bindingRedirectoldVersion="0.0.0.0-1.2.4.0" newVersion="1.2.4.0" />

     

          </dependentAssembly>

     

    please let me know if that fixes the issue

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 14:02
    Chris Ashton
    0

    Hi Tim,

    I've changed:

    <dependentAssembly>
        <assemblyIdentity name="JavaScriptEngineSwitcher.Core" publicKeyToken="c608b2a8cc9e4472" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.1.3.0" newVersion="1.1.3.0" />
    </dependentAssembly>
    

    to:

    <dependentAssembly>
        <assemblyIdentity name="JavaScriptEngineSwitcher.Core" publicKeyToken="c608b2a8cc9e4472" culture="neutral" />
        <bindingRedirectoldVersion oldVersion="0.0.0.0-1.2.4.0" newVersion="1.2.4.0" />
    </dependentAssembly>
    

    and I still get they same error. I've tried restarting the app pool and rebuilding.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 14:08
    Tim Geyssens
    0

    Anything in the umbraco logs?

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 14:13
    Chris Ashton
    0

    Hi Tim,

    Yes, there is something. This is what is in the log following i) stop and start the app pool; and ii) visit the page that should have the bundle on:

    2015-03-27 13:10:36,606 [7] INFO  Umbraco.Core.UmbracoApplicationBase - [Thread 10] Application shutdown. Reason: HostingEnvironment
    2015-03-27 13:11:06,018 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Determining hash of code files on disk
    2015-03-27 13:11:06,047 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Hash determined (took 16ms)
    2015-03-27 13:11:06,060 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
    2015-03-27 13:11:06,095 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 43 (took 33ms)
    2015-03-27 13:11:06,243 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
    2015-03-27 13:11:06,246 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 2ms)
    2015-03-27 13:11:06,246 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyValueConverter
    2015-03-27 13:11:06,248 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyValueConverter, found 19 (took 1ms)
    2015-03-27 13:11:06,284 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Web.Mvc.SurfaceController
    2015-03-27 13:11:06,284 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Web.Mvc.SurfaceController, found 4 (took 0ms)
    2015-03-27 13:11:06,285 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Web.WebApi.UmbracoApiController
    2015-03-27 13:11:06,289 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Web.WebApi.UmbracoApiController, found 45 (took 3ms)
    2015-03-27 13:11:06,361 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.Media.IThumbnailProvider
    2015-03-27 13:11:06,362 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.Media.IThumbnailProvider, found 3 (took 0ms)
    2015-03-27 13:11:06,362 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.Media.IImageUrlProvider
    2015-03-27 13:11:06,363 [7] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.Media.IImageUrlProvider, found 1 (took 0ms)
    2015-03-27 13:11:07,865 [7] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 1] Initializing Examine and binding to business logic events
    2015-03-27 13:11:08,079 [7] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 1] Adding examine event handlers for index providers: 3
    2015-03-27 13:11:08,168 [7] ERROR System.Web.Optimization.BundleCollection - [Thread 1] Error adding bundles: System.IO.FileLoadException: Could not load file or assembly 'JavaScriptEngineSwitcher.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=c608b2a8cc9e4472' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    File name: 'JavaScriptEngineSwitcher.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=c608b2a8cc9e4472'
       at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
       at System.Reflection.RuntimeConstructorInfo.get_Signature()
       at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
       at System.RuntimeType.FilterApplyMethodBase(MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
       at System.RuntimeType.FilterApplyConstructorInfo(RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at BundleTransformer.Core.Utilities.Utils.CreateInstanceByFullTypeName[T](String fullTypeName)
       at BundleTransformer.Core.Assets.AssetContextBase.GetTranslatorInstance(String translatorName)
       at BundleTransformer.Core.Assets.AssetContextBase.GetDefaultTranslatorInstances()
       at BundleTransformer.Core.Transformers.StyleTransformer..ctor(IMinifier minifier, IList`1 translators, IList`1 postProcessors, String[] ignorePatterns, CoreSettings coreConfig)
       at BundleTransformer.Core.Transformers.StyleTransformer..ctor(IMinifier minifier, IList`1 translators, IList`1 postProcessors, String[] ignorePatterns)
       at BundleTransformer.Core.Transformers.StyleTransformer..ctor()
       at Optimus.BundleConfig.RegisterBundles(BundleCollection bundles)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    
    System.IO.FileLoadException: Could not load file or assembly 'JavaScriptEngineSwitcher.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=c608b2a8cc9e4472' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    File name: 'JavaScriptEngineSwitcher.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=c608b2a8cc9e4472'
       at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
       at System.Reflection.RuntimeConstructorInfo.get_Signature()
       at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
       at System.RuntimeType.FilterApplyMethodBase(MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
       at System.RuntimeType.FilterApplyConstructorInfo(RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at BundleTransformer.Core.Utilities.Utils.CreateInstanceByFullTypeName[T](String fullTypeName)
       at BundleTransformer.Core.Assets.AssetContextBase.GetTranslatorInstance(String translatorName)
       at BundleTransformer.Core.Assets.AssetContextBase.GetDefaultTranslatorInstances()
       at BundleTransformer.Core.Transformers.StyleTransformer..ctor(IMinifier minifier, IList`1 translators, IList`1 postProcessors, String[] ignorePatterns, CoreSettings coreConfig)
       at BundleTransformer.Core.Transformers.StyleTransformer..ctor(IMinifier minifier, IList`1 translators, IList`1 postProcessors, String[] ignorePatterns)
       at BundleTransformer.Core.Transformers.StyleTransformer..ctor()
       at Optimus.BundleConfig.RegisterBundles(BundleCollection bundles)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    
    2015-03-27 13:11:08,745 [7] INFO  Umbraco.Web.UmbracoModule - [Thread 8] Setting OriginalRequestUrl: test.local:80/umbraco
    2015-03-27 13:11:08,838 [7] INFO  umbraco.content - [Thread 8] Loading content from disk cache...
    2015-03-27 13:11:08,971 [7] INFO  Umbraco.Core.PluginManager - [Thread 8] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper
    2015-03-27 13:11:08,972 [7] INFO  Umbraco.Core.PluginManager - [Thread 8] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 23 (took 0ms)
    2015-03-27 13:11:09,695 [7] INFO  Umbraco.Core.PluginManager - [Thread 8] Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
    2015-03-27 13:11:09,697 [7] INFO  Umbraco.Core.PluginManager - [Thread 8] Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 75 (took 1ms)
    
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 15:04
    Tim Geyssens
    0

    Ok that was the same error I was having :) could you check if you have JavaScriptEngineSwitcher.Core.dll in the bin directory and which version it is (you can see the version when you check the properties of the assembly)

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 15:10
    Chris Ashton
    0

    Hi Tim – I can see the JavaScriptEngineSwitcher.Core.dll in the bin directory, and right clicking > properties shows its version to be 1.2.4.0.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 15:15
    Tim Geyssens
    0

    Well in that case the assembly redirect should do the trick... not sure why it's not kicking in in your case

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 15:24
    Chris Ashton
    0

    I've tried setting this up again, so I have both a VS2013 ASP.NET Web Application Empty, and a VS2013 with a VS2012 empty MVC4, and both are experiencing this issue. What VS project template are you using Tim?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 15:27
    Tim Geyssens
    0

    Could you try optimus without installing any additional providers and then adding

     <removename="BundleModule"/>

     

          <addname="BundleModule" type="System.Web.Optimization.BundleModule"/>

    to your web.config (system.webServer/modules)

    and see how that behaves (so no less for the time being)

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 15:54
    Chris Ashton
    0

    Sure. Fresh install, this is what I've done:

    1. VS2013 ASP.NET Web Application > Empty
    2. NuGet install of Umbraco 7.2.4
    3. Compile
    4. Complete Umbraco set up via web browser
    5. Install Umbraco package I downloaded yesterday Optimus.Core_1.3.0 (no providers installed)
    6. Add <remove name="BundleModule" /><add name="BundleModule" List itemtype="System.Web.Optimization.BundleModule" /> to web.config

    What would you like be to try?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 16:04
    Tim Geyssens
    0

    well create a couple of css files and see if you can bundle and output the bundle now (if you have the started kit installed you can just bundle the ones from the starter kit)

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 16:17
    Chris Ashton
    0

    Created a bundle with:

    <styleBundle virtualPath="~/bundles/siteCss" disableMinification="True">
        <include virtualPath="~/css/less/bwt-TEST.css" />
    </styleBundle>
    

    Called bundle with @Styles.Render("~/bundles/siteCss")

    Content of /css/less/bwt-TEST.css is:

    body {
        background: red;
    }
    

    Resulting page has a red background, so it looks like the css bundling is working.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 16:24
    Tim Geyssens
    0

    Ok so now try to install the less provider https://our.umbraco.org/FileDownload?id=14464 and update the assembly redirect

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 16:40
    Chris Ashton
    0

    Installed the Less provider you linked to, and added the assembly redirect:

    <dependentAssembly>
        <assemblyIdentity name="JavaScriptEngineSwitcher.Core" publicKeyToken="c608b2a8cc9e4472" culture="neutral" />
        <!--<bindingRedirect oldVersion="0.0.0.0-1.1.3.0" newVersion="1.1.3.0" />-->
        <bindingRedirectoldVersion oldVersion="0.0.0.0-1.2.4.0" newVersion="1.2.4.0" />
    </dependentAssembly>
    

    bundles.config now looks like this:

    <styleBundle virtualPath="~/bundles/siteCss" disableMinification="True">
      <include virtualPath="~/css/less/bwt-TEST.css" />
    </styleBundle>
    
    <styleBundle virtualPath="~/bundles/siteLess" disableMinification="True">
      <include virtualPath="~/css/less/bwt-site.less" />
    </styleBundle> 
    

    In my template I call the CSS bundle (not the less one) with:

    @Styles.Render("~/bundles/siteCss")
    

    When I view the page the CSS bundle fails with a 404 error.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 16:45
    Tim Geyssens
    0

    and I guess you have the same error in the log again?

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 16:47
    Chris Ashton
    0

    Yes, same error.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 17:08
    Tim Geyssens
    0

    Yeah in that case the assembly redirect would fix it, mind sharing your web.config

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 17:18
    Chris Ashton
    0

    Here it comes:

    <?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=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
        <section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" requirePermission="false" />
        <section name="Examine" type="Examine.Config.ExamineSettings, Examine" requirePermission="false" />
        <section name="ExamineLuceneIndexSets" type="Examine.LuceneEngine.Config.IndexSets, Examine" requirePermission="false" />
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false" />
        <sectionGroup name="umbracoConfiguration">
          <section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" />
          <section name="BaseRestExtensions" type="Umbraco.Core.Configuration.BaseRest.BaseRestSection, Umbraco.Core" requirePermission="false" />
          <section name="FileSystemProviders" type="Umbraco.Core.Configuration.FileSystemProvidersSection, Umbraco.Core" requirePermission="false" />
          <section name="dashBoard" type="Umbraco.Core.Configuration.Dashboard.DashboardSection, Umbraco.Core" requirePermission="false" />
        </sectionGroup>
        <sectionGroup name="bundleTransformer">
          <section name="core" type="BundleTransformer.Core.Configuration.CoreSettings, BundleTransformer.Core" />
          <section name="less" type="BundleTransformer.Less.Configuration.LessSettings, BundleTransformer.Less" />
        </sectionGroup>
        <sectionGroup name="jsEngineSwitcher">
          <section name="core" type="JavaScriptEngineSwitcher.Core.Configuration.CoreConfiguration, JavaScriptEngineSwitcher.Core" />
          <section name="msie" type="JavaScriptEngineSwitcher.Msie.Configuration.MsieConfiguration, JavaScriptEngineSwitcher.Msie" />
        </sectionGroup>
      </configSections>
      <umbracoConfiguration>
        <settings configSource="config\umbracoSettings.config" />
        <BaseRestExtensions configSource="config\BaseRestExtensions.config" />
        <FileSystemProviders configSource="config\FileSystemProviders.config" />
        <dashBoard configSource="config\Dashboard.config" />
      </umbracoConfiguration>
      <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" />
      <log4net configSource="config\log4net.config" />
      <appSettings>
        <add key="umbracoConfigurationStatus" value="7.2.4" />
        <add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd" />
        <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/bundles/" />
        <add key="umbracoPath" value="~/umbraco" />
        <add key="umbracoHideTopLevelNodeFromPath" value="true" />
        <add key="umbracoUseDirectoryUrls" value="true" />
        <add key="umbracoTimeOutInMinutes" value="20" />
        <add key="umbracoDefaultUILanguage" value="en" />
        <add key="umbracoUseSSL" value="false" />
        <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
        <add key="webpages:Enabled" value="false" />
        <add key="enableSimpleMembership" value="false" />
        <add key="autoFormsAuthentication" value="false" />
        <add key="log4net.Config" value="config\log4net.config" />
      </appSettings>
      <connectionStrings>
        <remove name="umbracoDbDSN" />
        <add name="umbracoDbDSN" connectionString="server=localhost;database=test2.local;user id=umbraco_user;password=umbraco_user123!" providerName="System.Data.SqlClient" />
        <!-- Important: If you're upgrading Umbraco, do not clear the connection string / provider name during your web.config merge. -->
      </connectionStrings>
      <system.data>
        <DbProviderFactories>
          <remove invariant="System.Data.SqlServerCe.4.0" />
          <add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" />
          <remove invariant="MySql.Data.MySqlClient" />
          <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data" />
        </DbProviderFactories>
      </system.data>
      <system.net>
        <mailSettings>
          <smtp>
            <network host="127.0.0.1" userName="username" password="password" />
          </smtp>
        </mailSettings>
      </system.net>
      <system.web>
        <customErrors mode="Off" />
        <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
        <httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" />
        <!--
          If you are deploying to a cloud environment that has multiple web server instances,
          you should change session state mode from "InProc" to "Custom". In addition,
          change the connection string named "DefaultConnection" to connect to an instance
          of SQL Server (including SQL Azure and SQL  Compact) instead of to SQL Server Express.
          -->
        <sessionState mode="InProc" customProvider="DefaultSessionProvider">
          <providers>
            <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
          </providers>
        </sessionState>
        <pages enableEventValidation="false">
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.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=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </controls>
          <namespaces>
            <add namespace="System.Web.Optimization" />
          </namespaces>
        </pages>
        <httpModules>
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,umbraco" />
          <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
          <add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
        </httpModules>
        <httpHandlers>
          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <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 verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core " />
          <add path="*.less" verb="GET" type="BundleTransformer.Less.HttpHandlers.LessAssetHandler, BundleTransformer.Less" validate="true" />
        </httpHandlers>
        <compilation defaultLanguage="c#" debug="false" batch="false" targetFramework="4.5">
          <assemblies>
            <add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            <add assembly="System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          </assemblies>
          <buildProviders>
            <add extension=".cshtml" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
            <add extension=".vbhtml" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
            <add extension=".razor" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
          </buildProviders>
        </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.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="4" useLegacyEncoding="true" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" />
            <add name="UsersMembershipProvider" type="Umbraco.Web.Security.Providers.UsersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="4" useLegacyEncoding="true" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
        </membership>
        <!-- Role Provider -->
        <roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
          <providers>
            <clear />
            <add name="UmbracoRoleProvider" type="Umbraco.Web.Security.Providers.MembersRoleProvider" />
          </providers>
        </roleManager>
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="WebDAVModule" />
          <remove name="UrlRewriteModule" />
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
          <remove name="UmbracoModule" />
          <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,umbraco" />
          <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" />
          <remove name="ClientDependencyModule" />
          <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
          <!-- Needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) -->
          <remove name="FormsAuthentication" />
          <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
          <add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
          <remove name="BundleModule" />
          <add name="BundleModule" type="System.Web.Optimization.BundleModule" />
        </modules>
        <handlers accessPolicy="Read, Write, Script, Execute">
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <remove name="Channels" />
          <remove name="Channels_Word" />
          <remove name="ClientDependency" />
          <remove name="MiniProfiler" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.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=4.0.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=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <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" />
          <add verb="*" name="ClientDependency" preCondition="integratedMode" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core" />
          <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
          <remove name="LessAssetHandler" />
          <add name="LessAssetHandler" path="*.less" verb="GET" type="BundleTransformer.Less.HttpHandlers.LessAssetHandler, BundleTransformer.Less" preCondition="integratedMode" />
        </handlers>
        <!-- Adobe AIR mime type -->
        <staticContent>
          <remove fileExtension=".air" />
          <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" />
          <remove fileExtension=".svg" />
          <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
          <remove fileExtension=".woff" />
          <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
          <remove fileExtension=".less" />
          <mimeMap fileExtension=".less" mimeType="text/css" />
          <remove fileExtension=".mp4" />
          <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
        </staticContent>
        <!-- Ensure the powered by header is not returned -->
        <httpProtocol>
          <customHeaders>
            <remove name="X-Powered-By" />
          </customHeaders>
        </httpProtocol>
      </system.webServer>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <!-- Old asp.net ajax assembly bindings -->
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <!-- Ensure correct version of MVC -->
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
          </dependentAssembly>
          <!-- Ensure correct version of HtmlAgilityPack -->
          <dependentAssembly>
            <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
            <bindingRedirect oldVersion="1.4.5.0-1.4.6.0" newVersion="1.4.6.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="BundleTransformer.Core" publicKeyToken="973c344c93aac60d" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.9.43.0" newVersion="1.9.43.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="MsieJavaScriptEngine" publicKeyToken="a3a2846a37ac0d3e" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.5.1.0" newVersion="1.5.1.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="JavaScriptEngineSwitcher.Core" publicKeyToken="c608b2a8cc9e4472" culture="neutral" />
            <!--<bindingRedirect oldVersion="0.0.0.0-1.1.3.0" newVersion="1.1.3.0" />-->
            <bindingRedirectoldVersion oldVersion="0.0.0.0-1.2.4.0" newVersion="1.2.4.0" />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
      <location path="umbraco">
        <system.webServer>
          <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
        </system.webServer>
      </location>
      <location path="App_Plugins">
        <system.webServer>
          <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
        </system.webServer>
      </location>
      <bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd">
        <core>
          <css>
            <translators>
              <add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
              <add name="LessTranslator" type="BundleTransformer.Less.Translators.LessTranslator, BundleTransformer.Less" />
            </translators>
            <minifiers>
              <add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
            </minifiers>
            <postProcessors>
              <add name="UrlRewritingCssPostProcessor" type="BundleTransformer.Core.PostProcessors.UrlRewritingCssPostProcessor, BundleTransformer.Core" useInDebugMode="false" />
            </postProcessors>
            <fileExtensions>
              <add fileExtension=".css" assetTypeCode="Css" />
              <add fileExtension=".less" assetTypeCode="Less" />
            </fileExtensions>
          </css>
          <js>
            <translators>
              <add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
            </translators>
            <minifiers>
              <add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
            </minifiers>
            <fileExtensions>
              <add fileExtension=".js" assetTypeCode="JavaScript" />
            </fileExtensions>
          </js>
        </core>
        <less>
          <jsEngine name="MsieJsEngine" />
        </less>
      </bundleTransformer>
      <jsEngineSwitcher xmlns="http://tempuri.org/JavaScriptEngineSwitcher.Configuration.xsd">
        <core>
          <engines>
            <add name="MsieJsEngine" type="JavaScriptEngineSwitcher.Msie.MsieJsEngine, JavaScriptEngineSwitcher.Msie" />
          </engines>
        </core>
      </jsEngineSwitcher>
    </configuration>
    
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 17:21
    Tim Geyssens
    0

    seems like you have a duplicate oldversion 

    so this 

    <bindingRedirectoldVersionoldVersion="0.0.0.0-1.2.4.0"newVersion="1.2.4.0"/>
    needs to become
    <bindingRedirectoldVersion="0.0.0.0-1.2.4.0"newVersion="1.2.4.0"/>
  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 17:34
    Chris Ashton
    0

    I'm so happy I could swear... yep, that works in both versions of the site.

    So to recap... we need to ensure we install Optimus.Core v1.3.0, and ensure the assembly binding redirect, and the BundleModule are in place in web.config.

    I'm going to work through this again just to make sure. Give me ten min or so...

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2015 @ 17:36
    Tim Geyssens
    1

    Yup, we'll release a 1.3.1 shortly where the installer takes care of this so no more manual steps are needed but for now those are the steps needed

  • Chris Ashton 52 posts 82 karma points
    Mar 27, 2015 @ 18:55
    Chris Ashton
    0

    That all worked a treat.

    Thanks for all your help today Tim, you're a star. I owe you a pint for today's efforts.

    h5yr

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies