Sunday, November 14, 2010

Stsadm -o activatefeature gives Access to the Path Denied Error

When trying to activate a feature using stsadm -o activatefeature, It gave me: Access to the Path <feature path> is denied." Error
Stsadm -o activatefeature Access Denied

Then I used -name switch instead of -filename and it worked!


You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Wednesday, November 10, 2010

How to Enable Anonymous Access in SharePoint 2010

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.
enable anonymous access sharepoint 2010 web application

 click "Authentication Providers", Click on "Default" link
Enable Anonymous Access - Authentication Providers

Check "Enable Anonymous Access" under Anonymous Access Section > click "Save"
Enable Anonymous Access in SharePoint 2010

Site Collection Change:
Now, W need to Do the change in Site collection level. Click on "Site Actions >  Site Permissions
enable anonymous access sharepoint 2010 site

Click "Anonymous Access" , Select "Entire Web Site" at Anonymous Access Section
enable anonymous access sharepoint 2010 list or Library



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Friday, November 5, 2010

Page Redirect using CEWP JavaScript in SharePoint

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");

 </script>

OK. How do I edit this page again? Because It doesn't me to allow editing, it redirects me on the fly... Well you have to  go to the web part maintenance page( Just append ?contents=1 at the end of the URL in browser!) and remove this web part, edit again add the web part with changes!

Generally, for performance reasons, its a good idea to place redirects at ISA/Publishing server level. or at least in IIS Level.

SharePoint redirect before page load
The main disadvantage over the above methods is delay! We've to wait until the web part loads. What we can do to mitigate the delay is: Take-off all content from default.aspx and place the below code in it (via SPD):
<%@ Page language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> 

<script type="text/javascript">

window.location.href = "http://www.sharepoint.crescent.com/sites/salesv2/default.aspx";

</script> 
If you want a entire site to be redirected, consider: Redirect to another site collection in SharePoint

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Monday, November 1, 2010

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

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!
Edit SharePoint List forms in browser

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
Trick to Edit SharePoint List forms in browser

Now, you will get editable page, You can Add web parts!

Add Web Part to SharePoint List form Pages
This trick works on even SharePoint 2010 and in SharePoint 2013 also!

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


You might also like:

Related Posts Plugin for WordPress, Blogger...