ASP.NET Version Issues

I develop with 1.1 and 2.0 - When VS 2003 creates a web solution it is configured to use the 2.0 runtime. Placeing the following code to the Global.asax's of your 1.1 projects and setting execute permissions on the aspnet_regiis.exe helps much. protected void Application_Start(Object sender, EventArgs e) {       if(System.Environment.Version.Major==2)       {             System.Diagnostics.Process _p = new System.Diagnostics.Process();             _p.StartInfo.FileName = "%WINDIR%\\Microsoft.NET\\Framework\\v1.1.4322\\aspnet_regiis.exe";             _p.StartInfo.Arguments = "-s W3SVC/1/ROOT" + Request.ApplicationPath;             _p.StartInfo.UseShellExecute = false;             _p.StartInfo.RedirectStandardOutput = true;             _p.Start();       } }  

Simply resize an uploaded image

I got an E-Mail from a student this morning asking how to thumbnail an uploaded image. Here is a "quick" solution (there are a few things you can do to increase quality, set JPEG compression factor or keep gif transparency). If you like to dig deeper have a look at one of the articles i wrote for the DotNetPro magazine's #Talk column (dnp0305_Thumbnail.pdf [German])   <%@ Page Language="C#" %>   <script runat="server" Language="C#">       public void UploadFile(object sender, EventArgs e)     {         System.Drawing.Image _img =              System.Drawing.Image.FromStream(             this.InputTypeFile.PostedFile.InputStream);           int _maxWidth = 100;         int _maxHeight = 100;           int _width = _img.Width;         int _height = _img.Height;           string _filename =               System.IO.Path.GetFileName(               this.InputTypeFile.PostedFile.FileName);                     string _uploadPath = System.IO.Path.Combine(             Server.MapPath(".\\upload\\"),             _filename);                 if (_width > _height)         {             width = Math.Abs((int)(height *                         _img.Width /                         _img.Height));             _height = _maxHeight;         }         else         {             _height = Math.Abs((int)(_maxWidth *                         _img.Height /                         _img.Width));             _width = _maxWidth;         }                 System.Drawing.Image _newImg =             _img.GetThumbnailImage(width, height, null, null);            _newImg.Save(_uploadPath);            _img.Dispose();     }   </script> <body>     <form id="form1" runat="server">       <input id="InputTypeFile" type="file" runat="server" />     <asp:Button ID="Submit" OnClick="UploadFile" Text="Upload" />       </form> </body> </html>

You are what u drink?

You Are an Espresso At your best, you are: straight shooting, ambitious, and energetic At your worst, you are: anxious and high strung You drink coffee when: anytime you're not sleeping Your caffeine addiction level: high What Kind of Coffee Are You?

.NET Summit NRW review

First of all thank you to everybody who helped (Microsoft, INETA, S&S, E-Team...), spoke (Christian Weyer, Dirk Primbs, Achim Oellers, Dr. Holger Schwichtenberg) nad attended the event. A few things learned: Min. Session time is 60 min. Print out the list of attendees ordereb by lastname ascending Call restaurant to make sure the speakers diner will be served :-P The feedback until now was very good and Stephan and I plan to do the ".NET Summit NRW 2006" next year. bigger, better, more :-)

MSN VirtualEarth

If you ever wanted to know where newtelligence headquarter is (Korschenbroich)... http://virtualearth.msn.com/default.aspx?cp=51.188584|6.605851&style=r&lvl=9&v=1 You can also see where our next SOA Workshop will happen (Düsseldorf) on September 5 - 7, 2005.