MSDN Flash - Volume 11, Number 12: June 4, 2007

From the Editor

If you've tried the early release trials of Visual Studio code name "Orcas" , you are probably aware of the new language features known as Language Integrated Query (LINQ), which add data querying capabilities directly to Visual Basic and Visual C#. For an in-depth look at the new query integration make sure to check out the June issue of MSDN Magazine, and specifically Ting Liang's and Kit George's article Unleash the Power of Query in Visual Studio "Orcas". The authors explain the LINQ syntax, the supported clauses, how to write queries and how to use the query results.

Also in MSDN Magazine, technical editor Stephen Toub explains in the .NET Matters column how .NET Framework users can create new console applications and use the classes from System.Windows.Forms to enable their console applications to handle any kind of Windows message.

If you've been on the MSDN site lately, you've noted some changes. MSDN now has a new look with improved search and navigation. In response to customer suggestions, we've made it easier to find relevant information by allowing you to refine your search results to particular products and technologies and scope the results to a particular kind of content, such as downloads or the MSDN Library. You can now extend your search beyond MSDN to other resources such as blogs, forums, and the Knowledge Base and see the results in the language of your choice. Try out the new MSDN Search and tell us what you think. Then check out the new contextual, tabbed navigation in MSDN. You'll notice that links in a 0. are now scoped to content about that product or technology. And as a result, the Library content is no longer separate from the Developer Centers. That means less clicking for you. You can see the tabbed contextual navigation now on the MSDN home page and on the ASP.NET, Visual Basic, Visual C#, Visual C++, and Windows Vista Developer Centers. Of course, none of these search improvements would be possible without the new Windows Live Search and the Windows Live Search API made it much easier to build these new features. See them for yourself.

Thanks for reading.
Editor, MSDN Flash

Keep those cards and letters coming!


Get Just the News You Want...

Customize Your MSDN Flash

By personalizing your profile, your MSDN Flash will contain links to technical articles, news items, and developer resources tailored to the topical areas you choose. Change your choices any time by coming back to the customization page.


MSDN Evaluation Center

Evaluate the 2007 Office System

Evaluate Microsoft Office Enterprise 2007 and get an overview of the new user interface, or evaluate SharePoint Server 2007 and use the new developer-centric features to keep your apps rolling. Design a custom workflow that is triggered on file creation or change when you evaluate SharePoint Designer 2007.

Coming Soon: Evaluation experiences for SQL Server 2005 and Visual Studio 2005.

Evaluate it Now: Windows Server 2008

Find out what's new with Windows Server 2008. Register and download the evaluation software to explore the new functionality and powerful improvements to the base operating system. You'll receive technical resources right here with every edition of MSDN Flash.

Tech Resource Preview: Channel 9: Virtualization

Windows Server 2008 Evaluation
Additional resources to enhance your evaluation experience with Windows Server 2008:

Windows PowerShell: Origin and Future

Bruce Payette, author of the Windows PowerShell scripting language and an original PowerShell team member, discusses the design goals and origins of the PowerShell language and what's in store for its future.

Scott Hanselman & Jeffrey Snover Discuss Windows PowerShell

Learn how to leverage Windows PowerShell to automate financial application management, and how to easily extend Windows PowerShell to solve business problems.

Windows PowerShell Blog

Follow the blog of the Windows PowerShell team.

Windows PowerShell in Windows Server 2008 Webcast

June 20, 1:00 P.M. Pacific time


News for Students

Summer is here! Now's your chance to do some fun development, get certified, and master your newly acquired coding skills.

Free Microsoft Certification Exam

First-time student and faculty test-takers: Microsoft Certification can help validate your skill set and make a difference when it's time to apply for that job or promotion. This offer is valid through June 30, 2007.

Facebook Developer Toolkit

Want to do more with your Facebook account? Create cool, fun Windows applications and Web sites with the Facebook Developer Toolkit. The walkthrough videos show how easy it is.

Popfly (Alpha) Is Here

