Copied to clipboard

Flag this post as spam?

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


  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 18:18
    Daniel Bardi
    0

    Error appeared out of nowhere in the Back Office dialogs

    I am getting the following error when opening "Manage Hostnames" or any macro dialog:

    Compiler Error Message: CS0618: Warning as Error: 'umbraco.helper.Request(string)' is obsolete: 'Use umbraco.Presentation.UmbracoContext.Current.Request[key]'

    Nothing has changed since yesterday.

    the site was upgraded from 4.0.3 to 4.7.. all was good until this morning.

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 18:51
    Daniel Bardi
    0

    Now getting another error when opening a content or media picker:

    Compiler Error Message: CS0618: Warning as Error: 'umbraco.dialogs.treePicker' is obsolete: 'Use the TreeControl instead. This does however get used by the TreeService when requesting the tree init url.'

    Any suggestions?

  • Eran Meir 401 posts 543 karma points
    May 05, 2011 @ 18:54
    Eran Meir
    0

    do you remember making any changes lately? do you get any error in the umbracoLogs table?

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 18:56
    Daniel Bardi
    0

    I only installed uComponents last night.. that was it.

    The dialogs were working then... site is secured so noone can touch it.

    This morning I got these errors.

    uninstalled uComponents, but problem is still there.

  • Eran Meir 401 posts 543 karma points
    May 05, 2011 @ 18:58
    Eran Meir
    0

    how about checking if uComponents is the problem,can you copy the website to your computer and try removing uComponents ?

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 18:59
    Daniel Bardi
    0

    Already did that.. no go!

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 19:00
    Daniel Bardi
    0

    I'm comparing /umbraco folder to  base 4.7

  • Eran Meir 401 posts 543 karma points
    May 05, 2011 @ 19:01
    Eran Meir
    0

    compare also umbraco_client

  • Eran Meir 401 posts 543 karma points
    May 05, 2011 @ 19:02
    Eran Meir
    0

    try also to copy the basic dlls of umbraco 4.7 to your bin directory (interfaces.dll cms.dll etc)

  • Dibar 92 posts 74 karma points
    May 05, 2011 @ 19:11
    Dibar
    0

    Check bin for dlls that don't belong. Maybe sort by date added or compare to a fresh 4.7 install.

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 19:11
    Daniel Bardi
    0

    Copied over 4.7 assemblies.. still have the error

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 19:35
    Daniel Bardi
    0

    Replaced all of /bin /umbraco and /umbraco_client folders from newly downloaded 4.7 from codeplex and still getting errors.

    Media picker dialog is giving me this error:

    Compiler Error Message: CS0618: Warning as Error: 'umbraco.controls.ContentPicker.Text' is obsolete: 'Use Value property instead, this simply wraps it.'

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 05, 2011 @ 19:49
    Lee Kelleher
    0

    Hi Daniel,

    I've not seen this specific problem before... but seems weird that you're getting these "Warning as Error" exceptions.

    Do you have any classes in your App_Code?

    Thinking that there might be something trying to compile at app-start/runtime? As any compiled assemblies would get that error flagged at compile time in Visual Studio right?

    Cheers, Lee.

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 20:02
    Daniel Bardi
    0

    app_code is empty... anything else?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 05, 2011 @ 20:10
    Lee Kelleher
    0

    Is there any stack-trace? Guessing not, otherwise you would have posted it.

    Could there be any way that any of the files got reverted back to v4.0.x?  I'm clutching at straws here - sorry.

    - Lee

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 20:12
    Daniel Bardi
    1

    found the problem... 

            <providerOption name="WarnAsError" value="true" />

    Changed to:

            <providerOption name="WarnAsError" value="false" />

    Don't know why that was on... 

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 05, 2011 @ 20:14
    Lee Kelleher
    0

    Glad that you got it sorted! Phew!

    Cheers, Lee.

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 20:15
    Daniel Bardi
    0

    Thanks to your comment about it being a warning.. gave me direction to look in.

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 20:21
    Daniel Bardi
    0

    This issue showed me that some of the pages are using obsolete methods... shouldn't the core team fix those?

    Event the contentpicker trees are using obsolete methods.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 05, 2011 @ 20:23
    Lee Kelleher
    0

    Not sure.

    My guess is that one of those where one of the core team reckon a method should be obsolete - but there is so much legacy code, it's simplier to keep it in place.  To me the Obsolete attribute just means there's a newer/better method in place - not that the existing method is broken.

    Cheers, Lee.

  • Daniel Bardi 927 posts 2562 karma points
    May 05, 2011 @ 20:25
    Daniel Bardi
    1

    Makes total sense... thanks for all your insight!  Love this community!

Please Sign in or register to post replies

Write your reply to:

Draft