Posts

Showing posts from January, 2013

How to test a SF webService?

We can simply initialize the webService class and invoke the webService method in APEX.  Example: @isTest private class testMyWebService {         static testMethod void testMyWebSvc()   {       SampleApexWebSvc.AccountInfo act = new Sampl eApexWebSvc.AccountInfo();       act.AcctName = 'test';       act.AcctNumber = 123;       SampleApexWebSvc.createAccount( act );              Account[] a = [select AccountNumber from Acc ount where AccountNumber = '123'];       System.assertEquals(a.size(), 1);   } } Reference: http://boards.developerforce.com/t5/Apex-Code-Development/Testing-APEX-Web...

COM Add-in Deployment Issues

Environment:  Visual Studio 2010, Office 2010, Excel 2010 Error: "Another version of this product is already installed"? Solution: 1.       Try uninstalling the application from "Add and remove programs" 2.       If the above step doesn't resolve the issue, run EXE from the command prompt with /x option 3.       Delete Application cache On Vista, it is located at C:\Users\ \AppData\Local\Apps\2.0 4.       As a last step take a backup of the registry. Search for "DSExcelAdd-in" and delete the corresponding entries. PLEASE TAKE THE BACKUP as needed. (esp. Keys under VSTA and VSTO (HKEY_USERS) Error: Name: From: file:///C:/publish/DSExcelAdd-in.vsto ************** Exception Text ************** System.ArgumentException: Value does not fall within the expected range. at Microsoft.VisualStudio.Tools.Applications.Deployment...