Monday, July 9, 2007

How to run an "exe" from a running program

To run/invoke an exe from the running program use
System.Diagnostics.Process.Start method with input parameter as exe name with full path and any input parameter to the exe if applicatble or just "".

e.g. System.Diagnostics.Process.Start("\test.exe","")

Monday, June 18, 2007

What’s new for .NETCF developers in Orcas ...

Orcas coming with the following new features for the Mobile developers
  • Unit testing for devices like VSTS have for Desktop and Web applications
  • Device Security Manager : to make sure that application will run on the devices with different level of security
  • Device Emulator 2.0: It is 40% faster than older one, it have battery simulation to simulate the different battery levels.
  • Device Emulator 3.0: Comes with XML config file and support for scripting e.g. VB Script helps in better testing using test scripts
  • .NETCF 3.5

Friday, June 15, 2007

What’s New for developers in Windows Mobile 6

The features provided by WM6

  • WM6 devices will have .NETCF 2.0 with SP 2 and SQL Server Compact Edition 2005 preinstalled in ROM
  • Compatible with WM5 applications
  • Support for AJAX
  • 2 New native API’s
    • Sound API : Can Play MID,WMA,WAV and MP3 file formats
    • WISP (Windows Ink Service Platform) Lite: for ink reorganization, it will help to develop character reorganization type applications.
  • New WM 6.0 SDK
  • Security Tools: These tools will help to sign the application and make the applications to run on Smart Phones and PPC. These 2 devices have different level of security settings so the application that can run on PPC (which have 1 tier security) not necessarily can run on Smartphone (which have 2 tier Security). It provides 2 tools
    • Security Configuration Manager
    • CabSign Tool

Apart from this the SDK tools available with WM6

  • Fake GPS: This will allow you to send the Fake GPS values to your device so that it would be easy to implement and test the GPS functionality in the application even if the device don’t have GPS feature.
  • Fake Server: This tool will simulate the Web services so that the application can work in disconnected mode and still can access the features of the web service
  • Cellular Emulator: Using this user can send and receive SMS/ voice calls from the emulator.
  • Hopper: This is tool that will test mobile application against random key inputs, it actually simulate multiple keystrokes and clicks on the screen to test the applications vulnerability against such inputs.
  • WM test framework: similar to test suit of the VSTS, new WM6 contains the test suit for the .NETCF developers.


Thursday, May 31, 2007

My Solution : Failure to connect to SQL Server with provided connection information. SQL Server4 does not exist, ...

Error: Failure to connect to SQL Server with provided connection information. SQL Server4 does not exist, access is denied because the IIS user is not a valid user on the SQL server, or the password is incorrect

Solution:
1. After creating your publication on the management studio, add the user IUSR_ in the security->login folder
Important: you don't have to create that user, this user already exist, so look it up under advanced search!!
2. Rightclick on that user and choose properties.
3. Under usermappings check the box of the database you would like to access, then click ok.
4. Rightclick on your publication and choose properties.
5. Select publication access list an add the
IUSR_ user and click ok.
6. Rightclick on your publication, select view snapshot status and generate the snapshot.
7. Execute the web synchronisation wizard the subscription wizard.
this wizard creates the virtual directory for the webaccess, choose annonymous access.
8. Execute the subscription wizard and use windowsauthentication.

Reference:

Monday, May 28, 2007

.NET Compact Framework 3.5 is coming

.NET Compact Framework 3.5 is coming with next version of Visual Studio code named "Orcas".
Details can be found at http://blogs.msdn.com/netcfteam/archive/2007/01/28/net-compact-framework-3-5-included-in-orcas-january-ctp.aspx

Download the beta version from here