Tag | .NET 4.0 Posts

Technorati Tags: Silverlight OK, now that Silverlight 4.0 finally is out (http://weblogs.asp.net/sco... its time to learn it. Also VS 2010 and .NET 4.0 released (http://weblogs.asp.net/sco... And remember about Windows Phone! There is more than enough information on the web. One thing that I would like to see from Microsoft is a complete reference example of business application. Personally ...
RTM version of .NET 4 and Visual Studio 2010 is available, and now we can do some test with it. Parallel Extensions is one of the most valuable part of .NET 4.0. It’s a set of good tools for easily consuming multicore hardware power. And it also contains some “upgraded” sync primitives – Slim-version. For example, it include updated variant of widely known ManualResetEvent. For people, who don’t know about it: you can sync concurrency execution of some pieces of code with this sync primitive. Instance ...
Great event : Microsoft Visual Studio 2010 Launch @ Microsoft TechEd Blore I was really excited on attending the day 1 of Microsoft TechEd 2010 in Bangalore. This is the first Teched that am attending. The event was really fun filled with lot of knowledge sharing sessions and lots of goodies and gifts by the partners Initially the Event Started by Murthy's Session. He explained about the Developers relating to the 5 elements of nature (Pancha Boothaas) 1. Fire - Passion 2. Wave (Water) - Catch the ...
I have now had my iPad for a little over a week. In that time, Apple introduced the world to its iPhone OS 4 (and the SDK agreement’s draconian new section 3.3.1), HP introduced is Slate, and Microsoft got ready to launch Visual Studio 2010 and .NET 4.0. And through it all I have used my iPad. I've used it for email, calendar, controlling my Sonos, and writing an essay. I've used it for getting on TripIt and Twitter, and surfing the Web. I've used it for online banking, and online ordering and delivery ...
One of my colleague and friend, Robin is playing and struggling with the ASP.NET MVC 2 on a project these days while I’m struggling with a annoying client. Since it’s his first time to use ASP.NET MVC he was meetings with a lot of problem and I was very happy to share my experience to him. Yesterday he asked me when he attempted to insert a <br /> element into his page he found that the page was rendered like this which is bad. He found his <br /> was shown as a part of the string rather ...
Fellow Blog Readers: I figured I use my first blog post on GeeksWithBlogs to introduce myself. I recently relocated from Long Island, NY to South Florida where I joined a local company as Software Engineer specializing in technologies such as C#, ASP.Net 3.5, WCF, Silverlight, SQL Server 2008 and LINQ, to name a few. I am an MCP and MCTS ASP.Net 3.5, looking to get my .Net 4.0 certification soon. Having been in industry for a few years so far, I figured I would share with you my take on the importance ...
.NET Rocks!! is going on the road again in honor of the release of VS2010, and here are the details: Carl and Richard are loading up the DotNetMobile (a 30 foot RV) and driving to your town again to show off the latest and greatest in Visual Studio 2010 and .NET 4.0! And to make the night even more fun, we’re going to bring a mystery rock star from the Visual Studio world to the event and interview them for a special .NET Rocks Road Trip show series. Along the way we’ll be giving away some great ...
We had a very interesting .NET meeting in which i gave a short presentation on the new features of .NET 4.0 and Visual Studio 2010. The main presentation came from Jake Markhus @jmarkhus who talked about NHibernate (http://nhforge.org). The membership for the group is growing each time we meet and its very encouraging. Some employers found candidates within our group for hiring, and this has resulted in a mutual benefit between the employers and job-seekers – really cool stuff. Jake above giving ...
The GAC in .NET 4.0 is cut into two parts now -- one half for .NET Framework 2.0 stuff, and the other for v4.0 stuff. When compiling any project, targeting .NET 2.0, 3.5, or what have you, this annoying error may pop up: Could not load file or assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5... or one of its dependencies. The system cannot find the file specified. If you are working on a 32-bit system then open a run box and perform this copy command: ...
Microsoft Learning has announced the availability dates for .NET 4.0 Exams from 2nd July 2010 onwards. Being a MCSD.NET for 2005, My friend and I decided to skip certification exams for 2008 exams aiming towards MCST/MCPD coz we felt it was a mere layer on the top of .NET 2.0. But not so for .NET 4.0. We see .NET 4.0 as a major overhaul with the best of .NET releases in hand. The following exams and their link have been posted below for direct reference. Exam 71-511, TS: Windows Applications Development ...
The new release of Employee Info Starter Kit contains lots of exciting features available in Visual Studio 2010 and .NET 4.0. To get started with the new version, you will need less than 5 minutes. Minimum System Requirements Before getting started, please make sure you have installed Visual Studio 2010 RC (or higher) and Sql Server 2005 Express edition (or higher installed on your machine. Running the Starter Kit for First Time 1. Download the starter kit 4.0.0 version form here and extract it. ...
After banging my head for days on a “A potentially dangerous Request.Form value was detected" issue when post (ajax-ing) a form in ASP.NET MVC 2 on .NET 4.0 framework using jQuery and CKEditor, I found that when you use the following: Code Snippet $.ajax({ url: '/TheArea/Root/Add', type: 'POST', data: $("#form0Add").serialize(), dataType: 'json', //contentType: 'application/json; charset=utf-8', beforeSend: function () { pageNotify("NotifyMsgConten... "MsgDefaultDiv", '<img src="/Content/images/conten... ...
Employee Info Starter Kit is a ASP.NET based web application, which includes very simple user requirements, where we can create, read, update and delete (crud) the employee info of a company. Based on just a database table, it explores and solves most of the major problems in web development architectural space. This open source starter kit extensively uses major features available in latest Visual Studio, ASP.NET and Sql Server to make robust, scalable, secured and maintainable web applications ...
Time for some book news update. CLR via C#, 3rd Edition seems to have been out for a little while now. The book was released in early Feb this year, and needless to say my copy is on it’s way. I can barely wait to dig in and chew on the goodies that one of the best technical authors and software professionals I respect has in store. The 2nd edition of the book was an absolute treat and this edition promises to be no less. Here is a brief description of what’s new and updated from the 2nd edition. ...
Next week (17th March 2010) I am presenting on EF4 at www.devweek.com in London (and Azure on the 18th). Today I wanted to get all the latest bits on my demo machine and also check if there are any cool new resources I can point people at. Whilst most of the new improvements in Entity Framework come with the Visual Studio 2010 RC (and the RTM), there are a couple of separate items you need to install if you want to explore all the features. To demo EF4 you need: Visual Studio 2010 RC Download and ...
I always thought that the NUnit test runners and the test assemblies need to reference the same NUnit.Framework version. I wanted to be able to run my test assemblies with the newest GUI runner (currently 2.5.3). Ok so all I need to do is to reference both NUnit versions the newest one and the official for the current project. There is a nice article form Kent Bogart online how to reference the same assembly multiple times with different versions. The magic works by referencing one NUnit assembly ...
My company, Applied Information Sciences (AIS), is currently hiring for multiple positions. AIS is growing and we have immediate needs for all levels of technologists with a focus developing on the Microsoft stack! We are seeking .NET developers with a strong Object Oriented Foundation around the DC metro area. Our goal is to find smart people that are technology enthusiasts and interested in staying on the bleeding edge. If you have a passion for solving complex business problems by building flexible ...
I am currently (Feb 2010) moving lots of Azure samples originally built in Visual Studio 2008 to Visual Studio 2010 RC. I just realised there is a simple mistake folks can fall into. Easy to do, easy to avoid. When opening an Azure solution originally built in Visual Studio 2008 you will see the Conversion Wizard. Once you click Finish you will see this dialogue box with a default of Yes. Do not click Yes! Instead click No. The reason is simple. As of Feb 2010 the Windows Azure Fabric in Microsoft ...
One of my previous posts talked about the performance improvements in WF4. With the recent release of Visual Studio 2010 / .NET 4 RC1, I thought I would re-run my performance tests to see if there have been any further improvements with the most recent version. My test is simply timing how long it takes to invoke an empty workflow (an Sequence activity that does nothing) 2,000,000 times. This test gives us a good idea of the overhead of invoking a workflow. With .NET 4.0 RC1, I am able to invoke ...
You can now get your hands on the Release Candidate version of Visual Studio 2010 and .Net 4.0 if you are an MSDN subscriber. MS also announced that it will make the RC available to all on Wed Feb 10. Upgrade for VS2010 and .Net 4 is an uninstall/reinstall operation. The RC release also includes an updated TFS 2010. If you are upgrading from TFS 2010 Beta 2 to the RC build Byran Krieger blogged some instructions for doing so. Technorati Tags: VS2010,RC,TFS 2010,Upgrade ...
In this Issue: Fredrik Normén(2), Antoni Dol, Alex van Beek, Rishi, Mike Taulty, Giorgetti Alessandro, Michael S. Scherotter, Jesse Liberty, Jeremy Likness, and Anoop Madhusudanan. Shoutouts David Kelley announces a podcast: Lunch With Interact - MVVM For Tards I don't keep a close eye on it, but sometime in the last two days, @SilverlightNews has hit 4000 followers... thanks to all the readers! From SilverlightCream.com: Aspen – A sample app using Silverlight 4 and .Net 4.0 – part 5 of X – New Repository ...
On February 4th, I will be presenting .NET 4.0 and Visual Studio 2010 at the Microsoft office in Reston as part of my company’s continued efforts to provide education on Microsoft technologies. This presentation will cover a wide breadth of technologies that are being launched by Microsoft this year. The presentation is geared towards technical decision makers including Architects, CTO, CIO, Project Managers, IT Managers, and senior development resources. This a totally free Microsoft sponsored event ...
Many, many months back UK based Alex Mackey (Australia now has him) mentioned that he was starting work on a book about Visual Studio 2010 which would also be his first book. I remember at the time thinking “Poor chap – I wonder if he has the slightest idea of what he has let himself in for!?”. Why did I think that? It was certainly no reflection on Alex who is a top class developer and speaker. However, writing a book is IMHO a mammoth undertaking if it is not your day job. It can consume every ...
In this Issue: Jim Wightman, Richard Waddell, Fredrik Normén(2), Einar Ingebrigtsen, Sergey Barskiy, Chris Klug, Dan Wahlin, Walt Ritscher, and Jonas Follesø. Shoutouts: You saw the beginning of Silverlight TV ... now John Papa announces Get Your Questions Answered on Silverlight TV Mark Monster is discussing the architecture of his MeXperience application: MeXperience – Step 2 – Architecture and more From SilverlightCream.com: Another brief Silverlight in WinPE post Jim Wightman has another video ...
In this Issue: Justin Angel, Brett Balmer, and Fredrik Normén(2). Shoutouts: The Silverlight Team Blog announced IIS Smooth Streaming Player Development Kit Beta 2 released John Papa opens up Silverlight TV with Keith Smith on Premier of Silverlight TV Jeff Barnes announced ARCast.TV Special - An Architects Perspective on Silverlight 3 From SilverlightCream.com: AutoMagically Implementing INotifyPropertyChanged Geez... how do you discuss one of Justin Angel's posts in a couple sentences or less? ...
C# 4.0 introduces the notion of Covariance and Contravariance of generic type parameters for interfaces and delegate types. Eric Lippert has put together a bunch of posts that goes into details of the why and how, an excellent read but not for the faint of heart. I would strongly suggest reading these posts to get a firm grounding and a better appreciation of this feature. It took me a while to get my head wrapped around this, especially since none of the VS2010 Betas were not out at the time and ...
I just added a new webcast “Introduction to WCF Workflow Services” to CloudCasts. I’ve been playting around with WCF and WF in .NET 4.0 and AppFabric for a while now, and will get into the habit of releasing webcasts every week or so. (Well that’s the new year’s resolution anyway…) The webcast is here ...
Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... ...
Tech bloggers like to have a predictions post at the beginning of each year (or the end of the previous one). I’ve never actually written one before, although I have made year-ahead predictions in panel discussions for the now defunct NYSIA. Since there’s no panel this year, and since I’m taking better care of this blog, I’d thought I’d give clairvoyance a whirl right here. The following predictions are pretty random and probably not comprehensive, but I’m making it my new year’s resolution to prevent ...
Wow, it only seems like just last week I was sitting at my PC trying to determine what I was going to concentrate on in software development for 2009. I had also just started the Frederick .NET User Group (FredNUG) in September 2008 and I was trying to figure out how to get speakers scheduled. Then, things started to quickly fall into place. My local INETA mentor, Frank La Vigne, provided me with a few names of well respected .NET MVPs who would most likely be interested in speaking at FredNUG. (Thanks ...
[22/12/09: I have been unable to get the podcast hosted on Channel 9 due to problems with the publishing platform. But Michael did a great job so I wanted to get it posted. Hence you can find it on Skydrive for the moment. Download from Skydrive ] A great chat with Michael Foord, author of IronPython in Action, on why a C# or Visual Basic .NET developer should look at also investing time in learning and using IronPython. Michael wrote an article on IronPython for the November 18th 2009 UK MSDN Flash ...
I have just completed a first round of updates to my popular blog post from September Entity Framework 4.0 Resources – documentation links, best blog posts and more Pop a comment here or better still in the main post if I missed something cool! (Which no doubt I have) The following were added: Overview blog posts/articles What’s New in Entity Framework 4, Part 2: Modeling Changes (Nov/Dec 2009) Renovations to .NET 4.0's Entity Framework (Nov 2009) Entity Sequel (Dec 2009) 5 Steps to having a great ...
Technorati Tags: Application Architecture and Design Strategies,Silverlight,Para... Programming,Tutorials The MSDN Southern Fried Roadshow is a developer/architect training through the southeast, presented by technology evangelists Chad Brooks, Glen Gordon and Brian Hitney with Microsoft. Dec. 8 2009. Introduction to ADO.NET Data Services The new wave of Web applications are built on AJAX and Microsoft Silverlight. We learn how ADO.NET Data Services enables applications to expose data as a REST-based ...
UPDATE: Please note that this has got nothing to do with type covariance/contravariance new in .NET 4.0. This is one of the basics but a quick search on the web for code to do this didn't produce any results. The only thing I found was a paid library for matrix operations that although being very good, was a bit too expensive if all I needed was a covariance calculation. I decided then to write my own algorithm for that and publish it here so that I can have it available next time I need it and anybody ...
With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework. The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to ...
c# 4.0 Part 1 The following are some of the new features and few interesting things you can do with c# 4.0. - Named and Optional Parameters - ExpandoObject - Interface with Python (and example) Program 1 class Program { // Optional parameters should be at the end static void PrintMessage(string name = "World", string greeting = "Hello") { Console.WriteLine("{0} {1}", greeting, name); } static void Main (string[] args) { PrintMessage("World", "Hello"); // prints "Hello World" PrintMessage(greeting:"Good... ...
ASP.NET 4.0 State Compression Session state compression was always a worry in the past. With asp.net 4.0 this feature is built into the framework. Just modify your web.config with the following changes and you are ready to go. Now there will be less data travelling through the wire. <sessionState mode="SqlServer" sqlConnectionString="data source=dbserver;Initial Catalog=aspnetstate" allowCustomSqlDatabase="true" compressionEnabled="true" /> Just add the "compressionEnabled="true" to sessionState ...
In this Issue: Chris Klug, Gavin Wignall, Jeff Handley, Brad Abrams(2), Mike Flasko, Karl Shifflett, Jeff Wilcox, Nikhil Kothari, and Colin Blair. Shoutouts: John Papa posted the material from his PDC Session: MVVM and Prism Demo for PDC09 Silverlight Session, and while you're at it, here's the video: Video of my Prism and MVVM at PDC Jeff Weber posted that a New Silverlight 3 Book Uses Farseer Physics Joe Stegman posted the slide deck for his PDC 2009 Out Of Browser Session András Velvárt announced ...
Until recently, Microsoft’s policy toward Its Professional Developers Conference (PDC), was that it should be held only once every two or three years, and should focus on Redmond’s technology “futures.” This meant that currently- or imminently-shipping products were not to merit much coverage; instead, emerging technologies that were at least 18 months away (or thereabouts) from shipping would get the spotlight. Last year, that was mostly true. We got a pre-beta release of Windows 7, saw glimpses ...

The N2 MVC example updated for MVC2/.NET 4.0

It's on a SkyDrive so follow the link, don't right click and Save

Link

Tomorrow night I’ll be at RockNUG presenting LINQ to SQL. Yes, LINQ to SQL. Again. In the last 2 years I have presented LINQ to SQL numerous times at various user groups and code camps. Why do I keep getting asked to present LINQ to SQL? Isn’t LINQ to SQL dead? Answer: No. LINQ to SQL is not dead! This confusion all started back in October 2008 with a seemingly innocuous post on the ADO.NET team blog discussing the emphasis that Microsoft was going to put into the Entity Framework going forward. ...
We all know the usage of the anonymous type: var obj = new { Name = "John", Age = 24 }; What if we want to add a anonymous delegate or Lamba to it? Like: var obj = new { Name = "John", Age = 24, behaviour=delegate(string name, int age) { return "Customer Name: " + name + ", Age: " + age; } }; or var obj = new { Name = "John", Age = 24, behaviour = (name, age) => string.Format( "Hello, {0}! You are {1} years old.", name, age ) }; The above two will cause compile time error, because anonymous type ...
Lets examine the dynamic key word introduced in .Net 4.0. It can keep an instance of any type. Then what is the difference between it and System.Object. Well the essential difference between them is the dynamic method dispatching which enables lazy binding, i.e. it allows you to write method, operator and indexer calls, property and field accesses, and even object invocations which bypass the normal static binding of C# and instead gets resolved dynamically. It provides a unified approach to selecting ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... mso-ascii-font-family:Calibri; ...
Who here uses IDictionary classes in their projects? Raise your hand. Keep your hand up if you cannot bear the sight of having to call another ContainsKey method. Keep it up if you cry at the idea of having to use the “out” keyword in conjunction with the TryGetValue method... Keep the hand up if you consider that removing items should be allowed from inside a foreach loop. Is your hand still up? Yeah, mine too . Alright let’s all take a break. This is just one of the numerous annoying little things ...
In this Issue: Mark Miller, Kirupa, Sergey Barskiy, Timmy Kokke, Laurent Bugnion, Jeff Prosise, Ronnie Saurenmann, Expression Blog, The Silverlight Blog, and Victor Gaudioso. Shoutouts: Check out .NET Rocks Show 489 because Shawn Wildermuth announced I am on .NET Rocks Talking about Declarative UI's Jon Galloway has a post up on The Designer/Developer Workflow Crisis (That Everyone’s Ignoring) that's definitely something to check out. Unless you've been sleeping behind the door, you already know ...
Visual Studio 2010 Beta 2 is now available for MSDN subscribers, and generally available on October 21. I haven’t had a chance yet to play around with it, but some of the CLR changes that are very exciting to hear about are: The new String.IsNullOrWhiteSpace method indicates whether a string is null, empty, or consists only of white-space characters. New overloads have been added to the String.Concat and String.Join methods that concatenate members of an IEnumerable<T> collections. The String.Concat<T> ...
Don’t know how I missed blogging this along with everything else, but the Release data for VS 2010 and .Net 4.0 has been announced as March 22, 2010. Technorati Tags: VS2010,.Net 4 ...
I can't believe how long this took to figure out, I think I read every WCF tutorial out there, and now I look at it it's so mind bogglingly simple I don't know what I wasted my time doing! All I wanted was a WCF service that would accept a POST from jQuery with some JSON parameters and return some HTML, but it seems I repeatedly cocked up the JSON string format and the attributes for the contract. Anyway, here's a simple example so you don't have to endure my frustration. I used .NET 4.0 because ...
I am working with Entity Framework as model in a REST service, using the CollectionService<T> and i found a little issue in the behavior of Linq to Entities,this is well know but i hope a change in .Net 4.0 Currently Linq to Entities not supports projections that returns types with parameterized constructors, by instance for a method that return a IEnumerable<KeyValuePair... Course>> i wanna make 1: .Select(c => new KeyValuePair<string, CustomType>(c.StringProp... ...