Microsoft KB Archive/179001

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 11:10, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


Article ID: 179001

Article Last Modified on 6/14/2006



APPLIES TO

  • Microsoft Visual J++ 1.0 Standard Edition
  • Microsoft Visual J++ 1.1 Standard Edition
  • Microsoft Software Development Kit for Java 2.02
  • Microsoft Software Development Kit for Java 2.01
  • Microsoft Software Development Kit for Java 2.02
  • Microsoft Software Development Kit for Java 3.0
  • Microsoft Software Development Kit for Java 3.1
  • Microsoft Software Development Kit for Java 3.2



This article was previously published under Q179001

SYMPTOMS

When programming an Applet that uses JDBC, everything works in the development environment. When the Applet is run outside of the development environment, the Applet throws a com.ms.security.SecurityExceptionEx.

CAUSE

JDBC requires access to resources that are available only when outside the set of security restrictions placed on non-trusted Java Applets, also known as the "sandbox." Regular Applets cannot access files on the client's hard drive, access other network sockets, or print. JDBC requires file input/output. When trying to access a file on the client, the SecurityExceptionEx is thrown.

RESOLUTION

In order for the Applet to work properly, you will need to create a cabinet file and digitally sign it (see references for more information). Then you need to add certain method calls in the Applet to "assert permissions" (please see article reference below) for file input/output.

STATUS

This behavior is by design.

REFERENCES

For additional information on making your Java Code trusted in Microsoft Internet Explorer and other information, please see the following articles in the Microsoft Knowledge Base:

193877 HOWTO: Make Your Java Code Trusted in Internet Explorer

175622 PRB: SecurityExceptionEx Exception Running a Java Applet


For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Keywords: kbprb KB179001