in Search
Welcome to Advenet Sign in | Join | Help

Browse by Tags

All Tags » C#.NET 2.0
  • Send mail via SMTP with System.Web.Mail

    I was looking for a way to send reports from an web application and I found a lot of code on the net, but the new System.Net.Mail from .NET 2.0 doesn't work with Gmail... so I've searched more and found a lot of good stuff on CodeProject. So here it is the class that I write based on those articles, simple and easy. The only problem is that it ...
    Posted to .NET Diary (Weblog) by Aleph on July 17, 2006
  • Code access protection using Evidence

    If you work with multiple assemblies and you want to make sure no one uses your code by calling methods from other applications you can use strong names, first you have to sign with your private key all your components and application that you deploy to the client. If you want your code to be safe obfuscation is required too. So lets suppose I ...
    Posted to .NET Diary (Weblog) by Aleph on June 21, 2006
  • [AlephFS] File checksum using Adler32

    Like the hash provider I need a function that will check for the integrity of the files managed by the web service. But CRC, MD5 and other checksum algorithms eat up a lot of CPU time and memory. For my checksum function I've decided to use the Adler32 algorithm.The method that I am posting here works with any file size, as a remark, if you have ...
    Posted to .NET Diary (Weblog) by Aleph on June 5, 2006
  • Adler32.cs

    This class is part of #ziplib. Computes Adler32 checksum for a stream of data. An Adler32 checksum is not as reliable as a CRC32 checksum, but a lot faster to compute. The specification for Adler32 may be found in RFC 1950.(ZLIB Compressed Data Format Specification version 3.3) From that document: ''ADLER32 (Adler-32 checksum) This ...
    Posted to .NET Diary (Weblog) by Aleph on May 31, 2006
  • Hash Provider

    When dealing with message into an application, and the message that you are receiving or sending is over a not trusted channel you should think about a way to make sure that the message has not been altered. This is why cryptographic hash functions are used. More on cryptographic hash function you can find here. Here is a function in C# that ...
    Posted to .NET Diary (Weblog) by Aleph on May 30, 2006
  • IIS v6 Manager Class

    Handy class if you plan to create sites from your .net application. There are xml comments on it, so if you need more details on how to use it let me know, I'll give you an example. Here comes the code :) using System; using System.DirectoryServices; using System.ServiceProcess; /// <summary> /// IIS Services Schema /// ...
    Posted to .NET Diary (Weblog) by Aleph on May 29, 2006
Help | Support Forums | Terms of Use | Privacy Policy | Contact Us

Copyright © 2006 Advenet LLC All rights reserved.