Click here to Skip to main content
12,748,244 members (41,898 online)

SharePoint

 
Question[SOLVED] Unable to add webpart to page from script, but successfull from command line using same code Pin
_HawkeyeD5-Nov-12 10:41
member_HawkeyeD5-Nov-12 10:41 
AnswerRe: Unable to add webpart to page from script, but successfull from command line using same code Pin
ihoecken6-Nov-12 3:05
memberihoecken6-Nov-12 3:05 
GeneralRe: Unable to add webpart to page from script, but successfull from command line using same code Pin
_HawkeyeD6-Nov-12 5:04
member_HawkeyeD6-Nov-12 5:04 
AnswerRe: Unable to add webpart to page from script, but successfull from command line using same code Pin
_HawkeyeD9-Nov-12 7:30
member_HawkeyeD9-Nov-12 7:30 
Ok, so I feel kind of stupid here since I didn't think about it myself, but here's the cause and I hope it helps someone else who comes along with the same issue as I did.

When adding a solution and activating said solution in Sharepoint, before you can access this solution in say adding a webpart to a page, you must first RESET IIS. So during my testing I did not add any code to reset the IIS on the application Sharepoint servers. The only reason I can think of that explains why it worked in the code block was that perhaps I had reset IIS inadvertently during my testing. I can't explain it otherwise. Stupid mistake and I have hung my head in shame, but there you go.
QuestionAdding users to the default members group Pin
Aptiva Dave1-Nov-12 9:17
memberAptiva Dave1-Nov-12 9:17 
AnswerRe: Adding users to the default members group Pin
ihoecken4-Nov-12 21:54
memberihoecken4-Nov-12 21:54 
GeneralRe: Adding users to the default members group Pin
balaji10108-Nov-12 1:12
memberbalaji10108-Nov-12 1:12 
AnswerRe: Adding users to the default members group Pin
ihoecken8-Nov-12 1:21
memberihoecken8-Nov-12 1:21 
GeneralRe: Adding users to the default members group Pin
balaji10108-Nov-12 1:33
memberbalaji10108-Nov-12 1:33 
AnswerRe: Adding users to the default members group Pin
ihoecken8-Nov-12 1:36
memberihoecken8-Nov-12 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 16 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid