Tagged Questions
0
votes
1answer
22 views
Developing a custom NewForm
I have created a custom layout in _layours/PhoneBook/createform.aspx and then wrote the following code to run upon activation:
private void newAddFormForMembers(SPWeb web)
{
SPList ...
2
votes
1answer
117 views
SPListCollection.EnsureSitePagesLibrary() throwing SPException (specified title already exists in this Web site)
I am attempting to call SPListCollection.EnsureSitePagesLibrary() upon FeatureActivated. The method is throwing the following exception:
Microsoft.SharePoint.SPException: A list, survey, ...
3
votes
4answers
8k views
Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>
I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
0
votes
1answer
406 views
SPWebApplication is null in Feature Reciever
in this code variable _service is null. Any idea what's wrong? It was working before without any problems...
private SPWebApplication _service;
...
_service = properties.Feature.Parent as ...
3
votes
3answers
3k views
FeatureActivated event receiver giving access denied when trying so set WebApplication property
When a Site event feature is activated I am trying to set some properties on the web application. My feature uses this value.
public override void FeatureActivated(SPFeatureReceiverProperties ...
3
votes
2answers
196 views
Feature Activation Logic (Prevent Activation)
I have three site collection features used to set branding throughout the site collection. I want to prevent the accidental activation of one of the features if one of the three is already activated; ...
1
vote
2answers
114 views
Backup a file while custom feature activated?
We have a custom application page "custom.aspx" on the Layout folder, would like to rename the original file "custom.aspx" to "custom_bak.aspx" before the updated/modified custom application page ...
