Category: ASP.NET

  • Web Service Reference in Visual Studio 2010

    If you’ve used Visual Studio 2008 or 2010, you’ll notice that Web Reference is no longer there (like in VS 2005 and previous), instead, you see Service Reference –– actually, it’s STILL there, just hidden! So, what’s the difference?  Well, according to this post: Add Web Reference is the old-style, deprecated ASP.NET webservices (ASMX) technology…

  • Hash class using System.Security.Cryptography

    ,

    Adding for archival purposes… <span style="color: blue">using </span>System; <span style="color: blue">using </span>System.Collections.Generic; <span style="color: blue">using </span>System.Linq; <span style="color: blue">using </span>System.Web; <span style="color: blue">using </span>System.Security.Cryptography; <span style="color: blue">namespace </span>Classes {     <span style="color: blue">public class </span><span style="color: #2b91af">Hash     </span>{         <span style="color: blue">public </span>Hash()         { }         <span style="color: blue">#region </span>Hash Choices         <span style="color: gray">/// &lt;summary&gt;</span><span style="color: green">The wanted…

  • Fix to "The handle is invalid" error when ASP.NET writes to the Eventlogs

    Have you ever come across the error below with one of your ASP.NET web apps that is trying to write to the Eventlogs? If so, read on… By default the ASPNET user cannot access the existing eventlogs categories. To resolve this, you must set the permissions in the Eventlog key in the registry: Launch RegEdit.…

  • Most Common ASP.NET Support issues

    , ,

    Below is a summary of the “two top things that cause trouble in production ASP.NET web sites,” per Scott Hanselman, which he obtained from deep within Microsoft Developer Support.  Go here to read the complete article. #1 Issue – Configuration Seems the #1 issue in support for problems with ASP.NET 2.x and 3.x is configuration. …

  • Free Microsoft Press e-book offer

    Just sign up with your Windows Live/Passport account and you can download all three e-books by Microsoft Press.  It includes the following: Enjoy!

  • Bind an XMLDataSource to a GridView control

    , , ,

    On one of my ASP.NET 2.0 projects, I had to use an XML file as the data source for a GridView control. The problem was that I had never used this method before. But after doing some research, I found it to be very similar (and straightforward) to binding to a database – with the…