Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
GeneralSetting the toolbar's background transparented Pin
yyylny11-Dec-04 1:25
yyylny11-Dec-04 1:25 
GeneralRe: Setting the toolbar's background transparented Pin
lj_rules12-Dec-04 20:51
lj_rules12-Dec-04 20:51 
GeneralRe: Setting the toolbar's background transparented Pin
yyylny13-Dec-04 3:50
yyylny13-Dec-04 3:50 
Generalchanging a DateTime to dd/mm/yyyy Pin
steve_rm10-Dec-04 23:10
steve_rm10-Dec-04 23:10 
GeneralRe: changing a DateTime to dd/mm/yyyy Pin
Atal Upadhyay11-Dec-04 0:45
Atal Upadhyay11-Dec-04 0:45 
Generaluneable to sort my listview Pin
michael.wikstrom10-Dec-04 21:22
michael.wikstrom10-Dec-04 21:22 
GeneralRe: uneable to sort my listview Pin
Daniel Turini11-Dec-04 21:21
Daniel Turini11-Dec-04 21:21 
GeneralWin2k Socket Security Exception Pin
Tristan Rhodes10-Dec-04 21:10
Tristan Rhodes10-Dec-04 21:10 
I had a problem earlier about constructing sockets in win2k, that I managed to resolve. However, further down the code, I suffered from an additional problem with Permission Exceptions. I have the following error message (It's a bigun!):

System.Security.SecurityException: Request for the permission of type System.Net.SocketPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=<token> failed.
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.Net.Sockets.Socket.CheckCacheRemote(SocketAddress socketAddress, EndPoint remoteEP, Boolean isOverwrite)
at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
at Ping_Library.Ping.PingHost(String host) in \\<file location="">:line 197


I tried adding unrestricted socket permission to it using the following line:

<br />
SocketPermission se = new SocketPermission(<br />
System.Security.Permissions.PermissionState.Unrestricted);<br />


This failed to fix the issue. Does anyone know how to resolve this?

Cheers

Tris
QuestionDuplicated items in watch window ? Pin
sachinkalse10-Dec-04 18:23
sachinkalse10-Dec-04 18:23 
AnswerRe: Duplicated items in watch window ? Pin
Heath Stewart10-Dec-04 20:55
protectorHeath Stewart10-Dec-04 20:55 
GeneralBeta 2.0 limitations Pin
Yaakov Davis10-Dec-04 17:46
Yaakov Davis10-Dec-04 17:46 
GeneralRe: Beta 2.0 limitations Pin
Heath Stewart10-Dec-04 20:46
protectorHeath Stewart10-Dec-04 20:46 
GeneralRe: Beta 2.0 limitations Pin
Yaakov Davis10-Dec-04 22:22
Yaakov Davis10-Dec-04 22:22 
QuestionHow to Create static Enum like ConnectionState Pin
trevor_ledet10-Dec-04 15:21
trevor_ledet10-Dec-04 15:21 
AnswerRe: How to Create static Enum like ConnectionState Pin
Heath Stewart10-Dec-04 20:51
protectorHeath Stewart10-Dec-04 20:51 
GeneralRe: How to Create static Enum like ConnectionState Pin
trevor_ledet11-Dec-04 5:52
trevor_ledet11-Dec-04 5:52 
GeneralMOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 15:19
Tyrus18210-Dec-04 15:19 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd10-Dec-04 16:28
Skynyrd10-Dec-04 16:28 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:03
Tyrus18210-Dec-04 17:03 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd10-Dec-04 17:07
Skynyrd10-Dec-04 17:07 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:15
Tyrus18210-Dec-04 17:15 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:14
Tyrus18210-Dec-04 17:14 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd10-Dec-04 17:17
Skynyrd10-Dec-04 17:17 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:29
Tyrus18210-Dec-04 17:29 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:44
Tyrus18210-Dec-04 17: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.