when ever i do coding in Infopath on my local machine it work fine........and when i try from hosted server it gives error on this line
using (SPSite SiteCollection = new SPSite(https://OnlineServices.sharepoint.apac.microsoftonline.com))
ERROR
The Web application at ...