Posts

Showing posts from December, 2010

Improve Deployment Times for Mobile Project in Visual Studio 2008.

While working on a project mobile device in Visual Studio 2008 targetting .Net Framework 3.5, you can run into a issue where the deployment to the emulator can take a minute or more. There are a couple of ways that will help you get around this issue. First Method Step 1: Open windows explorer and go to C:\Windows\Microsoft.NET\Framework\v3.5 Step 2: Take a backup of the file Microsoft.CompactFramework.Common.targets Step 3: Open the file Microsoft.CompactFramework.Common.targets (You can open this file in Visual Studio) Step 4: Find this line    and change this to      Step 5:Save the file Step 6: Close and Reopen Visual Studio. Second Method Step 1: Open your mobile project in Visual Studio 2008 Step 2: Right click on the project and select Properties. Step 3: In Propeties screen, go to the Debug tab and add " /p:SkipPlatformVerification=true" to the Command Line Arguments. I prefer the second method as i am not changing a system setting and it...

New NetCFSvcUtil.exe for Windows 7 Environment.

If you are going to writing WCF Services for mobile devices, you have to use the NetCFSvcUtil tool to generate  a Windows Communication Foundation (WCF) client proxy to help developers consume WCF services on device.If you have Windows 7 then use this link   http://download.microsoft.com/download/6/2/0/6205ED05-E435-44FC-AA82-B763CA5F8B1A/NetCFSvcUtil.exe to get the version of NetCFSVCUtil.exe.

"405 Error: Method not Found" When you deploy WCF Service on Windows 7.

Image
When you deploy WCF Service on Windows 7 machine to IIS 7.0 and try to browse to the service from a browser you might get the 405 Error: Method not Found. One of the reason this might happen is that the feature "WCF HTTP Activation" and "WCF Non-HTTP Activation" are not installed by default. to enable these feature go to Start --> Control Tools --> Program and Feature. Click on "Turn Windows Features on or Off". On the "Turn Windows on or Off" dialog box, go to the section "Microsoft .NET Framework 3.5.1" and check both the boxes below this feature and click on the "Ok" button to install this feature. Once this feature has been installed, you should be able to browse to the WCF Service deployed to IIS 7.0.