Copied to clipboard

Flag this post as spam?

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


  • Bas Schouten 135 posts 233 karma points
    Sep 20, 2010 @ 16:02
    Bas Schouten
    0

    4.5 site working but backoffice fails

    Hi All,

    I am upgrading a umbrco installation to  to 4.5. The website works just fine after the update, only the back office gives following error (custom errors off). Whats wrong?

    Source Error:

    Line 125:
    Line 126:        //used for deeplinking to specific content whilst still showing the tree
    Line 127:        var initApp = '<%=umbraco.presentation.UmbracoContext.Current.Request.QueryString["app"]%>';
    Line 128:        var rightAction = '<%=umbraco.presentation.UmbracoContext.Current.Request.QueryString["rightAction"]%>';
    Line 129:        var rightActionId = '<%=umbraco.presentation.UmbracoContext.Current.Request.QueryString["id"]%>';
     
  • Tim 1193 posts 2675 karma points MVP 3x c-trib
    Sep 20, 2010 @ 17:34
    Tim
    0

    What does the actual error message say?

  • Bas Schouten 135 posts 233 karma points
    Sep 20, 2010 @ 18:49
    Bas Schouten
    0

    Hi Tim,

    This is the full error:  Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0012: The type 'System.Web.HttpRequestWrapper' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

    Source Error:

     
    Line 125:
    Line 126:        //used for deeplinking to specific content whilst still showing the tree
    Line 127:        var initApp = '';
    Line 128:        var rightAction = '';
    Line 129:        var rightActionId = '';


    Source File: d:\internet\root\www\umbraco\umbraco.aspx    Line: 127


    Show Detailed Compiler Output:

    C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\3476811a\002d039f_d5eec901\DotNetOpenMail.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\10f81131\e4414b4f_8a56cb01\IronPython.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\App_Web_quicksearch.ascx.864d309b.ifqbdvlu.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\App_Web_treecontrol.ascx.939908b6.9qhz2srr.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\e02e70e9\2f15dc45_8a56cb01\businesslogic.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\37937baa\275c7e64_8a56cb01\umbraco.providers.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\7818552d\52290e64_8a56cb01\umbraco.editorControls.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\7aa979b5\002d039f_d5eec901\VistaDB For Umbraco.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\8d7bb0f2\107a6648_8a56cb01\CookComputing.XmlRpcV2.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\f2e1cce1\28a2e35d_8a56cb01\Microsoft.Scripting.Debugging.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\7b277d0e\cf6c6ae3_22c8ca01\Nibble.Umb.Datatype.ImprovedMediaPicker.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\9a3e1a4f\002d039f_d5eec901\VistaDB.NET20.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\c1a522ca\077e8948_8a56cb01\Examine.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\4cae1926\99dd2c59_8a56cb01\Lucene.Net.DLL" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\3c155911\55593564_8a56cb01\umbraco.Linq.Core.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\cc7251e4\1f91b956_8a56cb01\IronRuby.Libraries.Yaml.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\49a94213\3f5e0e60_8a56cb01\TidyNet.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\37f574cf\ee332b46_8a56cb01\ClientDependency.Core.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\3a7e1e9d\002d039f_d5eec901\AjaxControlToolkit.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\a324333d\c8523d4a_8a56cb01\ICSharpCode.SharpZipLib.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\a6b42f09\017074c2_22c8ca01\ImageGen.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\a4e49d41\fd765c4a_8a56cb01\interfaces.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\49a3a2de\6129ab5d_8a56cb01\Microsoft.Scripting.Core.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\59877e6e\e78b3365_8a56cb01\UrlRewritingNet.UrlRewriter.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\488016f3\8eb4f947_8a56cb01\controls.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\91005bbe\002d039f_d5eec901\IronMath.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\53263faa\5587a9a6_25c8ca01\TG.Umb.DateFolder.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\9eae25fa\4ef8595c_8a56cb01\Microsoft.Dynamic.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\5c5336c0\6961795e_8a56cb01\Microsoft.Scripting.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\edcdaa81\5bd4c147_8a56cb01\cms.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\3c8a5929\45d4bc36_9856cb01\PDCalendar.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\ab1444cd\f5a1218b_05dcca01\Decode.Umb.Pixlr.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\157573e4\da4ec964_8a56cb01\UmbracoExamine.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\9d14cfb6\341fec53_8a56cb01\IronRuby.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\d33f7dbc\0631cd76_3433cb01\FergusonMoriyama.Place.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\32312c5f\6aa33163_8a56cb01\umbraco.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\ff8d219d\6e785764_8a56cb01\umbraco.macroRenderings.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\7d2cb957\16e53e59_8a56cb01\Microsoft.ApplicationBlocks.Data.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\d53dd01c\77895c45_8a56cb01\App_Browsers.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\fbdc9a43\42abdc50_8a56cb01\IronPython.Modules.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\9ddeaf22\d40e2d56_8a56cb01\IronRuby.Libraries.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\2267de24\4b1eab60_8a56cb01\umbraco.DataLayer.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\14f25845\82c442d2_23c8ca01\SearchBox.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\1e78ed32\00f4046b_ee9fca01\umbraco.webservices.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\fea008bd\00f4046b_ee9fca01\umbraco.standardFormhandlers.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\9f132ebc\9a91625f_8a56cb01\MySql.Data.DLL" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\App_Web_umbraco.aspx.5f2dec3.yixlpf8b.dll" /debug- /optimize+ /win32res:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\2jff_gmv.res" /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\App_Web_umbraco.aspx.5f2dec3.yixlpf8b.0.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\App_Web_umbraco.aspx.5f2dec3.yixlpf8b.1.cs"
    
    
    Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1
    for Microsoft (R) .NET Framework version 3.5
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    d:\internet\root\www\westervoort\umbraco\umbraco.aspx(127,16): error CS0012: The type 'System.Web.HttpRequestWrapper' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
    c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\09dc0e43\38735825\assembly\dl3\32312c5f\6aa33163_8a56cb01\umbraco.DLL: (Location of symbol related to previous error)
    d:\internet\root\www\westervoort\umbraco\umbraco.aspx(127,79): error CS1061: 'umbraco.presentation.UmbracoRequest' does not contain a definition for 'QueryString' and no extension method 'QueryString' accepting a first argument of type 'umbraco.presentation.UmbracoRequest' could be found (are you missing a using directive or an assembly reference?)
    d:\internet\root\www\westervoort\umbraco\umbraco.aspx(128,83): error CS1061: 'umbraco.presentation.UmbracoRequest' does not contain a definition for 'QueryString' and no extension method 'QueryString' accepting a first argument of type 'umbraco.presentation.UmbracoRequest' could be found (are you missing a using directive or an assembly reference?)
    d:\internet\root\www\westervoort\umbraco\umbraco.aspx(129,85): error CS1061: 'umbraco.presentation.UmbracoRequest' does not contain a definition for 'QueryString' and no extension method 'QueryString' accepting a first argument of type 'umbraco.presentation.UmbracoRequest' could be found (are you missing a using directive or an assembly reference?)
    




    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614

    Server Error in '/' Application.

    Compilation Error

     

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Sep 20, 2010 @ 20:20
    Sebastiaan Janssen
    0

    Are you using the .net 4.0 version of Umb 4.5? Your app pool is still in 2.0 (3.5) mode. Either that or you may be using the 4.0  web.config in the .net 3.5 version of Umb 4.5.

    Tip: start with a clean web.config (the one in the downloaded zip file) and try the install again.

  • Bas Schouten 135 posts 233 karma points
    Sep 20, 2010 @ 20:46
    Bas Schouten
    0

    Hi Sebastiaan,

    Thanx for your answer!

    I use the .net 3.5 build from codeplex. I did the installation again with a new web.config.

    The website shows the following error, but the Umbraco loginscreen works, unfortunately i can not login.

    - Do I have to reset my password in the database & do I have to reset the trust level to full? (I ask this because I dont have server permissions from home :-S )

     

    Server Error in '/' Application. 

    Security Exception 
    
    
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
       System.AppDomain.get_Evidence() +24
       umbraco.BusinessLogic.Utils.TypeResolver.GetAssignablesFromType(String[] files) +970
       umbraco.BusinessLogic.Utils.TypeResolver.GetAssignablesFromType(String path, String filePattern) +317
       umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType(Boolean useSeperateAppDomain, Boolean onlyConcreteClasses) +259
       umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType(Boolean useSeperateAppDomain) +98
       umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType() +92
       umbraco.BusinessLogic.Application.RegisterIApplications() +129
       umbraco.BusinessLogic.Application..cctor() +59
    

    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614 

     

     

     

    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Source Error:

  • Bas Schouten 135 posts 233 karma points
    Sep 21, 2010 @ 20:55
    Bas Schouten
    0

    Problems solved :-)

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Sep 21, 2010 @ 20:56
    Sebastiaan Janssen
    0

    Ooh, what was it?

  • Bas Schouten 135 posts 233 karma points
    Sep 21, 2010 @ 21:06
    Bas Schouten
    0

    I followed a few steps.

    > reinstall with clean web.config (in my case the 3.5 build)
    > reset the .net trust levels to full
    > delete "data/umbraco.config" so umbraco could build a new one
    > delete the password hashed tags from web.config

    I will mark your post as solution because you pointed me in the right direction. Thanks! 

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Sep 21, 2010 @ 21:08
    Sebastiaan Janssen
    0

    Great! I had actually tried to comment on this post, about the passwords, but it must not have gone through. Glad it works again!

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Sep 27, 2010 @ 12:31
    Sebastiaan Janssen
    0

    Haha, funny thing, I just had the exact same problem, Googled the error and came here to find my own solution... Replacing the web.config helped immediately.  :-)

Please Sign in or register to post replies

Write your reply to:

Draft