The so-called Smart Client

Source: Internet
Author: User
The Smart Client was so powerful by Microsoft a few years ago that many people did not dare to start it. I am also one of them. I have nothing to worry about recently,
I made some research on it and found that it is so similar to web applications using ActiveX.
The following describes how to deploy a Smart Client Program:
1. Develop your Windows application.
To ensure less interaction with the client environment (such as file access, registry access, database access, and use of Com objects), your program
It is best to make the logic processing part into a Web Service.
2. Release your program to the Web server. This is very simple. Note that the relevant components must be copied.
3. Client Configuration
This is the core part of the Smart Client architecture. I will focus on this.
If your Windows program uses a Web Service, you must ensure that the client can access this Web Service.
For example, left:

By comparing the left and right parts in the figure, you will find that they are similar. If they have version upgrades, you will also find that it is so difficult to update.
You need to manually clear the files in the Client Buffer. It is estimated that someone has solved this problem.

The client configures. NET runtime Security

This part is the core of the Smart Client application. It took me a day to understand it. It can be configured in two ways,
The first command line tool is CasPol.
Caspol /? You can see the usage of the command parameters.
I often use:
Caspol-m-ag All_Code-url http: // localhost/* FullTrust-n Shark
This command is used to trust all. Net programs from localhost.
Second, the Microsoft. NET Framework Configuration program.
Click Start Menu/control panel/Administrative Tools/Microsoft. NET Framework Configuration
Find Runtime Security Policy/Machine/Assembly/All_Code and add
 
Enter the name of the Code group.

Then, Set Condition Type to url and enter the address of the Web server you want to control.
 
Finally, select Permission Set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.