3

Whenever I am trying to preview homepage, this is the screen that I am seeing, but when I open the same page in the experience editor, the homepage does open, why am I not able to check the preview. And this happens not just with the homepage, but with every item in the Sitecore tree.

enter image description here

Edit #1 I am using Sitecore Rocks Version 4.0.2,here is a screenshot of the same: enter image description here

1
  • You rock @x3mxray, it works after changes to browse.aspx
    – ARVIND DAS
    May 1 '20 at 11:34
6

You have an error in file "WebService/Browse.aspx". This is Sitecore Rocks service.

As I see on your screenshot you are using Sitecore version 9.3. Parameterless constructor for LoggedInArgs was obsolete in sitecore 9 and completely removed in 9.3.

It seems that you use old version of Sitecore Rocks. Just install the latest version (or remove it at all if you dont need it and the error will disappear).

Sitecore Rocks versions 4.x are compatible with Sitecore 9.3

https://github.com/Sitecore/Sitecore.Rocks/releases

Edit #1 I downloaded and extracted Browse.aspx from latest version - it uses LoggingInArgs() without params. Looks like Sitecore Rocks bug.

enter image description here

Edit #2: I installed latest version of Sitecore Rocks on my clear Sitecore 9.3 to test this issue.

enter image description here

BUT

When I navigate to page preview in sitecore it works good:

enter image description here

It is because Browse.aspx should not be hitted from sitecore. This issue is reproduced only by opening browser from Sitecore Rocks in Visual Studio.

enter image description here

Solution:

You can fix it manually by adding current HttpContext as a parameter. Open sitecore\shell\WebService\Browse.aspx and add Request.RequestContext.HttpContext as a parameter in line 43:

var args2 = new Sitecore.Pipelines.LoggedIn.LoggedInArgs(Request.RequestContext.HttpContext);

It is tested and works good for me.

7
  • I am using Sitecore rocks version 4.0.2, but still upvoted. might be useful for others. Feb 19 '20 at 9:29
  • 1
    You are rigth. I downloaded and extracted Browse.aspx from latest version - it uses LoggingInArgs() without params. Looks like Sitecore Rocks bug. It would be nice if your open an issue github.com/Sitecore/Sitecore.Rocks/issues
    – x3mxray
    Feb 19 '20 at 10:52
  • 1
    Add a hotfix to my answer.
    – x3mxray
    Feb 19 '20 at 12:02
  • Thanks a ton, x3mxray, this fix worked perfectly, so glad we have such dedicated people like you in our community :) Feb 19 '20 at 12:19
  • I have also logged a ticket, so that we don't have this bug in further versions :) Feb 19 '20 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.