Monday, June 14, 2010
Query String library
Just want to share or perhaps to remind myself of a very good Query String manipulation library made by Uwe Keim
Monday, May 31, 2010
Sitecore file explorer timeout
Recently I have been trying to fix the issue with Sitecore timing out when opening File Explorer which only happens on the Production environment.
I compared all configuration files, dlls files, sitecore files and etc to no avail. Until i try to delete "Temp_old" folder which i believe a backup of temp folder. The folder is huge and it takes forever to delete. That's when I realized that perhaps that's the folder that Sitecore has been waiting to load through File Explorer however because it took forever, it timed out. I then moved this folder away from webroot and voila it works!
As general rules of thumb, backup should have been done away from Webroot.
Anyway I am very glad that it finally resolved!
Wednesday, May 26, 2010
User Manager error when AD is configured
In one of my project, i encountered issue with User Manager when AD is configured. The error is as shown below
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
However, this error is only happening in my dev environment and the issue seems to be when with the AD configuration. Sitecore threw an error when it tries to load user's state. The code below is the code that deal with this loading
and it is located in UserManager.aspx file which is located at
So two solution will be "Edit the AD field configuration" or "Remove the code from the aspx" file
Sunday, May 16, 2010
XSS vulnerability
A library that can be use to prevent XSS issue is Microsoft AntiXSS library. It is preventing XSS issue by encoding the text.
Favicon not appearing for IE
Few days ago, I have been having issue with Favicon not appearing only for IE. The solution that i have tried and worked is when i move my favicon from image folder up to the webroot folder.
I have also researched that favicon will not appear in IE6 if the website hasnot been bookmarked.
Monday, May 10, 2010
Disabling Indexing
There are times where i need to disable indexing for reason such as performance (e.g. when installing huge files)
The following line is the setting for doing just that.
Default
<setting name="Indexing.UpdateInterval" value="00:05:00" />
Set it to 00:00:00 to disable
<setting name="Indexing.UpdateInterval" value="00:00:00" />
Sunday, May 9, 2010
CryptographicException: Padding is invalid and cannot be removed.
Somethings to try when error such as below occur:
1. Recycle application pool
2. Clear 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.] System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) +7599262 System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +208 System.Security.Cryptography.CryptoStream.FlushFinalBlock() +33 System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) +225 System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) +246 Sitecore.Security.Authentication.AuthenticationHelper.GetCurrentUser() +125 Sitecore.Security.Authentication.AuthenticationHelper.GetActiveUser() +14 Sitecore.Security.Authentication.AuthenticationProvider.GetActiveUser() +15 Sitecore.Security.Authentication.AuthenticationManager.GetActiveUser() +24 Sitecore.Pipelines.HttpRequest.UserResolver.Process(HttpRequestArgs args) +22 (Object , Object[] ) +61 Sitecore.Pipelines.PipelineMethod.Invoke(Object[] parameters) +36 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +141 Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +134 Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args) +50 Sitecore.Nexus.Web.HttpModule. (Object sender, EventArgs e) +252 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 |
Subscribe to:
Posts (Atom)