An error occurred while installing and loading the outlook plug-in created by using vsto.

Source: Internet
Author: User
Recently, due to work requirements, vsto2005se was used to create an outlook2003 small plug-in, mainly to check the mail or something. Using vsto to create such office software plug-ins is relatively easy and fast, it is also better to work with office, but it encountered a problem during the release, running and debugging well on your own development machine. Program The package is installed on the user's machine but cannot be loaded. After checking some information, I found a solution, hoping to help you solve some problems and provide some clues.
After the development is complete, the installation package is created using the package project automatically generated by vsto. I thought it would be done as long as I got the user's machine and installed it, the user's outlook didn't load my plug-in. At first, I thought it was anti-virus software that blocked my plug-in. After the test, I found that no, and found that someone encountered the same problem on the Internet, the main reason is. net Code One of the solutions to the trust permission problem is as follows:
Generally, only the server is installed.. NET Framework runtime components, so the graphical tool Microsoft. net Framework 2.0 configuration (.. NET Framework sdk)to set the Code trust limit. Therefore, we use the command line program caspol.exe to configure the code (in. net Framework installation directory), caspol -? You can see the detailed usage.
The plug-ins of this office software are generally one or several DLL files. Our setting method is to create a BAT file to automatically set
C:
Cd % SystemRoot % \ Microsoft. NET \ framework \ v2.0.50727
Caspol-Q-u-Ag 1-URL "file: // C:/program files/addins/*" fulltrust-n "addins"
Replace "addins" in the previous line with the installation directory of your plug-in. As a result, all the code under this directory will be added to the trust code of your machine.
Install the vstor (vsto runtime component) and vsto Language Pack, and then install the plug-in. Start outlook and you will see that your plug-in is running properly.

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.