Tag | .NET 4.0 Posts

Just a quick one, seems pretty weird to me. I installed .net 4.0 on an old IIS6 box, ready to deploy a asp.net mvc app targeting .net 4.0. I thought, which to me seems logical, that I install .net 4.0, setup a new web site, new app pool, set the web site to asp.net 4.0 (other configuration also needed to run MVC on IIS6 here and here) and it would just work. Errr… No. The page cannot be displayed! Nothing to do with MVC. Apparently just because you have installed .net 4 and the option is available ...
Yep! Another round of stuff to test out, I am referring to the Visual Studio 2010 SP1 related Betas. They are out, and available. The always present warning that normally comes with installing Beta stuff is true here too. Scott Hanselman does a fantastic job on describing what is new, gains, fixes and such. The download links: Visual Studio 2010 SP1 Beta:http://www.microsoft.c... .NET 4.0 SP1 Beta : http://www.microsoft.com/do... ...
This is for TFS2008. This is based mainly on this article: http://blogs.msdn.com/b/jpr... But also had input from these: http://www.woodwardweb.com/... http://blogs.msdn.com/b/buc... http://blogs.msdn.com/b/jim... Also the following article discussing upgrading a ...
Let’s face it: not everybody can afford a full-blown Surface unit in his or her house. But most of us can afford a windows 7 touch enabled computer. The prices for these kind of devices have dropped a lot since the introduction of Windows 7. Companies such as Dell, HP and others offer notebooks as well as desktop systems that can handle multi-touch for a reasonable price. And with touch you’re halfway there. What you don’t have is the object recognition of the Surface. And the rigidity of the Surface ...
I was lucky enough to attend Visual Studio Live! in Orlando on November 14th-17th. There were so many great speakers and the networking was great. I met a lot of really cool people and we talked about everything .NET (from WP7, Silverlight, C#, ASP.NET WebForms, AJAX, MVC 3.. and so forth). I took a lot of notes during all the sessions and wanted to provide it to those that could not come out. If you follow me on Twitter then you have seen most of these. Most of the authors put slides/source code ...
Interested in learning Windows Server AppFabric? I hope so. It will be the backbone of the on-premise version of BizTalk in the coming years and based on news out of the PDC it looks like it will be moving to Azure (in some form) as well. There are many resources out there for learning Windows Server AppFabric. However, not all of them are equal and you can spend a lot of time meandering through material without making a lot of progress. Below is my suggested path for coming up to speed on it with ...
I've been meaning to write a blog post for a while about how we implemented a scatter gather pattern at one of my clients. Ive recently been reading Richard and the gangs new book which discusses a very similar pattern but with a different design decision. Based on that I have decided to expand on the original planned post to talk about what we did and our decision process using the decision framework discussed in the book. The aim here is to show that the "it depends" principle means that there ...
We I first received this book, I was not sure what to expect. When it comes to development topics on debugging the spectrum is very wide. Most developers, including myself, only use basic techniques for day-to-day debugging. These get us through our problems quickly and they work well for 80% of the bugs we encounter. We forgot to close a connection, we didn't set a variable, we forgot to exit a loop, we fat fingered a variable name. All of these are daily errors we as developers face and fix with ...
In this blog post, we will take a quick look at the new MVC 3 project options as well as the pretty sharp Razor View Engine (not suitable for shaving :) ). Based on a nice Stackoverflow post, it seems that MVC 3/Razor will only be supported in Visual Studio 2010/.Net 4.0. This is great as it will give developers yet another good selling point to argue for upgrading to .Net 4.0. Creating a new ASP.Net MVC 3 project Prior to ASP.Net MVC 3 Beta, Selecting “New Project” in VS 2010 yielded two templates ...
If you hit this issue and are pretty sure that you have downloaded the AjaxControlToolkit and configured it, the primary source of this error is that you haven’t added a script manager in the page where you are trying to use the toolkit control. Lets examine more into this. Setting up the Toolkit AjaxControlToolkit is a set of ajax enabled controls available for free download right from the ASP.NET 2.0 AJAX days and has evolved into various versions. It was moved to CodePlex couple of years back. ...
Back in April I began to work with Oracle again after a multiple year absence from doing so. So naturally I decided I would install Oracle on my home system so I could reacquaint myself with it. That proved to be more difficult than I expected. I was able to get Oracle 10g Express downloaded and installed but could not connect to it. So, to save someone else some of the grief I went through let me go through the final sequence of steps that resulted in a solid working Oracle development environment. ...
[Source: http://geekswithblogs.net/E... I've had a need on a couple of projects for a monitoring system to record progress of a long-running transaction. Enter Heartbeat - a library which does just that. It's a project of mine on github: Heartbeat progress monitor. The typical use-case is for monitoring a lengthy batch load, where Heartbeat will record progress at set intervals. The intervals can be time-based, or progress-based or both - so you can have an overnight process which writes ...
I have been playing around with Managed Extensibility Framework (MEF) and have been very happy with the way it works overall. If you remember when you use refection you do something like this try { Assembly assy = Assembly.LoadFile(<DLLLo... Type assyType = assy.GetType("ClassLibrary1... object assyInstance = Activator.CreateInstance(as... PropertyInfo msginfo = assyType.GetProperty("messa... var msgValue = "Hello from this Reflected assembly"; assyType.GetProperty("messa... ...
This is a quick post … after a lot of challenges with a recent deployment of BizTalk Server 2009, it is important to keep the following very much in mind. BizTalk Server 2009 and SQL Server 2008 R2 are not the best match, work with SQL Server 2008 with SP1. .NET 4.0 has the ability of breaking a not yet configured BizTalk deployment. Where? Enterprise SSO configuration will refuse to talk to the SSODB (mind you, the process will create the DB). There are fixes for this last one, just make sure you ...
So proud to say that I defeated the 70-516 Microsoft exam which covered data access with .NET 4.0! Obviously because of rules around taking Microsoft exams I can’t get into details about what I encountered, the things the questions focussed on, etc. But really I don’t have to since Microsoft is listing really good details on what’s covered and what percentage of the exam you can expect questions from the different areas. Experience obviously plays a role in determining how successful you’ll be, but ...
…make a LEMON GRENADE! I blogged a few days ago about this maddening issue with VS.NET 2010 and not being able to use the designer for ASP.NET 3.5 projects or add an EF model file to a .NET 4.0 project (You can read all the gory details here). Well my friends, I’m happy to report that I have a solution! Well, not a solution…but a workaround…kinda like how they dumped Megatron into the ocean at the end of Transformers instead of dismantling him: the threat is still there, just dormant. Unfortunately ...
I’m gearing up to take the 70-516 exam, which focuses on ADO.NET, EF, LINQ, and XML as it relates to .NET 4.0 and VS.NET 2010. My exam is scheduled for Friday, although I had thought about moving it. Busy work/family life has meant my best intentions of studying haven’t happened. When I looked at the availability for when I could move my exam though, the earliest was in early October (we only have two Prometric test centers here in Winnipeg…before a month ago or so we only had one). So I’m gonna ...
I blogged last month about an unsolved mystery I was experiencing, which I dubbed the Mystery of the Uncooperative EF Model and the Missing Target Frameworks. Since then, I’ve since expanded that to include the Mystery of why VS.NET 2010 can’t seem to resolve where my .NET 3.5 assemblies reside. Because of all this, let’s just go with the title of this blog, or as it’ll be known in its European release: HOOPED – a boy and his VS.NET installation. Without getting too wordy, let me give you the recent ...
[Source: http://geekswithblogs.net/E... Web.config transformation is a simple and powerful inclusion in .NET 4.0 for generating configuration files for different environments. It's a templated match-and replace, and you can put together a homegrown alternative with T4 and some scripting, but the integrated experience is better. It's limited to web.config in Visual Studio, but with a simple MSBuild target you can leverage it for any config file. The transform is based on your VS.NET solution ...
Firstly (thanks Matt) – it should really be an ICollection extension – and so now it is, but also I’ve just ported it to a .NET 4.0 project, and can now make use of optional parameters, and so 3 methods now become 1! /// <summary>Adds a range of items to an <see cref="ICollection{T}"/>.... /// <typeparam name="T">The type held in the <see cref="ICollection{T}"/>.... /// <param name="collection">The <see cref="ICollection{T}"/> instance ...
[Source: http://geekswithblogs.net/E... Using Parallel Extensions you can reduce loop execution time by 95%. Which, if you're evaluating .NET 4.0 and VS 2010, should be a cinching argument*. The Parallel Extensions library includes an abundance of features for fine-grained control over concurrent operations, and it also provides the very simple Parallel.ForEach construct, which takes an IEnumerable<> collection and an Action to run over each item, so: Normal 0 false false false EN-US ...
One of my colleagues pointed me at Howard Baines as a recent example of a web consultancy already using Visual Studio 2010 and Entity Framework 4.0 to build web applications. I managed to grab a little time with co-founder Clive Howard (on twitter) to talk through some of the decisions, especially as I was intrigued to learn that they started out on Open Source Software including Ruby on Rails before switching to the .NET Framework. We discuss: Why switch to the .NET Framework? Entity Framework 4.0 ...
One of my hobbies seems to be creating map editors for XNA games. With the new XNA 4.0 Beta(yes, it’s called Windows Phone Developer Tools – don’t worry, it’s the full XNA and builds Windows and Xbox 360 games too, though the current beta doesn’t deploy to the Xbox 360 yet so stick with XNA 3.1 for Xbox games for now)… anyway, with the new XNA 4.0, I thought I’d take the stock WinForms 2 sample (the one that includes building content on the fly using MSBuild) and build it to see how much conversion ...
Arnie Rowland (a SQL Server MVP and an amazing individual) has come up with a a great challenge for anyone who happens to be unemployed or under-employed (as he puts it). The challenge? Well, go on an read about it The original post: http://sqlblog.com/blogs/ar... An update, now joined by other MVPs (I see Ted Malone, another one of those great dudes I have had the joy of working with): http://sqlblog.com/blogs/ar... ...
I’m prepping this week for the 70-515 exam I’m taking on Friday, and I thought I’d go through some VS.NET 2010 labs as part of my prep. One of them has to do with setting up a WCF service, where you create a web application and then add an Entity Framework model file to the project. Right click, Add New Item, Entity Framework file, and… Huh. Well that’s weird, considering that this is a .NET 4.0 web application project in Visual Studio.NET 2010…how can it not resolve to the target framework? So I ...
This year Microsoft revamped their partner program with changes to eligibility requirements, competencies, and other areas. In this post I want to talk about some changes to the competency requirements. The idea of competencies aren’t new, however this year we’re seeing Microsoft take a more serious view of who they allow into their partner program. Because of this, achieving those competencies are more difficult and require more investment. The idea is that only serious partners participate. Microsoft ...
This year, for the first time, St. Louis Day of .NET is excited to have a major keynote address delivered to the conference. We are pleased to welcome Brian Goldfarb, Microsoft Director of Product Management for Developer Platforms to the stage on Friday, August 20, 2010. Most recently, Brian has been seen on stage at PDC 2009 with Scott Guthrie, demonstrating the Microsoft Silverlight 4 client for Facebook. He was heavily involved in MIX10 in Las Vegas, and spoke at the Open Source Business Conference ...
The Managed Extensibility framework or MEF is a framework released as part of .NET 4 and Silverlight that provides a mechanism to dynamically compose an application at runtime out of loosely coupled parts and provides a variety of mechanisms to discovering these parts. You can think of this as an implementation of a plugin framework that enables plugging in functionality into a container, based on information available at runtime. The most notable example of a MEF client is the Visual Studio 2010 ...
It seems like typed datasets provide the same type of object layout as the entity framework. What's the difference and why should I use one or the other? We'll start at the fundamental difference: DataSets give you a basic in-memory database that you can query and fill from a data source such as a database. Queries against datasets are executed against in-memory data. Entity Framework gives you a translation layer that translates LINQ queries to your database's SQL dialect. Queries against the EF ...
I have recently been having discussions with some of the guys from our Ops Team about the GAC and BizTalk. One of the things they had observed was that when we upgraded some of our BizTalk applications using the technique where you are able to drain the system and fully remove then replace the application the uninstallation and reinstallation process left the assemblies from the previous version in the GAC. I explained the relationship between the management database in BizTalk and the storage of ...
The Windows Azure team had just announced the release of the latest version of its tools and SDK (v1.2) at the TechED 2010 New Orleans. You can download it here. The biggest new feature/improvement of this version of the SDK would be Visual Studio 2010 RTM and .NET 4.0 support. It gives us the facilities to build our azure-based applications on top of .NET 3.5 and 4.0 as well. So the guys who is working on, like me, or is going to be working on .NET 4 would better to have this SDK installed I think. ...
Yes it really is the first Wednesday of the month! and Yes, we are having our normally scheduled meeting tonight. Everyone should be back from any Memorial Day festivities, dragging your collective drawers at work and looking for somethign interesting. Voila!... the Silverlight User Group meeting from 6PM to 8PM at Interface Technical Training (NW corner of Central & Thomas) -- check PhoenixSilverlight.net for a map. Come out for Pizza and networking at 6 then hang around because Les Brown of ...
That's it!!!!! It's ready to go and be tested, abused and improved! It requires .NET 4.0 and uses some cool technologies, like caching (the new System.Runtime.Caching) and the Task Parallel Library (System.Threading.Tasks). With this library you can: Define a shard of 1, 2 or 100 SQL databases (a mix of SQL Server and SQL Azure) Read from the shard in parallel or sequentially, and cache resultsets Update, Delete a record from the shard Insert records quickly in the shard with a round-robin load Reset ...
Last week (12th May 2010) I did a session in the city on lot of the new .NET 4.0 Stuff. My demo code and links below. Code Parallel demos http://gist.github.com/364522 C# 4.0 new features http://gist.github.com/403826 EF4 Links Entity Framework 4 Resources http://bit.ly/ef4resources Entity Framework Team Blog http://blogs.msdn.com/adonet Entity Framework Design Blog http://blogs.msdn.com/efdes... Parallel Links Parallel Computing Dev Center http://msdn.com/concurrency Code samples http://code.msdn.microsoft.... ...
Ok, honestly, I’m posting this so I can find it when I need it but Visual Studio 2010 uses a new report viewer that is compatible with .net 4.0. http://www.microsoft.com/do... Bill McCarthy has some complaints (and a work around): http://msmvps.com/blogs/bil... ...
[Source: http://geekswithblogs.net/E... Can't see a genuine use for this, but I got the idea in my head and wanted to work it through. It's an extension to the idea of duck typing, for scenarios where types have similar behaviour, but implemented in differently-named members. So you may have a set of objects you want to treat as an interface, which don't implement the interface explicitly, and don't have the same member names so they can't be duck-typed into implicitly implementing the ...
An upgraded article and solution had been posted here. I migrated the project to ASP.NET MVC 4 with some features added. - Upgraded to ASP.NET MVC 4, Visual Studio 2012. - Moved the solution to a separated project. - Moved the procedure originally executed in base controller's ExecuteCore to a separated class. Now can use the this solution without needing inherit from the localization base controller. - Implemented the localization resource provders so that can use any data source (database, XML ...
Corrupted state exceptions are designed to help you have fewer bugs in your code by making it harder to make common mistakes around exception handling. A very common pattern is code like this: public void FileSave(String name) { try { FileStream fs = new FileStream(name, FileMode.Create); } catch (Exception e) { MessageBox.Show("File Open Error"); throw new Exception(IOException); } The standard recommendation is not to catch System.Exception but rather catch the more specific exceptions (in this ...
Just getting more stuff “down on paper” which grabbed my attention over the last couple of weeks. http://www.koodibook.com/ is live. This is a a rich desktop application built in WPF by some ex-colleagues and current friends :-) Check it out if “photo books” is your thing or you like sweet WPF UX. Study rates Microsoft .NET Framework rated top, Ruby on Rails 2nd bottom. I know a bit about both of these frameworks. Both are sweet for different reasons. .NET top. Ok – I liked that. But Ruby on Rails ...
In this Issue: Carlos Figueira(-2-), Subodh Pushpak, Gergely Orosz, John Papa, Mike Snow(-2-), Rishi, Tim Heuer, Stefan Olson, and David Anson. Shoutouts: Josh Holmes blogged about a cool app the City of Miami has up: Miami 311: Built on Windows Azure Gergely Orosz reports on the state of a bug he found pre SL4: Silverlight 4 still displays large elements incorrectly Laura Foy and Charlie Kindel discuss WP7 on Channel 9: Windows Phone 7 Developer Tools Refresh Announced Charlie Kindel has an announcement, ...
Normal 0 false false false EN-US X-NONE HI /* 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; mso-bidi-font-size:10.0pt; ...
Listen up .NET developers within 50 miles of Research Triangle Park, NC! Take out that red, blue, green, black or any other color Sharpie marker you fancy and circle May 6th! Fellow Microsoft Regional Directors Carl Franklin and Richard Campbell are going to be bringing the .Net Rocks Visual Studio 2010 Road Trip to town. What’s that you say, you’ve never been to a .Net Rocks Road Trip event and don’t know what to expect? Let me help with that. I stol… uhhh… I mean I was “inspired” by some content ...
Carl and Richard are loading up the DotNetMobile (a 30 foot RV) and driving to our town again to show off their favorite bits of Visual Studio 2010 and .NET 4.0! Richard talks about Web load testing and Carl talks about Silverlight 4.0 and multimedia. And to make the night even more fun, they are 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 prizes, showing ...
Technorati Tags: Ram,Parallel Computing in .Net 4.0 Parallel computing is the simultaneous use of multiple compute resources to solve a computational problem: To be run using multiple CPUs A problem is broken into discrete parts that can be solved concurrently Each part is further broken down to a series of instructions Instructions from each part execute simultaneously on different CPUs Parallel Extensions in .NET 4.0 provides a set of libraries and tools to achieve the above mentioned objectives. ...
I mentioned this awhile back on twitter, but UppercuT (UC) has support for Mercurial for versioning your assemblies. In the settings file, all you need to do it tell UC to use hg. When you build your assemblies, they will use the changeset number in the version, and in the informational version, you get the hash, just like you do when using Git. Pretty sweet. By the way, UC also supports .NET 4.0 as of last week. With this knowledge you shall build ...
The announcement is up here: http://blogs.msdn.com/agile... Some of the things on the list of what’s new & improved 1. Redesign of the configuration tool – heck, that thing looked the same since the bits were acquired from Avanade quite a while back – good to see the changes. 2. Logging performance – this is has been 1 of the areas that we all need 3. Configuration improvements: XSD enabled, intellisence (yeah!) 4. Oh, and .NET 4.0 ...
[Source: http://geekswithblogs.net/E... Overview Ignoring the fashion, I still make a lot of use of DALs – typically when inheriting a codebase with an established database schema which is full of tried and trusted stored procedures. In the DAL a collection of base classes have all the scaffolding, so the usual pattern is to create a wrapper class for each stored procedure, giving typesafe access to parameter values and output. DAL calls then looks like instantiate wrapper-populate parameters-execute ...
Today I noticed some topics from questions in the beta exam 70-518 which stumped me. I am just mentioning the topics below for future understanding and reference. This exam made me feel as if I was attempting questions about .NET 4.0 Framework. 1. Content-based vs. context-based filtered routing – Deciding the nearest Geographical Database. 2. Choosing an appropriate strategy for communicating with COM components, mainframe services 3. Microsoft Sync Framework 4. PLINQ 5. Difference between Dispatcher.BeginInvoke ...
Alex (http://simpleisbest.co.uk/) does a very good job in covering the new features of .NET 4.0 and Visual Studio 2010. His focus is on the developers that have experience in development using previous versions of Visual Studio, more specifically Visual Studio 2008. The following are my views towards his book. 1. Scope / Coverage Even as the book is labeled as introduction, it is covers a broad spectrum of technologies, features and references that are focused into helping a developer quickly decide ...
With MVC2 officially released, I was involved in a few conversations regarding the feasibility of upgrading existing MVC 1.0 projects to quickly leverage the newly introduced MVC features. Luckily, Microsoft has proactively addressed this question for both Visual Studio 2008 and 2010 and many online resources discussing the upgrade process are a "Bing/Google Search" away. As I will happen to be speaking about MVC2 and Visual Studio 2010 at the Ft Lauderdale ArcSig .Net User Group Meeting on April ...