Archive for May, 2008
Fail to launch Web Synchronization wizard?
For the Microsoft SQL Server Management Studio CTP 2008 version, when you could not start the Web Synchronization Wizard and you received this error:
Could not load file or assembly ‘ConnWiz30, Version = 10.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91′ or one of its dependencies. The system cannot find the file
specified. (mscorlib)
This is a known issue; the alternative is to manually launch the wizard. Just go to D:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE, and look for ConnWiz.exe

Add comment May 29, 2008
Error: Configure Web Synchronization, IIS not found
When you use the Configure Web Synchronization Wizard to configure the virtual directory against a server that is running IIS 7.0, and you encounter this error message: ”IIS was not found on the Web Server. Please specify a computer name that has IIS installed”

Here is the solution:
For Vista OS:
1. In Control Panel, double-lick Programs and Features.
2. In the Program and Features window, click Turn Windows features on or off
3. In the Windows Features dialog box, expand Internet Information Services, expand Web Management Tools, and then expand IIS 6 Management Compatibility.
4. Click to select the following check boxes:
- IIS 6 WMI Compatibility
- IIS Metabase and IIS 6 configuration compatibility
5. Click OK

For Windows Server 2008, you may refer this link.
For more information, see this KB950735.
Add comment May 29, 2008
Building Windows Mobile Application Webcasts
Developing Applications for Windows Mobile Devices (Level 200) - Part I
Developing Your First Real Windows Mobile 6 Application - Part II
Using Device Capabilities and Device Functionality - Part III
In this webcast series, you learn how to access Pocket Outlook from inside your own managed application, how to add location awareness to your application, and how to make phone calls from inside your own managed application. Please join Constanze Roman and Maarten Struys to learn more about creating great applications for Windows Mobile devices.
To learn more on any upcoming webcasts, please refer to the webcast calendar.
Add comment May 23, 2008
WCIT 2008 @ KL
For the past 3 days, I was in the WCIT 2008 at KL Convention Center. As Microsoft has a very nice double-decker booth, and I have to station at the mobility showcase session.

On the first day of WCIT, Our Prime Miniter Abdullah Ahmad Badawi was touring around the exhibition area.
Microsoft Managing Director, Yasmin Madmood (The lady in yellow Baju Kurung) was taking to PM.

On the second day, Yang di-Pertuan Agong toured around the WCIT’s exhibition area.
This is Microsoft Booth, a stylish and open-concept double decker booth.

At the ground level, we are featuring Unlimitd Potential Program, Local Software Economy, Security and Interop; at the upper level, we have mobility solution showcase by our partners and a nice lounge area, which there are coffee and refreshment served.

Lorraine, Patrick, Poh Sze, Dana, Ann and Cheah, who station at Windows Mobile Showcase session.

Is it a real person? Yes, he is. I think a lot of people passed by Redtone’s booth are shocked when he moves.

Junita and Azra from Security session.

Patrick (from Interop session) and Kiat Ee.

Junita, who stations at the Security session.

Elouis and me. Now Elouis can make a very nice coffee after few days of serving coffee at the lounge area.

Our Security and Interop session, with a very big Sheild.

Photo with the pretty exhibitors.

Our male exhibitors also quite handsome, right?
More pictures at Patrick’s Blog:
http://patrickyong.net/2008/05/20/wcit-2008-microsoft-malaysia/
http://patrickyong.net/2008/05/20/wcit-2008-people-i-met/
3 comments May 22, 2008
.NET Mamak [10 May]
During March, we organized the .NET Mamak we organized for the faculty members. The response seems good. Therefore, we organize another .NET Mamak again. But this round, the invitation is sent to everyone and registration is open for public.
Why use the name .NET Mamak? In Malaysia, the youngsters like to spend time at the food stall which is selling teh tarik [Pulled Tea], nasi lemak [Pandan Rice], roti canai [Flying Bread]…chit-chating.
We are thinking to have a technical session but in a more relax atmosphere and localized style. Therefore, the name for the event “.NET Mamak” comes into the picture.
The topic we cover in the events are:
1. Learn .NET Code .NET
2. Windows Mobile Programming
3. Exploring Silverlight 2.0

