when i try to open a URLCOnnection to a servlet i keep getting the below error message.<br>This worked not so long ago .. and no code has been changed<br>any one know why ... thanks.<br>Included below is the troublesome snippet of code :<br><br><br>ERROR MESSAGE :<br>com.ms.security.SecurityExceptionEx[Unknown]: cannot access "server_name" at com/ms/security/permissions/NetIOPermission.check (NetIOPermission.java)<br><br> at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)<br><br> at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)<br><br> at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java)<br><br> at com/ms/security/StandardSecurityManager.chkex (StandardSecurityManager.java)<br><br> at com/ms/security/StandardSecurityManager.checkConnect <br>(StandardSecurityManager.java)<br><br> at com/ms/net/wininet/WininetURLConnection.connect (WininetURLConnection.java)<br><br> at com/ms/net/wininet/http/HttpURLConnection.getOutputStream (HttpURLConnection.java)<br> at TEApplet.sendPostObject (TEApplet.java:156)<br> at TEApplet.sendObject (TEApplet.java:122)<br> at TEApplet.sendData (TEApplet.java:102)<br><br><br>#########################################################<br>CODE SNIPPET :<br>public InputStream sendPostObject(Serializable obj) <br> throws IOException {<br> URL servlet = new URL("/servlets/TheServlet"<br> URLConnection con = servlet.openConnection();<br> if (con == null)<br> con.setDoInput(true);<br> con.setDoOutput(true);<br> con.setUseCaches(false);<br> <br> // the error occurs at this line<br> ObjectOutputStream out = new <br> ObjectOutputStream(con.getOutputStream());<br> out.writeObject(obj);<br> out.flush();<br> out.close();<br> InputStream i = con.getInputStream();<br> return i;<br>}