Thursday, August 14, 2008

Run .NET 3.5 SP1 from Network Drives

It looks like Microsoft has finally got it where managed code to be able to run from a network drive. Here is some more info on it from a Microsoft blog.

http://blogs.msdn.com/vancem/archive/2008/08/13/net-framework-3-5-sp1-allows-managed-code-to-be-launched-from-a-network-share.aspx

VS2008 SP1 Released

Well the time has come and the long awaited VS2008 SP1 has been released to the MSDN subscriptions. I downloaded this and installed I on my main system and want to share my experiences.

  1. The downloads are iso file, so they will have to be burned to a dvd or you will have to use a program to mount the iso files as drives.
  2. After getting things to a dvd, I tried to install the servicepack and it quickly crashed. It died in the VC++ x86 installer. This is strange since I am running Vista Ultimate x64 on my system. So I tried many different things went with my favorite search engine to help. I was not able to find anything useful since the service pack had only been released hours ago.
  3. I finally read the actual log for the install that was failing and figured out that it was saying that it needed to be rebooted. I have been working on a Windows Service that used .NET 3.5 and that could have caused issues as well. So I uninstalled the app and service that I am working on (more on this in a later post) and restarted my laptop.
  4. I then restarted the installer and waited to see what happened. It got past the error I was seeing before. Yea!!!!
  5. Then I waited…. And waited…. I made sure my laptop was set to high performance and it still took about 2 hours to install. The laptop is an AMD TL-64 with 4G of ram so it should not be too slow.
  6. Everything installed fine and I was off to install the MSDN for sp1. Well it was 3am already so I went to bed and let it install overnight, so I do not know how long it takes to install this part.


Everything seems fine so far. I am looking at some .NET code protectors and will see if the ones I am thinking about work with sp1 or not.

http://feeds.feedburner.com/~r/ScottHanselman/~3/364322053/HiddenGemsNotTheSameOld35SP1Post.aspx

Wednesday, August 6, 2008

SQL Server 2008 RTM!!!

SQL Server 2008 has now been released on TechNet. One thing that you will notice is that there are many different versions available. Something that will be seen soon is that this does not include a new Express version yet. I would guess that this would be released soon as well.

http://technet.microsoft.com/en-us/evalcenter/bb851664.aspx

This is exciting since there are alot of new features in SQL 2008. I will be going over this new version more and more as time goes on...

Sunday, July 13, 2008

Really Simple Syndication with Silverlight 2 Beta 2

I've been working with Silverlight 2 Beta 2 a bit lately on my personal side project and wanted to build a very simple RSS viewer. I've found it's pretty easy to do, but there are a few gotchas along the way. I've put up some sample code for doing this, please feel free to use it in anyway you see fit.

Sample code for Silverlight RSS viewer

Here is a non-exhaustive list of things to check out in the source:

1 Silverlight 2 Beta 2 still has some cross-domain access issues, so instead of spending time figuring out why my HttpWebRequests weren't working from Silverlight, I built a WCF service to fetch the RSS XML for me.

2 On the topic of WCF, review the web.config in the ASP.NET project; make sure the binding attribute for the WCF RSS feed service is set to "basicHttpBinding".

3 In ServiceReferences.ClientConfig file in the Silverlight project, make sure you change the endpoint address's port for the WCF service to whatever your local ASP.NET development server's port is, otherwise you won't be able to run the sample locally.

4 If you want to put this code up on a live server, you may run into WCF activation issues. If you do, take a look at this blog post from Joe's Blog about using a custom ServiceHostFactory workaround.

That's all the gotchas I can think about at the second, I'll update this post with more if I remember anything else later. WCF can get a bit tricky now and then... WCF has a nasty way of trapping you inside a cave. That has a bear inside. That you can't see.

Have fun with the source; you can do a lot of cool stuff in Silverlight 2 Beta 2. Throw a DataTemplate on the ListBox and make your data look spectacular (and give yourself extra points if you recognize the Mitch Hedberg reference I just made).

Good luck!

Friday, July 11, 2008

Free Linqpad Application

Linqpad is a nice little app that will replace your favorite SQL management studio for many tasks. This little app has no installer and is just a single exe that gets downloaded and run. It even has an updater built in to make sure that you have the latest version.

This powerful little tool can also run any SQL command, LINQ expression, or even a C#/VB.NET code snippet. This makes it a great little tool to have on your desktop. It was written by the authors of C# 3.0 in a Nutshell. It includes 200 samples from the book. This is a great addition to this little app.

http://www.linqpad.net/

Now all that glitters is not gold.... One of the things that Management Studio can do is to allow you to add new rows to tables using the datagrid that shows the data in the table. You can also delete rows using this. Linqpad does not allow this since it is only a web output.

Overall Linqpad is a great tool if you are using LINQ and/org .NET 3.5 and databases. Get it, play with it, see what it can do and you will like it too.

Monday, June 30, 2008

Microsoft Certified Master

Microsoft is working on and has announced a new certification program called the Microsoft Certified Master (MCM). This is not a replacement for the Architect program and it is not an enhancement to the existing programs like MCITP.

From Trika's blog, you can see that this certification is not for the light hearted. It costs 18,000 for 3 weeks of training and 3 exams and a lab exam. It is hard for many people to be able to go to this training in Redmond for 3 weeks straight. But this is the only the first time it is offered. I would love to be able to do this, but 3 weeks is a LONG time to be away from work and family.

http://www.microsoft.com/learning/mcp/master/products/default.mspx#E1C

http://blogs.msdn.com/trika/archive/2008/06/26/more-on-the-certified-master-programs-from-me-per-the-program-owner.aspx

I was really looking forward to this certification, but it might be more than I am willing to do right now. Well, on to the next set of certifications that I am studying for, MCPD and a few MCTSs.

FREE Microsoft E-Learning Course Offer

Microsoft is currently running a promotion that allows anyone to try out one of its many E-Learning Courses for free! This offer expires today, the 30th of June, 2008. So, if you're interested you'd better hurry.

You can register to obtain your promotional code for a free E-Learning Course by navigating to this webpage. One prerequisite is that you have a Windows Live ID. If you do not have one, then you can learn how to get one here. Once, you have registered using your Windows Live ID, you will receive a promotional code. Using this code, you can take your pick of one of many applicable E-Learning Courses and sign up for it for free! I believe that the subscription to this course will last you one whole year. So, it's definitely worth getting the code even if you don't have the time to spare at the present moment. Whats more is that... It's free!

If you have no idea what I mean by an E-Learning Course, you can read more about it here or, take a tour and sit through a sample course here (requires Silverlight). I sat through one and found it to be quite well rounded.

One more thing to be aware of is that the code will expire 30 days after you register for it. So, don't wait too long to pick a course if y ou plan on it. Since I plan on appearing for the 70-502 Cert in the not-so-distant future, I will registering for a WPF E-Learning Course. So, I'm off to do that and grab a bite to eat at the same time.

Happy Learning!

-Merwyn