Baretail – a great tool for montoring changing logs
Brian Canzanella blogged about Baretail in this article http://www.csharptocsharp.com/log4net-configuration-for-rockin-loggin
It doesn't look too special in the screenshot, but if you are looking for a tool which can monitor your logs live in Windows, this tool is fantastic.
Single sign on in Sitecore
Even after going through the Active Directory and Custom Providers documentation with a fine toothed comb, there was still an issue with Single Sign On. Every time I hit sitecore/admin/LDAPLogin.aspx - the 'configuration test' for SSO, which had anonymous authentication disabled and Windows Integrated authentication turned on, I was presented with a pop up login box. After several failures using login details I knew to be correct, I was presented with a 401.1 Error Page.
It turns out this is due to custom host headers being used on a local site. You can read about this in more detail here at Microsoft support.
Add Windows Authentication Provider IIS 7 Windows 7
http://weblogs.asp.net/zroiy/archive/2008/08/17/missing-windows-authentication-provider-for-iis-7-on-windows-server-2008.aspx describes how to set up Windows Authentication providers in IIS 7 on Windows 2008; the image below shows how it's done in Windows 7
Event validation error in ASP.NET
I ran into this .NET error yesterday:
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
This article may help if you have a page where the contents of drop down list boxes are being updated after the page has loaded - i.e. with JavaScript.
As K Scott Allen says, "Event validation checks the incoming values in a POST to ensure the values are known, good values. If the runtime sees a value it doesn’t know about, it throws an exception." http://odetocode.com/blogs/scott/archive/2006/03/20/asp-net-event-validation-and-invalid-callback-or-postback-argument.aspx
I had two Drop Down Lists which were being populated via AJAX after page load. The approaches to solving eventValidation errors I saw around on the .NET and StackOverflow:
- Disable event validation: bad unless you have a workaround for all elements on the page, and some users have said that this has stopped other events firing.
- Update the Render method: in some cases this will definitely work, in my case - it may be possible that I could have updated the validation with all possible values, something I haven't tried
- Replace DropDownList controls with select tags: probably not a good idea but could be used for a quick fix
- Some users have recommended adding an ASP.NET AJAX UpdatePanel around the affected control(s)
In my case I added all possible values of the drop down on page load and removed the AJAX functionality, as a quick fix, because the issue was occurring on a production site.
Sitecore CryptographicException: Padding is invalid and cannot be removed.
Something to try if you get the error below: Recycle the application pool for the given website. It worked for me.
Update: If that doesn’t fix your problem, try clearing your cookies.
Server Error in '/' Application.
Padding is invalid and cannot be removed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
Source Error:
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:
[CryptographicException: Padding is invalid and cannot be removed.]
Sitecore issue – not all users being displayed in the User Manager
I know there more than 15 users should be returned by my providers, but only the first 15 are being displayed in the User Manager.
If I search using a search string such as "a" the results are correctly filtered to those including only "a". Some of the users returned in this result were not displayed in the previous listing. They are valid users and should have appeared when all users were being displayed.
Sometimes the users available shows "Page 1 of 2 (15 of 20 users)". Clicking on the right arrow to view the next page will display a different 15 users and in the bottom right hand corner users available is updated to "Page 2 of 1 (15 items)"
In the release notes for Sitecore,
October 21, 2009
Released Sitecore CMS 6.2.0 rev.091012 (Initial release). Change log. Important Changes:
User Manager
The performance of the User Manager has been improved again after 6.1 Update-1 had removed a previous optimization. This fix will, however, re-introduce the problem that the User Manager in certain situations, for example after creating a new user, will display an incorrect total number of users in the footer.
The Sitecore installation in question is using version 6.1.0 (rev. 090630)
Working theory: we need to update our Sitecore instance.