After Erwin’s session, people surrended him to ask questions on .NET development.
Rengan’s session on Windows Mobile Programming - part I

The second half of the Windows Mobile Programming was my turn. I spent another hour to talk on how easy to use the managed APIs in .NET Compact Framework to build windows mobile application.

The last session will be Rohan’s session, on silverlight

We are planning another .NET Mamak session at Penang on 4th June.
Add comment May 20, 2008
TouchWall….Cool!!
Check this out, demo on the TouchWall
More reading here: http://www.crunchgear.com/2008/05/14/microsoft-touchwall-can-inexpensively-turn-any-flat-surface-into-a-multi-touch-display/
Add comment May 15, 2008
Visual Studio 2008 Deep Dive @ MMU
Yesterday, we had a “Visual Studio 2008 Deep Dive” event at MMU, Cyberjaya.

It is a full day events, and the topics covered are:
- Keynote by Tyson
- Breakthrough with Visual Studio 2008 by Patrick and Poh Sze
- Developer and Designer: The success storyby Rohan
- A New Hope for Robust and Reliable Software by Ian Su
- Continuous Integration
Tang did a introduction on this event.

Follows by Tyson’s Keynote on the overview for Visual Studio 2008.

After the keynote, the sessions started.
I have a tag team with Patrick on “Breakthrough with Visual Studio 2008″.
We show the new features available for web, windows, mobile and office developers.

Then, following by Rohan’s session on Expression and Silverlight.

After the lunch break, continue with Ian’s session on the tools in Visual Studio that available for developers and testers.

The last session is by Hoong Fai, on the Continuous Integration, which discuss on the team build in Team Foundation Server 2008.

Here is the “nearly” whole team of DPE, comes and supports this event.

Thanks to Kok Wei and Kok Chien for helping out in the Hands-on-Lab.

For my session’s presentation slide, you can download from Patrick’s blog: http://patrickyong.net/2008/05/09/visual-studio-2008-deep-dive-mmu/
Also see Stephannie’s blog for more pictures: http://www.jashomi.com/work/visual-studio-2008-deep-dive.php
I will post some the sample code I demo in the next post.
Add comment May 9, 2008
LINQ to SQL Security
The security for LINQ to SQL is in the app.config/web.config. It is similar like how people do it using ADO.net, writing connection string in the config file. So, people can still put the security configuration at the configuration file.
Example:
try
{
string connectionString = @”Data Source=server_name;database=database_name;Integrated Security=True;”;
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
Mydb db = new Mydb(connection);
var q = from c in db.Customers
where c.CustomerID.StartsWith(”A”)
select new { c.CustomerID, c.Phone };
foreach(var c in q)
Debug.WriteLine(c);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
The default behavior for LINQ to SQL is to open/close the connection for every query or operation, unless there is a transaction in scope or the connection was already open.
You can control when & where the connection is opened and close, you openning and closing it yourself.
Some security Q&A:
Q. How is LINQ to SQL protected from SQL-injection attacks?
A. SQL injection has been a significant risk for traditional SQL queries formed by concatenating user input. LINQ to SQL avoids such injection by using SqlParameter in queries. User input is turned into parameter values. This approach prevents malicious commands from being used from customer input.
Q. How do I eliminate setters from some properties when I create an object model from a DBML file (mark the .dbml file as read-only)?
A. Take the following steps for this advanced scenario:
1. In the .dbml file, modify the property by changing the IsReadOnly flag to True.
2. Add a partial class. Create a constructor with parameters for the read-only members.
3. Review the default UpdateCheck value (Never) to determine whether that is the correct value for your application.
For more LINQ Q&A, please visit this site: http://msdn.microsoft.com/en-us/library/bb386929.aspx
Add comment May 9, 2008

