Jun 20th, 2009 | No Comments

Zipping was never so easy in .Net. Check out this project on codeplex, http://dotnetzip.codeplex.com/

Here are the features of the DotNetZip Library,
DotNetZip works on PCs with the full .NET Framework, and also runs on mobile devices that use the .NET Compact Framework. Create and read zip files in VB, C#, or any .NET language, or any scripting environment. DotNetZip supports these scenarios:
- an ASP.NET app that dynamically creates ZIP files and allows a browser to download them
- a Windows Service that periodically zips up a directory for backup and archival purposes
- a WPF program that modifyies an existing archive – renaming entries, removing entries from an archive, or adding new entries to an archive
- a Windows Forms app that creates AES-encrypted zip archives for privacy of archived content.
- An administrative script in PowerShell or VBScript that performs backup and archival.
- a WCF service that receives a zip file as an attachment, and dynamically unpacks the zip to a stream for analysis
- creating zip files from stream content, saving to a stream, extracting to a stream, reading from a stream
- creation of self-extracting archives.

Njoy coding :)

Written by Ajay Matharu

June 20th, 2009 at 1:42 pm

Apr 21st, 2009 | 2 Comments

Source Error:

Line 1: <%@ Application Codebehind=”Global.asax.cs” Inherits=”Global’” %>

This error occurs when you create a new web application in asp.net using visual studio.net and without compiling the application, you try to browse a page in the application.

This occurs because of the Application DLL not having been formed.

asp.net will look in the Global Assembly Cache, and then in the application’s local bin directory. If it can’t find the class with the name you specified then it won’t load. When you do a codebehind file in Visual studio, you are writing a base class for your aspx file to inherit from – the HTML template you write in the aspx is inlined into the dynamically generated subclass’s Render method.

Even if you don’t put any code in your page, you still need to compile it as long as you put the Inherts Global in your Page directive.

To resolve this, Built the application using Ctrl + Shift + B or use F5 to build the application and then try to browse the application. The error will be resolved.