Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: Removing components from controls Pin
Robert Rohde28-Apr-06 23:37
Robert Rohde28-Apr-06 23:37 
GeneralRe: Removing components from controls Pin
valiovalio28-Apr-06 23:46
valiovalio28-Apr-06 23:46 
Questionhow to embed flash in asp.net Pin
pujareddy28-Apr-06 20:46
pujareddy28-Apr-06 20:46 
QuestionQuestion about creating a class Pin
augie021628-Apr-06 18:52
augie021628-Apr-06 18:52 
AnswerRe: Question about creating a class Pin
Colin Angus Mackay28-Apr-06 21:46
Colin Angus Mackay28-Apr-06 21:46 
Questionread DWORD registry Pin
picasso228-Apr-06 18:33
picasso228-Apr-06 18:33 
QuestionHow can I retrieve conversation text from Yahoo Messenger by API Pin
WindOpen28-Apr-06 18:24
WindOpen28-Apr-06 18:24 
QuestionDevelopeing SharePoint web parts problem Pin
dratcha28-Apr-06 17:25
dratcha28-Apr-06 17:25 
I started developing a web part but am having some security issues with it. I am trying to do some really simple stuff as shown below.
<br />
SPWeb mySite = SPControl.GetContextWeb(Context);<br />
output.WriteLine(SPEncode.HtmlEncode(mySite.Users.Count.ToString()));


It is the SPWeb line that is giving me the security error which is:
Request for the permission of type Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c failed.

I started by making the webpart safe in the wss_minimaltrust.config file by using the Public key. That didn't work so I upgraded the trust level to Medium in the web.config file just to see what would happen. it still broke so I upgraded the trust level to Full. It still broke!

This code is used by many others all over the web but I haven't seen them having any issues. Full trust should allow everything so why am I still getting a security error?

Oh, and I did iisreset between each security change just to be sure it took hold.

Thanks for any help!
AnswerRe: Developeing SharePoint web parts problem Pin
dratcha1-May-06 12:07
dratcha1-May-06 12:07 
QuestionmciSendString working only on main Thread? Pin
mikker_12328-Apr-06 16:14
mikker_12328-Apr-06 16:14 
QuestionAudio conversation via network - problem! Pin
eyej28-Apr-06 14:40
eyej28-Apr-06 14:40 
AnswerRe: Audio conversation via network - problem! Pin
mikker_12328-Apr-06 15:13
mikker_12328-Apr-06 15:13 
GeneralRe: Audio conversation via network - problem! Pin
eyej29-Apr-06 3:11
eyej29-Apr-06 3:11 
GeneralRe: Audio conversation via network - problem! Pin
mikker_12329-Apr-06 6:54
mikker_12329-Apr-06 6:54 
GeneralRe: Audio conversation via network - problem! Pin
eyej29-Apr-06 13:28
eyej29-Apr-06 13:28 
GeneralRe: Audio conversation via network - problem! Pin
mikker_12330-Apr-06 6:25
mikker_12330-Apr-06 6:25 
GeneralRe: Audio conversation via network - problem! Pin
eyej1-May-06 6:48
eyej1-May-06 6:48 
GeneralRe: Audio conversation via network - problem! Pin
DandyRUR10-Nov-06 6:18
DandyRUR10-Nov-06 6:18 
QuestionPage Setup Dialog & Margins Pin
Graham Dean28-Apr-06 12:39
Graham Dean28-Apr-06 12:39 
AnswerRe: Page Setup Dialog & Margins Pin
Robert Rohde28-Apr-06 22:23
Robert Rohde28-Apr-06 22:23 
GeneralRe: Page Setup Dialog & Margins Pin
Graham Dean29-Apr-06 0:39
Graham Dean29-Apr-06 0:39 
QuestionC# and MS Access parameter passing Pin
achrafus28-Apr-06 11:37
achrafus28-Apr-06 11:37 
AnswerRe: C# and MS Access parameter passing Pin
Graham Nimbley28-Apr-06 11:49
Graham Nimbley28-Apr-06 11:49 
QuestionXmlSerializer problem in .NET 2.0 Pin
Wjousts28-Apr-06 11:02
Wjousts28-Apr-06 11:02 
AnswerRe: XmlSerializer problem in .NET 2.0 Pin
Ravi Bhavnani28-Apr-06 11:44
professionalRavi Bhavnani28-Apr-06 11:44 

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.