Using Assembly in ASP.NET – Simplest Example

This example demonstrates the simplest method for using a .NET assembly in an ASP.NET web page.

1) Create a new file “helloWorld.aspx” in your web site’s root directory. Using a text editor, add this:

<%@ Page Language="C#" %>
<%@ Import Namespace="Chilkat" %>

<title>ASP.NET Hello World</title>
<body bgcolor="#FFFFFF">

	Chilkat.Ftp2 ftp = new Chilkat.Ftp2();


2) Create a “bin” directory in the same directory where the helloWorld.aspx file is located.

3) Copy the managed assembly (in this case it is ChilkatDotNet2.dll) into the “bin” directory.

4) That’s it. Browse to The time to load the first page hit will be significantly longer than subsequent page loads. Errors are most likely permission related. Feel free to send error listings to