I spent some time to see if I can make glimpse and nhibernate.glimpse work within ablecommerce and it turned out to be successful. Both Glimpse and Nhibernate.Glimpse are available as nuget packages but I choose to manually install them. The resulting patch is very small which includes four DLLs and few updates in web.config. By default Glimpse works on localhost but security policy can be adjusted to make it work on remote/live website.
Attached is patch containing modified web.config and required dlls for GoldR11.
NOTE: Glimpse doesn't work in Medium Trust so make sure you are running under full trust. In order to check your trust level simply login to AbleCommerce Admin and Go Dashboard -> Help. Make sure in there you see ASP.NET TRUST: Unrestricted
How to use?
1- Install the patch in same directory structure
2- After completing the install browse following URL
Code: Select all
http://yourwebsite/Glimpse.axd
4- Now Ctrl+F5 (hard refresh) store home.
5- At page bottom you would see Glimpse Icon and tool bar. If you click Glimpse icon it will open FireBug like tabs providing different useful information.
6- Open Nhibernate tab to see queries ran again current request.
7- For remote website you will have to uncomment following configuration in web.config
Code: Select all
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
<!-- UNCOMMENT TO ALLOW GLIMPSE REMOTLY
<runtimePolicies>
<ignoredTypes>
<add type="Glimpse.Core.Policy.ControlCookiePolicy, Glimpse.Core"/>
</ignoredTypes>
</runtimePolicies>
-->
</glimpse>