Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a WebProvisioned event receiver and i do some work in this event receiver. When i create new webs from powershell, it seems the event receiver does not fire? Is this an expected situation? How can i make event receiver work, when i am creating items from powershell?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I have done it in the past so it should be working fine.

  1. Are you running cmd-let with full (administrator) permissions?
  2. Also make sure, account creating the webs have enough privileges to execute (i.e. full control of web application)?
  3. Would you mind posting your webtemp xml, because there could be a problem with provisioning providers in webtemp xml, I have seen it so many times in the past.
share|improve this answer
    
thank you, the problem was my powershell window was open for a long time. so it does not take the updated version of the event receiver. –  ozdogan Nov 23 '12 at 9:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.