Help: WEBSPERE VS IE When IE runs .NET's Windows control recently the younger brother to engage in project, B / S, compare, need to use the server J2EE in J2EE, what Afiqi or Java-based publishers such as Tom Cats, no IIS, the client is a WindowsForm control web page written in IE, and a control is naturally involved in the control download and automatic update first is to run. The machine is installed .NET frame 1.1, enter, then enter [Control Panel] - [Management Tool] - [Microsoft .NET Framework 1.1 Configuration] and enter [My Computer] - [Running Security Policy] - [Computer] - [Computer] Code group] - [all_code] In its property dialog, set it [Rights Set] to [FullTrus]
Originally referring to related materials Show the HTML page code for this control is
Electronic medical record editor Demo title> head> Object> body> HTML>
However, copying DocumentLib.dll to the server running J2EE, which does not display correctly, and then I feel that there is a problem that the publisher has to compile a port listener, and the difference is that the ContentType returned by HTTP is different. As for why this difference I didn't study, I added a JSP on the server, the file named DLL.jsp, the code is as follows ------------------- -------------------------------------------------- ---------------------------- <% @ Page ContentType = "text / html; charset = GBK"%> <% try {COM .haitai.emr.common.Debug.println ( "DLL.jsp"); response.setContentType ( "application / octet-stream"); // set the return file type FileInputStream hFile = new FileInputStream (pageContext.getServletContext (). GetRealPath ("/") "//documentlib.dll"); // Open file system.out.println in a BYTE stream (pageContext.getServletContext (). getRealPath ("/") "// Emrtext // EmrtextDocumentlib.dll "); int i = hfile.available (); // Get file size byte data [] = new byte [i]; hfile.read (data); // read data hfile.close (); servletoutputstream TOCLIENT = response.getOutputStream (); // Get object toclient.write (data) to the client output binary data; // Output data TOCLIENT.FLUSH (); Toclient.close ();} catch (illegalstateException e) {e. PRINTSTACKTRACE ();} catch (throwable ext) {ext.printstacktrace ();}%> <% @ PAG e import = "java.lang. *"%> <% @ page import = "java.util. *"%> <% @ page import = "java.io. *"%> -------- -------------------------------------------------- -------------------------------------------
HTML code becomes
Electronic medical record editor demonstration title> head> Object> body> html> result page can display correctly In
The problem now appears is that this page is open to connect DLL.jsp, it is estimated to check the latest version. I can use the application configuration file to avoid this repetition operation based on some information. The server can be placed on the server. WebConfig.xml, HTML page is changed to the following
electronic medical record editor Demo title> head> Object> body> html> But I don't know how to write this webconfig.xml, I use sn.exe makecert.exe signcode.exe to have a strong name to the DLL after processing The file can be thrown into the Windows2000's Assembly Cachfall, and then try to write a WebConfig.xml, it can be used as "configuration> Dependentassembly> askIMBLYBINDING> runtime> configuration> There is also a problem, in some machines, the control is slow, carefully studied, discovery the program in "System.Resources.Resourc Emanager.getObject () "stays for a long time, I still have" System.configtreeParser.Parse (String, String, Boolean) ", I don't know what is the problem or other reasons for the existence or other reasons. Question Summary: 1. How to automatically download and update the .NetWindows control running in IE, it is best to rely on