Questions tagged [safecontrols]
8 questions
11
votes
10 answers
Sharepoint web part: type could not be found/registered as safe
I have a SharePoint web part (essentially just a "Hello World" app) that I just created and am having a problem deploying it. I have signed the .dll, created the .dwp, and registered it as a safe control in web.config. I am able to add it to the Web…

Geo Ego
- 1,315
- 7
- 27
- 53
3
votes
3 answers
Sharepoint 2010 register control as safe through wsp
I created a "Hello World" Sharepoint 2010 solution using VS2010. It contains just a feature, and a webpart containing a label. I registered the webpart as a safe control in the "Properties" window of the webpart, in VS2010.
When I deploy my…

Diana
- 101
- 2
- 5
2
votes
3 answers
How to identify an unsafe web part / control
I get an error when trying to edit a page in a SharePoint site. Using WinDbg I see that actual error is:
Microsoft.SharePoint.ApplicationRuntime.SafeControls+UnsafeControlException
This looks to me like I have a control on the page which is not…

Jason Evans
- 28,906
- 14
- 90
- 154
1
vote
1 answer
SharePoint 2010: Setting SafeControl "SafeAgainstScript" property on web part installation
Is there any way to set the SafeAgainstScript property of the SafeControl entry in the Web.config file to true upon installation / upgrade of the web part? (it always defaults to false)
The SafeControl entry should appear as follows:
user592501
1
vote
2 answers
Add and Remove Web.config SafeControls Programmatically
I am using this link
http://msdn.microsoft.com/en-us/library/bb861909.aspx
The adding a SafeControl to the web.config works good. But the removing does not work! What is wrong?
Here in comments you can see the same problem…

NieAR
- 1,385
- 6
- 20
- 31
1
vote
2 answers
Add ContentEditorWebPart to the list of Safe Controls
I need to add the ContentEditorWebPart in the list of SafeControls because of this. Unless there's a better way...
The problem is, I don't want to add it manually, i want to do this automatically when I deplou my solution.
So I tried adding my safe…

moi_meme
- 9,180
- 4
- 44
- 63
0
votes
1 answer
how to safe call a control from another thread using Timers.Timer
I read various posts, and made a practice project, but it does not works.
The form have a button and a text box with a default text 'Updated 0 times'. On button click starts the timer and each time update the text with the number of times the text…

user2150033
- 83
- 5
0
votes
1 answer
How to get a safecontrol entry into manifest.xml with WSPBuilder project
Upon taking the default sharepoint master page for MySite, making some changes, and making a wsp out of it with WSPBuilder, I come to these errors in my logs:
http://spoint/MySite/_catalogs/masterpage/MySite.master - An unexpected error has been…

andrew
- 2,235
- 3
- 18
- 22