Click here to Skip to main content
15,886,110 members
Articles / Mobile Apps / Blackberry
Tip/Trick

Solving the "Unable to Connect to the MDS Simulator Service" Problem in Blackberry Simulators

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
8 Jul 2010CPOL1 min read 13.6K   1  
How to solve a problem in BB simulators
This tip describes a way to solve a problem that occurs in blackberry simulators.

Introduction

Earlier, I was working on developing a mobile .NET web application and had to test the same in a Blackberry Simulator. The first time I started trying out, it was a breeze, the page opened up and I was able to browse the web site. But the next time I fired up my browser from the simulator, nothing seemed to work. I was getting the following error every time I fired up my browser (my MDS was up and running).

"Unable to connect to the selected mobile data service..."

I tried in vain to solve this problem by various means, but nothing seemed to work. So I set out Googling and found no posts regarding this. Finally, I found a post that was discussing about launching the simulator from the command line. I used some of the command line parameters described in that post and at last, I was successfully able to get it working again! Let me get to the part where I describe how the issue could be solved.

Say, you are running the 9530 simulator (BB JDE version 4.7.0). Open the "9530.bat" file that launches the 9530 version of the simulator. These batch file(s) would be located in application directory's simulator folder or in the directory where you installed the simulator. Open up this file in Notepad.

For example:

@echo off
fledge.exe /app=Jvm.dll /handheld=9530 /session=9530 /app-param=DisableRegistration
/app-param=JvmAlxConfigFile:9530.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A 

Add the attribute /clear-flash after /pin=0x2100000A (i.e., towards the end of the file). So the modified batch file would look like:

@echo off
fledge.exe /app=Jvm.dll /handheld=9530 /session=9530 /app-param=DisableRegistration
/app-param=JvmAlxConfigFile:9530.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
/clear-flash

Now try launching the simulator and you should not be facing this problem again.

History

  • 5th July, 2010: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Just another passionate software developer!

Some of the contributions to the open source world - a blog engine written in MVC 4 - sBlog.Net. Check it out here. For the codeproject article regarding sBlog.Net click here!

(Figuring out this section!)

Comments and Discussions

 
-- There are no messages in this forum --