Not a hardcore programmer? Popfly is a free, fun, easy way to build and share mashups, gadgets, Web pages, and applications. Sign up for the waiting list, install Silverlight 1.0 (Beta), and get going!

Game Development Using XNA
For the hobbyist game developer, or for those interested in taking their gaming skills to the next level:

Intro to XNA Part 1: Building Tiny Tennis

Intro to XNA Part 2: Running Tiny Tennis on the Xbox 360

Intro to XNA Part 3: More Sound and adding Text

All you need are these free tools to start creating and modifying fun games for you and your friends to play:

Visual C# Express

XNA Game Studio Express

Take Parts of the MSDN Library Offline with PackageThis!

Created by the MSDN development team, PackageThis! allows you to choose documentation sets from the MSDN Library to save as HXS or CHM format files. Simply select nodes in the MSDN Library tree view to package as your own local mini-library, or to build into your own library. Multiple languages are supported.


Government Resources

Microsoft Developer Conferences
June 20 - New York City, NY
Join us for a one-day technical conference on high-performance computing (HPC) that comprises sessions on Microsoft's Windows Compute Cluster Server (WCCS). There is no fee to attend.


Web Resources

Put LINQ to the Test

Language Integrated Query, LINQ, adds data querying capabilities directly to Visual Basic and Visual C#. Learn all you can this month in MSDN Magazine.


Your personalized MSDN Flash is showing this item because you chose to receive SQL Server and Data Access news. Click the icon to customize your profile. Number One Price/Performance for 3TB TPC-H Non-Clustered Benchmark

SQL Server 2005 sets price/performance record for data warehousing performance on Microsoft Windows.

Save While You Build Your Microsoft .NET Development Skills

Find discounted e-learning, download free sample book chapters, and save on books and other resources geared toward Visual Basic developers.

Find Free and Discounted SQL Server 2005 Resources

Discover this central place to find special offers on SQL Server 2005 e-learning, books, classroom training, and certification.

E-Learning: Save on BizTalk Server 2004 Courses (Worldwide)

Use promotion code BZS10 during checkout to save 10 percent on all BizTalk Server 2004 e-learning collections. Offer expires June 30.

Special Offers on Office 2007 Resources for Developers

Get great discounts on books, e-learning, classroom training, and certification for developers working with the 2007 Microsoft Office system.

Take a Free Windows Vista Developer E-Learning Clinic

Learn about working with WPF, WCF, and WF and Visual Studio 2005 with these e-learning clinics, free for a limited time.

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Guidelines for Creating InfoPath 2007 Converters

Learn how to create InfoPath 2007 converters for importing data from other types of forms and data sources, and for importing and exporting form templates from other form file formats.

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Hide Tabs on the Office Fluent Ribbon Using a Toggle Button (Visual How To)

Performing various actions on the 2007 Microsoft Office Fluent user interface (UI), such as hiding tabs, requires only a few lines of XML and programming code.

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Enable Users to Act on LOB Data with Business Data Catalog Actions (Visual How To)

