Learn how to easily execute and fetch Salesforce reports as json through Salesforce Reports and Dashboards REST API Using C#.
How To: Integrate Salesforce with .NET application
Learn how to integrate Salesforce with .NET application using SOAP APIs and perform CRUD operation on Salesforce database directly through SOQL.
ASP.NET with MySQL: Configuration Error (MySql.Web.v20)
Integrating MySQL db with a ASP.NET and got stucked in “Parser Error Message: Could not load file or assembly ‘MySql.Web.v20, Version=6.9.4.0′”. Learn how to address this through MySQL .NET Connector installation.
Purge cache without restarting IIS server
See how this small C# code snippet can purge cache without restarting IIS server. This can prove quite handy particularly for Production environments.
Logging Exceptions In-Depth
Exceptions are safeguards to deal with any unexpected or exceptional situations and logging them helps finding the root cause of issues during runtime. Significance of logging becomes even more critical on production where resources to debug are very scarce. So, to have in-depth information on what gone wrong and where play a very important role …
Continue reading “Logging Exceptions In-Depth”
Implement CDN with ASP.NET website
There’s no reason not to use a CDN service like such as Akamai, Amazon CloudFront or Windows Azure, especially when most of end-user response time is spent downloading static resources like images, css and scripts. Regardless of your CDN choice, once you have your assets in place you should mirror the same folder structure on …
Continue reading “Implement CDN with ASP.NET website”
Get Absolute URL – Web Application
Getting fully qualified absolute path of ASP.NET application is always tricky and problem arises when code moves across various platform. Hard coding the Application Path is no where a good solution here. The URL syntax is: scheme://domain:port/path?query_string#fragment_id Two solutions that you can look for in such scenarios: 1. Add an entry in your web.config file …
Continue reading “Get Absolute URL – Web Application”
Upload Binary data as HTTP POST
Below is the ASP.NET C# implementation of Uploading binary data like images as POST request to target URL: private bool UploadFile(string PostURL) { try { int contentLength = fileUpload.PostedFile.ContentLength; byte[] data = new byte[contentLength]; fileUpload.PostedFile.InputStream.Read(data, 0, contentLength); // Prepare web request… HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(PostURL); webRequest.Method = "POST"; webRequest.ContentType = "multipart/form-data"; webRequest.ContentLength = data.Length; using …
Continue reading “Upload Binary data as HTTP POST”
Why State Management needed?
The reason behind this question lies in HTTP protocol. Strange but it’s true. HTTP is a stateless protocol. Each request is serviced as it comes; after the request is processed, all of the data is discarded. No state is maintained across requests even from the same client. This would typically mean that all information associated …
Continue reading “Why State Management needed?”