#1. Develop and Debug in Sandbox Isolation Mode (its faster)
If you ever want your plug-ins to work on CRM Online then you need to make sure you're plug-ins work in sandbox isolation mode. And you will be surprised to learn what works and doesnt work when in sandbox mode. These are just a few of the things I've run into that don't work in sandboxed plug-ins
- Calling a web-service using IP address or localhost.
- Creating the WCF service proxy class by calling its constructor.
- CRM LINQ queries
- Calling a web service using default credentials
Also, it is now actually easier to debug plug-ins when they are sand-boxed. When registering a plug-in, you have three options of where the plug-in can be stored.
- On Disk - The plug-in assembly is stored on the CRM server file system (in the Server\Bin\Assembly folder).
- Database - The plug-in assembly is actually uploaded to the CRM server and stored in the CRM database.
- GAC - The plug-in is stored in the global assembly cache on the CRM server.