Use parameterized URLs, also known as business data Actions, to link entities to other forms of business logic hosted on the Web site.

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Bind Data to User Controls in Excel Using Visual Studio 2005 Tools for Office SE (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Add (All) Options to Combo Boxes or List Boxes in Access 2007 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Change the Type of a Word 2007 Content Control (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Create a Solution Package in Windows SharePoint Services 3.0 (Visual How To)

45% off Select Training Kits at Bookpool

Shop online at Bookpool.com through June 30 to save 45 percent on select training kits and related resources from Microsoft Press.

Hot Off the Press! New Books from Microsoft Press

Inside Windows Communication Foundation

Microsoft Mobile Development Handbook

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Using Forms Solutions in Groove 2007

Learn about the capabilities available in the Groove Forms Tool and Groove InfoPath Forms Tool and compare the benefits of each to help you decide which tool to use in your solutions.

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Updated! Project Server 2007: Getting Started with a New Platform for Developers

Explore the completely new development platform for Project Server 2007 that is built on .NET Framework 3.0 and Windows SharePoint Services 3.0.

Work with Active Accessibility in the 2007 Office Fluent User Interface

Learn the accessibility options available to 2007 Microsoft Office system developers to help in developing assistive technology applications.

Office Developer How-to Center

Discover task-based samples to help you learn the new features of the 2007 Microsoft Office system programs, servers, services, tools and technologies.

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Create a Custom HttpHandler (AuditLogWorkbook.ashx) in Windows SharePoint Services 3.0 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Configure IntelliSense with CAML Files When Developing for Windows SharePoint Services 3.0 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Create Calculated Columns in Excel 2007 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Create User Prompts in Access 2007 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Display Data by Using the SPGridView Control in Windows SharePoint Services 3.0 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Read Entries from the Audit Log in Windows SharePoint Services 3.0 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Retrieve Custom Building Blocks from Templates in Word 2007 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Run Commands When Inserting Building Blocks into Word 2007 Documents (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Run Commands with Elevated Privileges in Windows SharePoint Services 3.0 (Visual How To)

Your personalized MSDN Flash is showing this item because you chose to receive Microsoft Office Solutions news. Click the icon to customize your profile. Write Custom Entries to the Audit Log in Windows SharePoint Services 3.0 (Visual How To)


Security for Developers

Tune into the Cryptography API: Next Generation Overview MSDN Webcast

June 5, 1:00 P.M. Pacific time
CNG, Microsoft's new cryptography infrastructure built into Windows Vista and Windows Server 2008, is fully Suite B compliant and takes advantage of the new ECC cryptography algorithms.  Learn how the new CNG works, and what kinds of changes there are from CAPI.


Tune into the Developing for User Account Control Overview MSDN Webcast

June 8, 1:00 P.M. Pacific time
Explore Windows User Account Control (UAC), a new security feature in Windows Vista. Discover how to develop using least privilege, and learn how developing with UAC reduces the security exposure and the attack surface of both the OS and applications.

Testing in the SDL

"You can't test quality in." It's a truism coined long ago and an accepted fact of software development. Yet, for security, testing is arguably the most talked about aspect of the Security Development Lifecycle (SDL).

Background and Overview for Days-of-Risk

Is a DoS a valid security problem?

ASP.NET Membership Admin without Visual Studio

What's wrong with this code, part 20: Yet another reason that named synchronization objects are dangerous, the answers

Half Of Windows Vista Adoption Driven By Security

Secure coding lessons from Microsoft

Windows Vista ISV Security Paper Available

Security Education v. Security Training

Blue Hat 5.0

More Security...


Code Sample: Property Value Estimator: Mashup with Microsoft Office Live and Zillow

Download a sample code mashup that uses APIs provided by Zillow to estimate the value of the property located at the home address of a contact included in a Microsoft Office Live Business Contact Manager application.


Case Studies, KB Articles, & How-tos

Credit Suisse Develops and Deploys SOX 404 Compliance Solution using SQL Server 2005

To comply with the Sarbanes-Oxley Act of 2002 (SOX) Section 404, Credit Suisse used Visual Studio 2005 and the Microsoft .NET Framework to develop an application based on SQL Server 2005 and accessed across the Web through a portal supported by SharePoint Services.

FIX: Error message when you try to close the Visual Studio 2005 IDE: "Visual Studio cannot shut down because a modal dialog is open"


Retalix Solution Saves Costs, Increases Efficiency, Improves Shopping Experience

Microsoft development tools allowed Retalix to create solutions that simplified distribution of software updates and data, increased employee and customer satisfaction, and offer the ability to add unique and advanced software in the future.

Testing Shows SQL Server 2005 Exceeds Needs for Global Warehouse Management

RedPrairie estimates that by using the Microsoft Application Platform, its solutions can be deployed for less than half the cost of UNIX-based hardware and software.

FIX: An ISAPI DLL is not registered when you run an ATL Server application that contains performance counters in Windows Vista

FIX: Visual Studio 2005 may stop unexpectedly when you try to close the current solution or to exit the Visual Studio IDE

You receive an error message when you try to create a Visual Studio 2005 ASP.NET project on a Windows Vista-based computer

Try/Catch/Finally Construct Bug in .NET 1.x

Your personalized MSDN Flash is showing this item because you chose to receive Visual Basic 6.0 or earlier news. Click the icon to customize your profile. FIX: Error message when you try to load an ActiveX control in an application that you built by using Visual Basic 6.0: "Failed to load control"

More KB Articles and How-tos...
More Case Studies...


C/C++ KB Articles

Click the icon to customize your profile. Your personalized MSDN Flash is showing these items because you chose to receive C/C++ news. Click the icon to customize your profile.

FIX: Error message when you try to build a Visual C++ project in Visual Studio 2005: "Access violation"

FIX: You cannot link a C++ object file that contains MBCS symbols in Visual C++ 2005

FIX: An application that is built by using Visual C++ may start slowly in Visual Studio 2005 when you use 10 or more breakpoints to debug the application

FIX: Error message when a Visual C++ 2005 application tries to open a file in debug mode in Visual Studio 2005 Service Pack 1: "Too many open files"


SQL Server KB Articles

Click the icon to customize your profile. Your personalized MSDN Flash is showing these items because you chose to receive SQL Server and Data Access news. Click the icon to customize your profile.

FIX: An access violation occurs when you run the SqlCeEngine.Verify method to check for the consistency of a database in SQL Server 2005 Compact Edition or in SQL Server 2005 Mobile Edition

FIX: Managed applications that use SQL Server 2005 Compact Edition 3.1 may stop unexpectedly on Windows Mobile 5.0 ARMV4i-compatible devices if the location of the SQL Server Compact Edition DLLs changes

FIX: The result may be sorted in the wrong order when you run a query that uses the ORDER BY clause to sort a column in a table in SQL Server 2000

FIX: Changes in the publisher database are not replicated to the subscribers in a transactional replication if the publisher database runs exposed in a database mirroring session in SQL Server 2005

A memory leak may occur when the Merge Replication Agent retries a connection in SQL Server 2005

FIX: Blocking and performance problems may occur when you enable trace flag 1118 in SQL Server 2005 if the temporary table creation workload is high

FIX: An access violation may occur when you try to log in to an instance of SQL Server 2000


Partner News

Evaluate PreEmptive's Code Protection, Tamper Detection, Application Analytics Solution

Try Dotfuscator today and discover why thousands of companies use it to create secure, compact .NET applications with Runtime Intelligence.


SlickEdit Tools v1.1.1 for Visual Studio 2005 now Available

Discover faster, more accurate development for Visual Studio 2005 with this collection of powerful utilities. Download a free 15-day trial.

Announcing CA ERwin Data Modeler r7.2 Evaluation Software

Trial CA ERwin Data Modeler for design visualization, task automation and advanced modeling capabilities to significantly accelerate time-to-value for MS VSDP and SQL Server 2005 Implementations.

Free Trial for QuarX - Ultimate Suite for .NET

New joint suite between Intersoft Solutions and Nevron to provide a full selection of WinForm and WebForm components with a competitive licensing scheme.

Free .NET and DevForce Training in June and July

IdeaBlade is pleased to offer free.NET training (a US$2500 value) in June and July. Space is limited, so register today.


MSDN Events

Slice Your Coding Time with Innovative Solutions from MSDN Events

• Session 1: Next-Generation Identity Management: Windows CardSpace
This session will provide a step-by-step tour of how CardSpace is part of the broader standards-based identity metasystem.

• Session 2: Revving up Cross-Browser and Cross-Server Web Sites with the Microsoft AJAX Library
In this session, we'll provide an overview of the client-side script library and a detailed demonstration of how to inject greater interactivity into an existing Web site using the Microsoft AJAX Library.

• Session 3: Best Practices for Building Next-Generation Web Applications Using Microsoft ASP.NET AJAX
This session provides the top lessons learned about how to write robust and secure ASP.NET AJAX-based Web applications.