Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Database on a network, Pin
Sean8929-Apr-06 8:38
Sean8929-Apr-06 8:38 
GeneralRe: Database on a network, Pin
jgfhutg26-May-10 3:06
jgfhutg26-May-10 3:06 
QuestionHow can I get text from class YHTMLContainer? Pin
WindOpen28-Apr-06 23:47
WindOpen28-Apr-06 23:47 
QuestionODBC C# Pin
XeoN-Kc28-Apr-06 23:25
XeoN-Kc28-Apr-06 23:25 
AnswerRe: ODBC C# Pin
DougW4830-Apr-06 9:26
DougW4830-Apr-06 9:26 
QuestionPlug-in based development… and docking windows ala Visual Studio 2005 Pin
anderslundsgard28-Apr-06 23:08
anderslundsgard28-Apr-06 23:08 
AnswerRe: Plug-in based development… and docking windows ala Visual Studio 2005 Pin
Robert Rohde28-Apr-06 23:43
Robert Rohde28-Apr-06 23:43 
GeneralRe: Plug-in based development… and docking windows ala Visual Studio 2005 Pin
anderslundsgard3-May-06 4:09
anderslundsgard3-May-06 4:09 
QuestionRemoving components from controls Pin
valiovalio28-Apr-06 23:03
valiovalio28-Apr-06 23:03 
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 

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.