kwizcom banner advertisement

Cannot open log for source ‘Custom_Web_Part’. You may not have write access

2:43 PM    , ,
In a SharePoint site, When I logged in as an administrator, all pages accessed successfully. But as a regular user it scolded me with Access denied Error :-) Enabled the stack trace and Turned off custom error message page to get the actual error. Error detail: System.ComponentModel.Win32Exception: Access is denied . Below it, in the stack trace, another exception popped: InvalidOperationException: Cannot open log for source ‘My_Web_Part’. You may not have write access.   This is because non-administrators do not have the permission to write on the event log. So for this problem, just grant non-administrator users permission to write on the event log. Open registry editor by typing "regedit" in run box. Navigate to: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Eventlog\Application Look for CustomSD, it should contain string:  O:BAG:SYD:(D;;0xf0007;;;AN)(D;;0xf0007;;;BG)(A;;0xf0007;;;SY)(A;;0x7;;;BA) (A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;
Cannot open log for source ‘Custom_Web_Part’. You may not have write access Cannot open log for source ‘Custom_Web_Part’. You may not have write access Reviewed by Salaudeen Rajack on 2:43 PM Rating: 5

How to Add Banner image in SharePoint - Simple way

12:36 PM    , , ,
Banners are the great way to add branding to SharePoint site. There are lot of ways to add banner in SharePoint, Here I'm going to illustrate a easy way to add Top banner in SharePoint. In SharePoint 2010: In SharePoint 2010, CSS class you have to pick and modify is: .s4-title .s4-title { background-image: url("/_layouts/images/banner.png") #FECF2C no-repeat; } For MOSS 2007: In SharePoint 2010, the CSS class you have to pick and modify is: .ms-globalbreadcrumb So, override this class as: .ms-globalbreadcrumb { background-image:url("/_layouts/images/banner.jpg"); padding:2px 10px 80px 5px; }
How to Add Banner image in SharePoint - Simple way How to Add Banner image in SharePoint  - Simple way Reviewed by Salaudeen Rajack on 12:36 PM Rating: 5

You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page.

4:36 PM    , ,
Internet explorer displays the message at top "You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page."? Fix is: This is because Internet Explorer Enhanced Security Configuration. So simply disable IE ESC to fix this issue. Go to "Start >> Administrative Tools >> Server Manager >> Configure IE ESC >>Select Off for Administrators and click OK. <DIV class=noindex>You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page.</DIV> This may happen you you have IE developer tool and disabled scripts! just uncheck "Scripts" under Disable Menu to rectify. Adding site to Trusted Sites zone on Internet Explorer also fixes the problem.
You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page. You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page. Reviewed by Salaudeen Rajack on 4:36 PM Rating: 5

Exclude SharePoint Folders from Antivirus

5:20 PM    , , ,
In SharePoint servers, some of the SharePoint, IIS, SQL Server folders should be excluded from anti-virus protection in order to avoid performance hits! such as: (C:\ may be other drive as well) C :\Program Files\Microsoft Office Servers\14.0\Logs  C :\Program Files\Microsoft Office Servers\14.0\Data. C :\Program Files\Microsoft Office Servers\14.0\Bin C :\Program Files\Microsoft Office Servers\14.0\Synchronization Service,  C:\Documents and Settings\Default User\Local Settings\Temp, etc There are many First party/third party products offers Antivirus plug-in for SharePoint: http://www.microsoft.com/forefront/sharepoint/en/us/product-overview.aspx http://us.trendmicro.com/us/products/enterprise/portalprotect/index.html Thanks to: http://vspug.com/bobbyhabib/2008/04/22/moss-anti-virus-guidelines/ Microsoft KB addressing this issue: http://support.microsoft.com/kb/952167 For SQL Server: http://support.microsoft.com/kb/309422 IIS: http://support.microsoft.com/kb/82174
Exclude SharePoint Folders from Antivirus Exclude SharePoint Folders from Antivirus Reviewed by Salaudeen Rajack on 5:20 PM Rating: 5

Log Errors to Windows Event Log or SharePoint Log Programmatically

11:56 AM    , , , , ,
Using Windows Event - Logs During development its worth to log errors either in Windows Event log or in SharePoint log files for further troubleshooting. try { //Do something } catch (Exception ex) { SPSecurity.RunWithElevatedPrivileges(delegate { System.Diagnostics.EventLog.WriteEntry("My Custom Solution", ex.Message + " Inner Exception: " + ex.InnerException + " Call Stack: " + ex.StackTrace, EventLogEntryType.Error); }); } Beside this you can also use Trace.write or Debug.write Use SharePoint Log Files : try { //Do something } catch (Exception ex) { //In SharePoint 2010 SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("My Custom Solution", TraceSeverity.Unexpected, EventSeverity.Error), TraceSeverity.Unexpected, ex.Message, ex.StackTrace); //In MOSS 2007 Microsoft.Office.Server.Diagnostics.PortalLog.LogString("Exception Occurred: {0} || {1}", ex.Message, ex.StackTrace); }
Log Errors to Windows Event Log or SharePoint Log Programmatically Log Errors to Windows Event Log or SharePoint Log Programmatically Reviewed by Salaudeen Rajack on 11:56 AM Rating: 5

All People Link in SharePoint 2010

11:46 AM    , , , ,
"All People" is really helpful if you want to see who are all the people have access to site and if you want to delete the user from site completely in SharePoint 2007, as shown below. But in SharePoint 2010 All People Link is missing!!!  Don't panic. We can get it back by a simple trick. So What is the trick?  The trick is: Navigate to : "http://Your-SharePoint-site/_layouts/people.aspx?MembershipGroupId=0"
All People Link in SharePoint 2010 All People Link in SharePoint 2010 Reviewed by Salaudeen Rajack on 11:46 AM Rating: 5

Extract line by Line in Nintex workflow

12:35 PM    ,
Through lazy approval in Nintex workflow, I had to extract the approver's comment line by line. Using Regular expressions in Nintex workflow we can accomplish that. Regular expressions:  Here the "ApproverComments" is a collection variable. You can extract from the collection and update the list using For-each & Run-If conditions Get the 3rd line:
Extract line by Line in Nintex workflow Extract line by Line in Nintex workflow Reviewed by Salaudeen Rajack on 12:35 PM Rating: 5

Fix for SharePoint Datasheet Error: The list cannot be displayed in Datasheet view for one ore more of the following reasons

6:58 PM    , , , ,
When I try to open a SharePoint 2010 list in Datasheet View, It scolded me by throwing below error: The list cannot be displayed in Datasheet view for one ore more of the following reasons:    - A datasheet component compatible with Microsoft SharePoint Foundation is not installed.    - Your Web browser does not support ActiveX controls.    - A component is not properly configured for 32-bit or 64-bit support. Or you may face the similar issue: "The list is displayed in Standard view. It cannot be displayed in Datasheet view for one or more of the following reasons: A datasheet component compatible with Microsoft SharePoint Foundation is not installed, your browser does not support ActiveX controls, a component is not properly configured for 32-bit or 64-bit support, or support for ActiveX controls is disabled." First, you need to have an Office installation in order to use the datasheet view. Yes, You may have Ms-Office installed. but the Edit in Datasheet view
Fix for SharePoint Datasheet Error: The list cannot be displayed in Datasheet view for one ore more of the following reasons Fix for SharePoint Datasheet Error: The list cannot be displayed in Datasheet view for one ore more of the following reasons Reviewed by Salaudeen Rajack on 6:58 PM Rating: 5
Stsadm -o activatefeature gives Access to the Path Denied Error Stsadm -o activatefeature gives Access to the Path Denied Error Reviewed by Salaudeen Rajack on 12:39 PM Rating: 5

How to Enable Anonymous Access in SharePoint 2010

2:41 PM    , , , , ,
How to enable anonymous access in SharePoint 2010? To Enable Anonymous access in SharePoint 2010, We need to do the change in Central admin & Site collection: Central Administration Change: Go to: Central Administration > Application Management > Manage Web Applications , and Select your web application by highlighting it.  click " Authentication Providers ", Click on " Default " link Check " Enable Anonymous Access " under Anonymous Access Section > click " Save " Site Collection Change: Now, W need to Do the change in Site collection level. Click on " Site Actions >  Site Permissions Click " Anonymous Access " , Select " Entire Web Site " at Anonymous Access Section
How to Enable Anonymous Access in SharePoint 2010 How to Enable Anonymous Access in SharePoint 2010 Reviewed by Salaudeen Rajack on 2:41 PM Rating: 5

Page Redirect using CEWP JavaScript in SharePoint

4:24 PM    , , , , , ,
There are some situations, where we need to place re-directs in SharePoint pages. OK.. How to do that? Simple! We can redirect using content editor web part in SharePoint. Just add a content editor web part, and place the below JavaScript code: <script type="text/javascript"> // <![CDATA[ alert("This application has been moved to replaced with an another version, please update all existing bookmarks. You will be redirected momentarily."); // ]]> </script> <meta http-equiv="refresh" content="0;url=https://MyNewURL/default.aspx"> This will redirect to another page. You can use SharePoint's native method also: SharePoint redirect page in 5 seconds <script type="text/javascript"> function redirect() { //sharepoint 2010 redirect page 5 seconds setTimeout("location.href='https://www.NewSite.com'", 5000); } _spBodyOnLoadFunctionNames.push("redirect");
Page Redirect using CEWP JavaScript in SharePoint Page Redirect using CEWP JavaScript in SharePoint Reviewed by Salaudeen Rajack on 4:24 PM Rating: 5

Trick to Edit SharePoint List Forms to Add webpart (NewForm.Aspx, EditForm.aspx, AllItems.aspx, etc) in browser

2:42 PM    , , , , ,
By default, SharePoint doesn't allow us to edit the List forms in browser. See the Edit Page from Site action is greyed out! However, Its possible to edit SharePoint list form pages! Here is the trick to edit SharePoint List Forms (like DispForm.aspx, NewForm.aspx, EditForm.aspx) in browser. Just append: &toolpaneview=2 in the URL Now, you will get editable page, You can Add web parts! This trick works on even SharePoint 2010 and in SharePoint 2013 also!
Trick to Edit SharePoint List Forms to Add webpart (NewForm.Aspx, EditForm.aspx, AllItems.aspx, etc) in browser Trick to Edit SharePoint List Forms to Add webpart (NewForm.Aspx, EditForm.aspx, AllItems.aspx, etc) in browser Reviewed by Salaudeen Rajack on 2:42 PM Rating: 5

Extract Assembly DLLs from GAC

6:17 PM    ,
Want to access GAC assembly folder's file system (say for Copying a DLL). Here is the shortcut to copy/extract GAC assemblies: Go to Start >> Run >> type "c:\windows\assembly\gac_msil" Now, You can get the GAC Files in File system. You can Extract the DLLs from here.
Extract Assembly DLLs from GAC Extract Assembly DLLs from GAC Reviewed by Salaudeen Rajack on 6:17 PM Rating: 5

Creating Custom Menu with Sub-Menus under Site Actions in SharePoint

6:04 PM    , ,
We can add custom menu in site actions with our most accessed URL's like "Quota Increase", "Owner change", etc. like the below screen. But, Why we need to do this? Well, It's a good user friendly addition, they don't need to search for a link to raise a quota increase or ownership change or etc. Security trimming - This will avoid incorrect persons raising the request and rejections. Mistyped URLs – This will avoid  wrong URL's being entered.  On clicking the link, we can direct them to the request form with auto filled URL's of the site. Here is the code: using System; using System.Collections.Generic; using System.Text; using System.Web.UI.WebControls; using Microsoft.SharePoint.WebControls; using Microsoft.SharePoint; namespace Crescent.SharePointSupport { public class SiteActionsMenu : WebControl { protected override void CreateChildControls() { SPContext .Current.Site.CatchAccessDeniedException =
Creating Custom Menu with Sub-Menus under Site Actions in SharePoint Creating Custom Menu with Sub-Menus under Site Actions in SharePoint Reviewed by Salaudeen Rajack on 6:04 PM Rating: 5

Manage Blocked File Types in SharePoint

5:03 PM    , , , ,
Recently another user came to me saying, He got the below error while he tried uploading a file to SharePoint: "The following file(s) have been blocked by the administrator" This is because: The user tried uploading .OCX files, which were in the blocked file type. Here is what I did to allow the OCX files. Blocked File types option in SharePoint is a great security/governance feature.  You don't want your users to upload executable or Movie files to SharePoint libraries, Isn't it? Unblocking Blocked File Types: Manage blocked file types SharePoint Open central administration site. Go to Operations tab. Find a section named "Security Configuration". Under this section, you can find a link for "Blocked file types". Select the Web Application that you would like to modify from the drop down list You will now have a large list showing all of the blocked file extensions, allowing you to add and remove them from the list. In th
Manage Blocked File Types in SharePoint Manage Blocked File Types in SharePoint Reviewed by Salaudeen Rajack on 5:03 PM Rating: 5

List Aggregation-Rollup across site collections (Even across Farms) using Dataview, Web Services in SharePoint

1:55 PM    , , ,
With SharePoint web services and dataview web part, You can aggregate the lists/document libraries/etc between sub-sites/site collections/web applications/even across forms. So, Here I'm going to walk through how to achieve this using a simple example. Lets say I've two sites namely:  Site1  and Site2 and I've a Announcement List 1 in Site 1 and Announcement List 2 in Site2. Now, What I want to create is: in my portal, I would like to create a consolidated view which has both the announcements from site 1 and site2. Follow the below steps. 1. Open the SharePoint designer and Create a Aspx page 2. Go to Dataview >> Click on "Manage data sources" 3. Expand the "XML Web Services" node in Data source Library" and click on Connect to a web service 4.  Enter the web service URL:  http://sitename/_vti_bin/lists.asmx , click on "Connect Now" then, select the GetListItems Method. Enter the List Name. Supply the Login param
List Aggregation-Rollup across site collections (Even across Farms) using Dataview, Web Services in SharePoint List Aggregation-Rollup across site collections (Even across Farms) using Dataview, Web Services in SharePoint Reviewed by Salaudeen Rajack on 1:55 PM Rating: 5

Add Favicon for SharePoint sites

2:56 PM    , , , ,
What is FavIcon? Favicon appears next to the URL in the address bar and in bookmarks menu next to the site name will show with the icon. In SharePoint Favicons are good way to add some additional branding to SharePoint sites. How to create a FavIcon ? Simple. Take your company logo or image, convert it to .ICO format, upload to Images folder in 12 or14 hive, Edit the master page. you can try the free sites to create your favIcon as well: http://tools.dynamicdrive.com/favicon/ http://www.favicon.cc/ Here are the detailed steps to add FavIcon in SharePoint: Copy the favicon.ico file in your SharePoint WFEs "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\ " or you can upload to a SharePoint library even. For SharePoint 2013, FavIcon located at: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\IMAGES Edit the master page (typically default.master or V4.master): For SharePoint 2010: Find a
Add Favicon for SharePoint sites Add Favicon for SharePoint sites Reviewed by Salaudeen Rajack on 2:56 PM Rating: 5

How to find the SharePoint Site Template being Used

6:30 PM    , , , ,
How to find the site template of an existing SharePoint site? There are many ways to find the site definition being used for a site, Here are some: 1. Use SharePoint Manager to find SharePoint site template. Navigate thru the site, and look for "Web Template" as in the below picture. 2. Stsadm: Get current site template in S harePoint stsadm.exe -o enumallwebs -databasename <content-db-name> > Template.txt Now, Open the template.txt file and check for template. This trick can be used to find site template name for SharePoint 2010 even. 3. Sql Server: SQL Server is the back-bone of SharePoint, So lets use the SQL Query to determine SharePoint site template used: SELECT Title , WebTemplate FROM dbo.Webs WHERE Title = 'Your Site' 4. You can programmatically use SharePoint Object Model to find site template of SharePoint site. Just query  SPWeb.WebTemplateId . Here is the reference table for SharePoint 2007: Template ID Code Description 1
How to find the SharePoint Site Template being Used How to find the SharePoint Site Template being Used Reviewed by Salaudeen Rajack on 6:30 PM Rating: 5
Powered by Blogger.