1
Answer

Security Problem

obinna_eke

obinna_eke

20y
1.8k
1
Hi this is the error I am getting, I am a C++ Programmer migrating to C-Sharp pls tell me how to configure socket programming in or .net configuration / c sharp This was the error I got below D:\WINDOWS\MICROS~1.NET\FRAMEW~1\V11~1.432>Class1.exe Unhandled Exception: System.Security.SecurityException: Request for the permissi on of type System.Net.SocketPermission, System, Version=1.0.5000.0, Culture=neut ral, PublicKeyToken=b77a5c561934e089 failed. at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet granted Set, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permT oken) at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride) at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, S tackCrawlMark& stackMark) at System.Security.CodeAccessPermission.Demand() at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start() at POP3Server.Class1.Main(String[] args) The state of the failed permission was: D:\WINDOWS\MICROS~1.NET\FRAMEW~1\V11~1.432>
Answers (1)