Showing posts with label Share Point. Show all posts
Showing posts with label Share Point. Show all posts

11 September 2013

IIS7 : An error occurred on the server when processing the URL. Please contact the system administrator

Hello Friends,

If you have worked with Classic ASP with IIS5 or IIS6, that is easy to recognize the error occurred in code.  IIS send the error information to client which show the file name, line no. and other information to understand where and what error occurred.  But now a days if you use IIS7 and trying to publish your classic ASP web application in IIS7, you may see a message like -

An error occurred on the server when processing the URL. Please contact the system administrator

After investigating a bit here and there I find out because scriptErrorSentToBrowser by default is false in IIS7 so we are unable to get the proper error message.  We need to change the default value(false) to true for the scriptErrorSentToBrowser flag in IIS7. Here is how to change it -

Open your cmd prompt "As Administrator" and run the following command -

%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true

now you'll be able to see the proper error message. I would suggest you to set the flag to false after debugging because sometimes it shows very critical imp details to end user that can be harmful. You can use the same command just replace the 'true' by 'false'

%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:false

Happy knowledge sharing.. :)


6 November 2012

Remove/Uninstall Feature in SharePoint 2010

Sometime we require to remove/ uninstall the unwanted feature previously added by us. Its little bit tricky. but not Impossible.
For this you require to get the Id of the feature.

1.  Open the -> "SharePoint 2010 Management Shell"

2. Use the command "GET-SPFeature"



3. Scroll down and find the feature you what to remove. Get the Id of that feature.
  Let consider I want to remove the feature named as "VisualWebPartWatch_Feature1"
  with Id "a463dd22-7c4c-4b17-9a46-eb8f1be1a716".

4. Now use the following cmd "stsadm.exe -o uninstallfeature -id id of the feature got in step3"

5.  Remember feature should be deactivate to uninstall it. Or you have to use the "-force" keyword
  after giving the Id of the feature got in step 3.


6. Now its done. Happy Coding. :)

23 October 2012

Remove "Title" column from Share Point 2010 list


This is all about how to remove the "Title" column
from SharePoint 2010 list

In actually  we can not delete it, but yes we can hide
it in such a way that It feels like, title column is deleted.
 
1. Select the List. Click on the "List" tab in top ribbon, followed by Click on "List Settings" then
   -> Advanced settings

2. Select the "Yes" Radio button for "Allow management of Content types",
    followed by "Ok" button










3. After clicking "Ok" button, you will get previous setting page. In that page
   under "Content Type" click on link named as "Item"














4.  Click on "Item" will give you a  new page, Here click on the "Title" column name.
   










5. On the new screen under the"Custom Setting" select the radio button with the
  text "Hidden (Will not appear in form)"











7. Now save all the changes by clicking "Ok" button. Go back to the list and add
  new Item, you will the screen like this. Title is there at screen but not in the entry form.

 8. If you still want to remove the title column from the page also follow the below step.

 9. Select your List. Click on the "List" tab in top ribbon, followed by Click on "Modify View".
 10. Select At this page you have to uncheck the check box with the title column.

 11. After un-checking the title column click on "Ok" at the bottom of the page, and now see "Title" column is not visible at the page as well as entry form.

















12. Its done. Happy coding.