Tag Info

New answers tagged

0

To add a custom action to an existing feature: Add a new "Empty Element" to your project (there's no option to directly create a custom action element) Add manually all the Custom Action XML declaration in it (your first piece of code in your question) Double-click your feature. You should see a double-panel window. In the left pane, you see existing ...


1

This webpart requires Enterprise features to be enabled in your environment. If this is not enabled the webpart will not be available. Here's a guide on how to do that If you still have problems after that check this link for another possible cause


2

After _api you specify web which is the SPWeb. To get the site collection features, you can instead use _api/site/features to get the SPSite features. The full list of features for on-prem is usually retrieved via Get-SPFeature, but that requires Shell Admin Access which would be unavailable in SharePoint Online. The feature IDs should be the same across ...


1

One feature containing all these three types i.e. columns, content type and list instance; should be enough.


0

Run the code using SPSecurity.RunWithElevatedPrivileges(). This way code will get executed using App pool account. If the app pool account is part of the group Performance Log Users, the code will be able to write in the ULS logs.


0

If you are using visual studio ultimate to develop your feature IntelliTrace would be an option. IntelliTrace team done a great job to plugin SharePoint events with IntelliTrace .


4

In order to make ULS logging work for a AppPool account that is not Administrator you have to add your AppPool user to "Performance Log Users" group. And restart the Application Pool that is using this AppPool account.


1

You really shouldn't be debugging in production. Instead, add additional logging capabilities to your app and do more defensive coding. By defensive coding, I mean that if your code is calling some method to get an object, check to see if you got the object before doing anything with it.



Top 50 recent answers are included