Thursday, January 27, 2011

Get detailed sharepoint error - i.e. File Not Found. at Microsoft.SharePoint.Library

Here is the best way to find out the detailed error of sharepoint.
I was strugling with sharepoint errors for a long time and I have tried lots of options(trace log, log file, event viewer, etc) but nothing has goiven me the exact error.
Finally I got the very good tool which is giving detailed error, and it throw error on scree as soon as any Moss error occured on moss server.

Here is the error I was getting and I tried alot to find out that what is the meaning of this error or which file or template I am missing. but you can not get info from most of general log resources.

Error:
File Not Found. at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
at Microsoft.SharePoint.ApplicationPages.TemplatePickerUtil.ApplyWebTemplateAndRedirect(SPWeb Web, String strWebTemplate, Boolean bSharedNav, Boolean bOnTopNav, Boolean bOnQuickLaunch, Page page)
at Microsoft.SharePoint.ApplicationPages.NewSubwebPage.BtnCreateSubweb_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Finally I got the SPTraceViewer on codeplex (http://sptraceview.codeplex.com/). this SPTraceView does analyses in real time the trace messages coming from all MOSS components and it prompt you on machine.

See the attached screen, How detaled error it is giving for the same error message I have posted above.



Enjoy SPTraceViewer and once again thanks for the codeplex's developer for making such a nice tool.

Enjoy GreenCoding @ www.code4green.com

Monday, January 24, 2011

Single-Quote('), double-quote ("), and Tilde (~) keys not recognizing in first hit

Hi,
I have seen this issue in some of the laptops, and the issue is that Single-Quote('), double-quote ("), and Tilde (~) keys not recognizing in first hit. I have searched over the web than I have found that lots of people are facing the same problem.
SO I thought I can write a blog for this issue.
My Laptop's configuration is:
OS - Windows 7 Home Premium, Brand- Acer, Model - Aspire 5741, Processor - Intel Core i3 M350
Problem - From the first day onward I am having this issue. First I was pressing twice these keys and in 2nd time it was writing the 2 characters(',",~).
Reason: Still I am looking the reason. Once I will have that I will post here.
Resolution: I have found the workaround. Keep typing as you do normal typing. So if you hit the key(which has the problem) it will not show at that time, but as soon as you press different key, it will show both typed characters.
i.e. I am typing with the same laptop which has this issue, and for test I have typed the following: "Human Resources". I have typed normally without any issue and it typed correctly.
The only issue I am having in this way: Space bar is not getting recognised in first hit after these keys(",',and ~).
I will keep doing more research and try to contact with Acer with this issue. Once I will have more info I will post here.
Please post your reply if you have the same issue.

Enjoy Green Coding @ www.code4green.com