cannot explicitly call operator or accessor

4 posts, 0 answers
  1. Joe
    Joe avatar
    1 posts
    Member since:
    Dec 2013

    Posted 13 Mar 2014 Link to this post

    Sorry if this has already been answered, but I can't find it in the forum (or anywhere else):

    I've used JustDecompile before, but only for some DLLs. Now I'm trying to decompile an old WInForms app, and the generated code has lots of lines that look like :
        if (this.button1.get_Text() == "Migrate")

    When I try to compile the generated code, I get hundreds of errors like :
    "System.WIndows.Forms.Control.Text.get': cannot explicitly call operator or accessor"

    Is this a bug in JustDecompile, or is there a way to handle this without making a lot of manual changes?

  2. Vladimir
    Vladimir avatar
    2 posts
    Member since:
    Mar 2011

    Posted 17 Mar 2014 in reply to Joe Link to this post

    Hello Joe,

    It seems that this DLL was built against framework DLLs that are missing at the moment on your machine (or at least JustDecompile fails to resolve them). get_ and set_ methods are compile generated property accessors, so the code should look like:

    this.button1.Text = "...", etc.

    This can be fixed when you explicitly specify the path to the referenced DLL: Go to your assembly in the assembly tree of JustDecompile, then navigate to "References". All of the unresolved referenced assemblies will have exclamation mark. You can specify their path by: right click on the unresolved assembly and then clicking on the "Locate Assembly" menu item.

    Please let us know if this doesn't fix the issue for you.

    Kind regards,
    The Telerik team
  3. rohit
    rohit avatar
    1 posts
    Member since:
    Mar 2018

    Posted 31 Mar 2018 in reply to Vladimir Link to this post

    StringBuilder stringBuilder = new StringBuilder();
                bool allowPublish = reportHandler.get_Session().get_Report().get_AllowPublish()


    'ServiceClient.Reporting.ReportHandler.Session.get': cannot explicitly call operator or accessor


    i cant handle this error and didn't solve this issue

  4. Dimitar
    Dimitar avatar
    41 posts

    Posted 03 Apr 2018 Link to this post


    As my colleague had previously said, you must resolve the unresolved assembly references to fix this issue.

    To resolve assembly references, right click on an unresolved assembly ( marked with THIS icon ) , located in the "References" tab of a loaded assembly and provide a path to the needed reference.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top