Tag | Microsoft Posts

At http://ubelly.com/2011/06/free-webmatrix-e-book/ there is an e-book on Microsoft Web Matrix that is free to download.

In this article we will use ASP.NET MVC 3 and the Windsor Container to explore ideas around modular software design. The principal aim of this guide is to show you how to store controllers and views in a separate assembly and load them at run-time. /* 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; ...
When I was at TechEd 2011 in Atlanta, I had the pleasure of meeting a bunch of the DevExpress folks and working out some of the details for a series of Windows Phone Development webinars. Here they are, for your viewing pleasure: #1 Introduction to WP7 Development with Silverlight and XNA - http://tv.devexpress.com/#W... #2 Deeper Dive Into XNA on Windows Phone - http://tv.devexpress.com/#W... The source (in C# and VB.NET) for the demos in this talk can be found in my book, or ...
One of of my colleagues wrote a LINQ query similar to the following: var q=from i in keys select GetTuplesOrPossibleNull(i) into kvp orderby kvp.Item2 select kvp; I’ve noticed, that for some data it throws null exception on kvp.Item2 in orderby statement. It was found that calling function sometimes return null instead of expected key-value pair. I thought where I should insert check for null and my first idea was to add check in where statement before select function call, something like the following ...
Friday June 17th, 2011 there will be a Windows Phone Garage event. It will be held at Immedion at 78 Global Drive, Suite 100, Greenville, SC. There are only 40 spots, so register now at http://www.eventbrite.com/e... The idea behind the Windows Phone Garage is simple. Come out, install the tools, learn how to write a Windows Phone application, then build one. Best of all, it's free, and everyone is invited! The second half of the day is an open lab, and assistance will be available. ...
Technorati Tags: TFS 2010 Database,TFS 2010,TFS 2010 Administration Considering you have an advanced TFS installation such that the app tier and the data and reporting tier are spread across multiple servers and the data tier goes down because of a network failure. The below error message may seem familiar, Team Foundation Services are not available from server xxx. Technical information (for administrator): Unable to connect to the remote server. Now your first reaction would be to verify whether ...
I figure it should be in bloody good fun to start off my first real post with a rant on the future of Microsoft Windows, or the lack thereof. You see, my issue is that I have seen the preview of Windows 8 video. It is just further evidence of the fact that Microsoft still does not “get” our issues with the OS. I don’t need a new skin on my OS, I need new and more secure plumbing that actually works. Don’t put the OS into tiles and call it fun. Redesign the bloody thing to make it more secure, easier ...
Today a new Template for Microsoft Expression Blend SketchFlow was released – Windows Phone 7 SketchFlow. Do you have SketchFlow? [If not download the 60-day trial] the new Template can be downloaded from here: http://wp7sketchflow.codepl... With the new SketchFlow template you can create very interactive prototypes that feel like native Windows Phone 7 experiences. Here is the list of the Mockups for Windows Phone 7 that do more than your typical Textbox-Sketch: A long time SketchFlow and Blend ...
Just ran across an issue where the miniport devices were accidently removed from a system. Not having these installed caused the system to have network driver installation and connectivity issues. Here are the steps to re-install WAN miniport devices Step 1: Uninstall WAN Miniport Devices 1. Open Device Manager (devmgmt.msc) and on the view menu select Show hidden devices 2. Under Network adapters, you will see WAN miniport devices (IP, L2TP, Pppoe, PPTP). If you don’t see these, skip to the Step ...
Well it works ! Here is a simple game using the Fex Panda with 10 LEDs wired to Digital ports 0-9, using the on board button for input. The LEDs scroll Knight-Rider-Style and you have to press the button when the left hand led is on. The game keeps speeding up until you fail and then displays your score before restarting. It only too an hour to write and works a treat. Click the YouTube Link to see the game in action using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; ...
I just have to write about design data because it makes my life so much easier. More than I could imaging before I started to use it. There are two ways for creating design data; Either you let Expression Blend do it for you or you just write your own in visual studio. Basically it is a xml file representing your model. Creating The fast way: - Right click a view (or any xaml-file) in your project and choose "Open in Expresion Blend" - Click here: - Choose "Create sample data from class" and then ...
SQL Tidbits Have you ever had a need to see storage information for all your databases in a SQL Server? As they say there are many ways to skin a cat all based on your need. Back in the day I was taught to use SYS.SYSFILES, its handy and it does give you what you need but suppose you wanted a picture of your entire SQL Server? Then this solution is not viable that’s when we divert to SYS.MASTER_FILES according to MSDN http://msdn.microsoft.com/e... this system view contain ...
Hopefully you don’t deal with this often. But if it does happen. A couple of things to keep in mind. The steps to 1) rename a server 2) potentially needing to transfer logins. Mind you my reference and examples here are for Stand-alone Instances. There are at least 2 options for each. The ones that paid off for me are: Renaming sp_dropserver <old_name> GO sp_addserver <new_name>, local GO Followed by a: Select @@SERVERNAME Reference from: http://msdn.microsoft.com/e... ...
NOTE: The variable PropExists as bool has been already created The Property of interest is BTS.RetryCount The Message is Message_In The list from Using Operators in Expressions (http://msdn2.microsoft.com... has the typical list of stuff that you expect in C#, multiplication, bit operations (shift left and right) and Boolean operators, but a couple of extremely useful constructs are available that are unique to BizTalk. The most important of these (in my humble opinion) ...
It is no big news that whatever the architecture you plan and implement, soon or later you'll start to see some code "bad smells". In the early phase of implementation you might do some team training and explain how your developer team should write code using the planned architecture and design (patterns). Despite this effort, you cannot expect people to just follow your implementation recommendations every time. At first, you might consider using gated-checkins or CI builds with VS code analysis. ...
Expert Days is an annual software development conference held by E4D in Israel. This year, for the first time, some of CodeValue’s experts have joined forces with E4D and are participating in order to give you, the attendee, the best possible value. If you are a software developer, software architect, team leader or somehow interested in the hottest available Microsoft technologies – this is definitely the conference you want to be at. The conference is held on 10/07/2011-14/07/2011, and there are ...
When determining infrastructure requirements for a client often the question of whether to use BizTalk Standard or BizTalk Enterprise comes up. If the client is a small enterprise with limited redundancy and scaling needs the Standard Edition of BizTalk should work fine. If the client requires any redundancy or scaling then Enterprise is almost certainly necessary. In other words if your requirements dictate that you require more than one BizTalk server you will need the Enterprise Edition of BizTalk ...
In Visual Studio I’ve started the application with debugging(F5) and then tried to click url in one of the source code comments. After opening URL within VS I suddently start to receive dosens of messages like the following for each breakpoint that I have: --------------------------- Microsoft Visual Studio --------------------------- The following breakpoint cannot be set: At MyClass.cs, line 836 character 6 ('Namespace.MyClass.MyFunct... line 17) Unknown error. --------------------------- OK ...
In the month of May we met again for the .NET Usergroup, and I presented some introductory material into software design and architecture. The talk was aimed at looking into new ways of software design and managing of complex software components by using domain driven approach. I talked about best practices, coding patterns and DDD, TDD and DataObjects.NET (http://dataobjects.net). I advocated for best practices presented by the best practices team http://msdn.microsoft.com/e... ...
I needed to validate customer email addresses. Many articles suggested to use different regEx , but they are not the same and not easy to identify, which is the best. So i decided to use MailAddress, which throw exception if MS implemented validation failed. It world be good if the class would provide Validate or TryParse method to avoid costly exception. /// <summary> /// //// Validating E-mail address /// </summary> public static class MailHelper { //TODO: use Reflector or find some ...
A couple of years ago, I used 'something' to encrypt the connectionstring on a production server. But I never wrote anything down about it. And in the other projects I did later, I never had deploy to the production server. Yesterday, I had to use it again but I couldn't find it. Why? Because I never wrote about it. This blogpost is copy of Chirag Darji post about the encryption of the connectionstring in web.config. All credits to him! The most sensitive information stored in web.config file can ...
I wanted to get familiar with SharePoint 2010 because I have noticed how the market is starting to demand it. Also, most of the SharePoint 2010 guides on the net are outdated. They show everything from registry hacks/editing xml files to installing hot fixes/service packs. My guide uses the latest bits as of 6/7/11 to create a SharePoint 2010 server inside of an Virtual Machine. This will be more than enough to begin creating Silverlight Web Parts inside of SharePoint 2010. NOTE: I did not want to ...
If you were at TechEd 2011 in Atlanta, you likely heard or saw what is coming in the next release of the Visual Studio product line and technologies. Here is a summary of some of those items: Visual Studio Roadmap http://www.microsoft.com/vi... The Future of Microsoft Visual Studio Application Lifecycle Management Presentation from TechEd http://channel9.msdn.com/Ev... ...
Recently I was building a VM for a BizTalk 2006 R2 project. My VM configuration was : Windows 2003 R2 SQL 2005 with SP4 Visual Studio 2005 with SP1 BizTalk Server 2006R2 I installed the BizTalk Server 2006 R2 SP1 update from the Windows Update. Life was good so far. Next I got requirement to use WCF SQL adapter and there I went and started installing the pre-requisite for it. 1. WCF LOB Adapter SDK SP2 2. Microsoft BizTalk Adapter for SQL Server. After that I went and tried to Add the Adapter metadata ...
Yes, Microsoft is getting quite a reputation for abandoning or deprecating it's data access products/libraries. One thing you can do is download a 3rd party product called dotConnect by DevArt. The express edition is free. http://www.devart.com/dotco... ... however, if you are working in a shop that doesn't like its development team to use not well known third party tools, there's an alternative--but it still requires that you go to a non-microsoft source. Use Oracle.DataAccess.dll ...
Workflow 4 State Machine – Distributed Tracking Visualization · Disclaimer: This post requires an understanding of WF 4.0.1 , WCF and WPF. · Before I explain the how, look at the following image for the what: I am debugging a REMOTE workflow STATEMACHINE instance, and from tracking information sent from server, I am able to highlight the current state in my client! Visual Workflow Tracking Sample – a Big Ball of Mud · Workflow 4 provides the System.Activities.Presentat... class which ...
In the next generation of SQL Server, codename “Denali”, there is a new feature named Data-tier Application Framework v2.0 Feature Pack CTP to enhance the data import and export with SQL Server, and currently it had been available in SQL Azure Labs. Run Data-tier Application Locally From the portal we know that the Data-tier Application CTP2 can be executed from the development machine through an EXE utility. So what we need to do is to download the components listed below. Only one thing, the SQLSysClrTypes.msi ...
Check out the Top Five most popular news at SilverlightShow for SilverlightShow Top 5 News for May 30 - June 05, 2011. Here are the top 5 news on SilverlightShow for last week: Windows 8 apps going html/js HTML5? Ok, so let’s also deploy Microsoft Silverlight onto Android then Windows Phone 7 SQL CE – DataContext Tables Telerik Announces Support for Windows Phone 7 Mango, Ships the Fastest WP7 Chart Yet Another Podcast #37 Silverlight HTML5 & Developers Part 2 Visit and bookmark SilverlightShow. ...
Thanks to Brian Hurst and Microsoft for the fantastic Ken Schwaber/Richard Hundhausen talk at the Reston, Virginia Microsoft facilities in April. It was refreshing to see Ken Schwaber take a fundamentally different approach to "the Scrum talk". He focused on the body of software development research, and how the results of this research leads us towards certain sounds practices - which are also tenants of Scrum. I will blog more about some of the key points I took away from the talk, but for now ...
In a previous post, I talked about how to build your own custom Media Type Formatter with the WCF Web API. In this post, I used HAL as the media type to expose an API for Nerd Dinner. There are a core set of guiding principles to building RESTful services and one of those principles is that documentation efforts for a service should be focused on defining the media type(s) and link relations that the service uses. While it’s important to have a consistent pattern for URI design, it’s really not that ...
This is a quick introduction to moving from our own internal assembly repository to using NuGet. It’s terse for a reason, just a note to self and those I work with: What we had One source of builds external to our code repository Didn’t check in external builds Used DVCS to share single feed Rake task to update and copy latest builds local checkout (this location is excluded from VCS) Automatic updates if changed in central repository and version not incremented Caused problems when changes were ...
Technorati Tags: TFS 2010,TFS Power Tools,UnShelve Often i have seen fellow developer working on one branch and later realizing that they intended to check in the code in a different branch, a simple example, working on the MAIN branch and later realizing that the code needs to be checked in to the QA branch. TFS power tool comes to your rescue… when you need to unshelve to a different branch. The power tool command /> tfpt.exe unshelve can be handy for the following, Allows a shelveset to be ...
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* 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; ...
If you’re writing a custom SharePoint Claims Provider (SPClaimProvider) in order to augment claims, it’s important to also understand what process is executing your specific code path. In the situation where you are making calls to a DB or service endpoint you will need to understand which process actually makes that call. In situations when running in a Trusted Subsystem model, you’ll also need to RunWithElevated in order to have that code path execute in the context of the Windows Principal for ...
This morning I was reading through some of my usual blogs and came across some very interesting and updated information relating to BizTalk performance and hyper-threading. The two source pages are: http://appfabriccat.com/201... http://msdn.microsoft.com/e... If you take a look at these pages, you can see that the recommendations on hyper-threading and the BizTalk platform ...
In this Issue: Rudi Grobler, Oren Gal, Michael Washington, Vikram Pendse, Kunal Chowdhury, Jesse Liberty, Xpert360, Jaana Metsamaa, Charles Petzold, and Peter Kuhn. Above the Fold: Silverlight: "Getting Driving Directions in a Silverlight Application - Part 2 - Advanced Features" Oren Gal WP7: "Windows Phone Screen Shots" Charles Petzold LightSwitch: "How to Create A LightSwitch Popup" Michael Washington Shoutouts: Congratulations go out to my buddy András Velvárt for SurfCube Wins Microsoft Innovation ...
Media Type Formatters in the WCF Web API provide a way for the consumer of your service to not only specify the format they want for their response, but also specify the format they are using on their request. Typically the desired response format is specified in the “Accept” request header and the request body format is specified in the “Content-Type” request header. Media types are central to building any RESTful service. Two of the most common media types are “application/xml” and “application/json”. ...
As promised, here is a link to all of the applications from my session at CodeStock 2011: Entity Framework Profiler Studio Styles Reflector Telerik JustDecompile Beta dotfuscator CodePaste.NET Silverlight Spy WP7 Desktop Marketplace LINQPad Snippet Manager Browser Shots Snagit 10 7-Zip File Manager Code Converter CPU-Z Notepad2 SSDlife Free Regular Expression Library DLL-files.com Microsoft Web Platform Installer Visual Studio Gallery Search Everything Fiddler2 Paint.NET Microsoft Expression Blend ...
ReSharper by default does not recognize Contract.Requires as an annotation hint, that the proofed condition furthermore is true. So it comes to the effect, that using the following contract definition causes ReSharper to squiggle the next access and output a wrong hint: To suppress this behaviour ReSharper needs additional external annotations information. I followed in some points this thread: http://stackoverflow.com/qu... ...
I recently spent far too long debugging a problem with our Azure application. We have two Azure cloud projects, and they both started refusing to start at about the same time, with different error messages. The web applications they house both worked absolutely fine when deployed to local IIS. There turned out to be two different problems - both very simple - so I thought I'd share what they turned out to be :) Problem 1 One application failed to start in Azure, with the error message "Unable to ...
http://stackoverflow.com/qu... I’ve used SQL script similar to paul_nielsen’s to Create Indexes for Foreign Keys and added “if not exists” condition DECLARE @SQL VARCHAR(max); SET @SQL = '' SELECT @SQL = @SQL + 'if not exists (select * from sys.indexes where id=object_id(''' + TableName +''') and name=''Ix' + ForeignKeyName+''') CREATE INDEX Ix' + ForeignKeyName + ' ON ' + TableName + '(' + ColumnName + '); ' FROM ….... --SELECT @SQL ...
Great content available to get started with Windows Azure and SQL Azure. Windows Azure SQL Azure Introductory Videos Introductory Videos Deep Dive Deep Dive Tutorials Case Studies Case Studies Events Events ...
I was pleasantly surprised by my inbox yesterday to find that my session submission for VMWorld 2011 had been accepted! I had been trying for many years to break in to doing some sessions at Microsoft's TechEd - always to no avail. It always seemed like you had to know the secret handshake, be an MVP or work for Microsoft. I felt like I was destined to settle with speakling at user groups, no matter how badly I tried to get more experience in front of larger groups. So when my local VMWare account ...
Vista has an auto tuning feature which is hit and miss, depending on what network appliances/cards/devices you've got hooked up. Try this: 1. Navigate to Start>Programs>Access... Command 2. Type: netsh interface tcp show global 3. Look the line for receive window auto tuning. If it says highlyrestricted type this command (all on one line): netsh interface tcp set global autotuning=restricted 4. Try browsing, if it isn't any better, enter the same command like, just change restricted ...

A great guide that will give you information on how to test, monitor, capacity plan, and troubleshoot Microsoft SQL Server Analysis Services OLAP solutions.

Get it here ... http://msdn.microsoft.com/en-us/library/hh226085.aspx

I was chatting the other day with someone about adapters for connecting to LOB applications and an interesting point came up which I thought id share my thoughts on. The scenarios is that if you have a line of business application for arguments sake lets say its dynamics CRM which has a BizTalk adapter available but also has an existing web service API (or some other protocol based API). Which should you use for integration? In my opinion the answer to this is the usual "it depends" answer. I think ...
In my previous post, I covered how field, method, and other types of signatures are encoded in a .NET assembly. Custom attribute signatures differ quite a bit from these, which consequently affects attribute specifications in C#. Custom attribute specifications In C#, you can apply a custom attribute to a type or type member, specifying a constructor as well as the values of fields or properties on the attribute type: public class ExampleAttribute : Attribute { public ExampleAttribute(int ctorArg1, ...
Recently while performing a .Net unit testing on some .Net dll, I kept getting the below error - 'XXX is a strongly named assembly. It will need to be re-signed before it can be executed. Warning VSP2013 : Instrumenting this image requires it to run as a 32-bit process"...... A little of google revealed that since its a strongly named assembly and while performing unit testing it needed to be re-signed or I need to remove the 'strong name' all together... As I didn't had the orginal private key file ...
When I've tried to deserialize dictionary whis strongly typed(and not string) keys, I've got an exception similar to the following Type 'System.Collections.Generic... System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5... mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934... is not supported for serialization/deserialization of a dictionary, keys must be strings or objects. // Type Dictionary`2 ...
Jquery auto-complete, WCF Services and cross domain nightmares Gone are the days of using the Ajax toolkit, it’s far too bloated and can be very difficult to debug if anything goes wrong. So like many other developers I have made the conscious effort in swapping my attention to jQuery instead. I have recently been working on a project where I needed to implement a simple auto complete dropdown, so instead of reaching for the auto-complete extender from the Ajax toolkit I decided instead to use the ...