Category: ASP.Net

Saving Image from Image URL

Overview Create image object and save it into file by URL. Depending on your needs it can be two solutions: Solution 1 when you need to make some manipulations with the image object (resize, crop, etc) before saving to disk: 1. get Stream from URL using WebRequest class 2. Create Image object from stream using

BING Maps integration

Follow the below steps to Integrate BING Maps in your ASP.Net application Step1: Create a C# ASP.NET Empty Web Application in Visual Studio 2010. Step2: Add a Default ASP.NET page into the application. Step3: Add a table to the page with two cells in a row. The left cell is for Bing Maps and the

IIS 404 error when viewing ASPX pages

Root Cause By default, when IIS is installed on any version of the Windows Server 2003 family, IIS only serves static content (HTML). Resolution To permit IIS to serve dynamic content, the administrator must unlock this content in the Web service extensions node in IIS Manager. To do this, the administrator must either enable a

WCF Security

Overview Services and service consumers are often on opposite sides of trust boundaries. A trust boundary is a physical or virtual boundary within which actual levels of trust can vary. A trust boundary can be an application process, a machine, or even the Internet itself. When SOAP messages flow through a trust boundary, they may

Detect MITM attacks and Secure your clients

The following code demonstrates a dynamic URL generator written in C# for use in ASP.NET, implemented as a static class method, and its corresponding parser module that singles out MITM attackers by detecting multiple IP address mismatches originating from the same IP address. To keep the code simple so that it makes sense easily, the
SiteLock