|
|
 |
BOOK: Real World SharePoint 2007 (SharePoint MVP) ISBN 978-0-470-16835-6
 | This is the forum to discuss the Wrox book Real World SharePoint 2007: Indispensable Experiences From 16 MOSS and WSS MVPs by Scot Hillier, Robert Bogue, Adam Buenz, Andrew Connell, Stacy Draper, Luis Du Solier Grinda, Todd Klindt, Jason Medero, Dustin Miller, Shane Perran, Joris Poelmans, Heather Solomon, Nick Swan, Jan Tielens, Mike Walsh, Shane Young; ISBN: 9780470168356 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Real World SharePoint 2007 (SharePoint MVP) ISBN 978-0-470-16835-6 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

December 22nd, 2007, 12:30 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
CalculatorWrapper
In Ch07 I uploaded the .aspx control to a new folder called usercontrols and recompiled the BasicWebParts project and put the new dll in the bin.
When I try to drop the control onto a page, the page errors and says:
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermissio n, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.
What do I need to do to get the permissions to work?
|

December 23rd, 2007, 01:19 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Let me clarify a little.
I added the CalculatorWrapper webpart to the project.
Rebuilt and dropped in the site's bin.
Then I made a usercontrols directory and dropped the SimpleCalculator.ascx control in the new folder.
That's when I got:
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermissio n, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.
Now in the sites web.config I've added:
<SafeControl Src="~/usercontrols/*" IncludeSubFolders="True" Safe="True" AllowRemoteDesigner="True" />
to the safe controls section and changed permission level to WSS_Medium.
Now it just says "Request failed" or "Unexpected Error"
So I changed in the web.config so I can see the trace of the error:
<SafeMode MaxControls="200" CallStack="false"
to
<SafeMode MaxControls="200" CallStack="true"
and
<customErrors mode="On" />
to
<customErrors mode="Off" />
The error is "System.Security.SecurityException Request Failed" or something like that.
It's happening I think when the calcwrapper tries to load the simplecalc.ascx control.
This is so fustrating. I'm moving on to another book.
I've had it with this.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| CalculatorWrapper Revisited |
RJMiller |
BOOK: Real World SharePoint 2007 (SharePoint MVP) ISBN 978-0-470-16835-6 |
3 |
September 4th, 2008 04:06 PM |
|
 |