.NET
Windows Phone 7 Developer Tools Beta have been released. Tools Download the Windows Phone Developer tools beta to get started creating Windows Phone 7 applications today. This download includes: Visual Studio 2010 Expression For Windows Phone beta; Windows Phone Emulator beta; Silverlight for Windows Phone beta; Expression Blend for Windows beta; and XNA Game Studio 4.0 beta. http://www.microsoft.com/downloads/details.aspx?FamilyID=c8496c2a-54d9-4b11-9491-a1bfaf32f2e3&displaylang=en Training Jump start your development of Windows Phone 7 applications by attending Windows Phone 7 JumpStart. This free virtual live class, comprised of four instructor-led 3 hour sessions, will guide you in developing applications for...
When using ASP.NET you can choose 4 different ways of storing session: In Process, State Server, SQL Server, or Custom. When using In Process the session is stored on the ASP.NET thread of the web server, but when using the State Server or SQL Server the sessions are stored outside the ASP.NET thread. When would you use Out of Process session state? Mostly when you have a web farm and you need to share the same session across all web servers. You might choose to use it even if you have one web server for the simple reason of saving...
Yesterday I introduced a free service to get the location of the IP Address. If you haven’t read it, go on read that first (it’s very short, I promise). So here I am today, showing you my small .NET API to abstract the XML returned by the service. First we need an object to hold the data. I called it UserLocation. 1: public class UserLocation
2: {
3: public string City...
I wanted to share with all of you a free service that provides you an approximation of your user’s IP Address. You can read about it here: http://www.hostip.info/use.html. If you are looking for a more sophisticated solution that is maintained more often than the free solution you can also use this service: http://www.maxmind.com As of this writing you can get the response in 2 different forms: XML or plain text. I like the more structure formats so I will be using the XML option. Stay tune… I will post a C# API for retrieving the information. UPDATE:...
Routing was born with the creation of the asp.net MVC Framework. During the beta testing of the MVC framework people started asking for this feature to be included in asp.net so it could be used with web forms as well. The asp.net team listened and included Routing with the release of .net 3.5 SP1. Thanks for the history, but what exactly is routing? Routing enables you to use URLs that do not map to a physical location on the server. For example in a normal page request for the default.aspx resource there has to be a physical file default.aspx...
For the release of Visual Studio 2010 RC (Release Candidate), Microsoft provided us with a fully installed VPC (Virtual Machine) image. For some reason they did not do the same for the release of Beta 1. I guess they wanted people to go through the installation so they can receive feedback and bugs for it. Anyway, if you want to install VS 2010 Beta in a Virtual Machine, I recommend watching this Channel 9 Videoby Brian Keller on how to download and install all the requirements. Keep in mind that Brian also installs VS Team Foundation Server which is not...
WARNING: This worked for me and I’m not saying it is the right solution. Some cases may vary from mine. In my case this error occurs after deploying a WCF Service to IIS 6 which was referenced from Visual Studio 2008 with .NET Framework 3.5 SP1 and works perfectly in the local development environment. The server is a Windows Server 2003 with .NET Framework 3.5 without the SP1 installed. We solved the problem by installing 3.5 SP1. It would be nice to have all environments set up the same, but such is life :) Happy Programming!
I know that the .NET framework can have a lot of dependencies for certain features to work properly. For example in order to install ASP.NET correctly on a web server is to have IIS installed first, if not then a lot of scripts are not going to get executed during the install. Knowing that I always have IIS installed prior to installing any version of the Framework. For some reason I haven’t done that on a Virtual Machine and IIS was throwing a lot of weird errors such as “Failed to access IIS metabase. The process account used to run...
A well written program will always clean up it’s resources and with SqlConnection is no different. We should always open, use, close. Some people are paranoid about it and would do something like this:
1: conn.Close();
2: conn.Dispose();
3: conn = null;
Now that’s one dead connection! But is all this necessary? Should we call Close and Dispose? When should we call Close and when should we call Dispose?
Well, if we use the Red Gate’s free Reflector and browse to System.Data.SqlClient.SqlConnection and to the Dispose method we can see that it will in turn...
I will be presenting the new ASP.NET Virtual Earth Live Control at the South West Florida .NET Developer Group on December, 18th 2008 (this upcoming Thursday). I will be demoing some of the features of the control. See you there!
Full .NET Archive