tdsserver35.exe Error when connecting to SQLCE 3.5 DB’s(on a device) from the Desktop

October 31, 2008

i recently came across this problem when trying to access a sqlce 3.5 db on a device from the desktop… after some googling i found the fix.

problem: when you try to connect to a sqlce 3.5 db on a device, form the desktop using sql management console 2008 or VS 2008sp1(yes 2008 without the sp won’t give this error ,btw you can’t connect to a sqlce 3.5 db with sql management console 2005 or vs 2005) you might get a error like this in the device…

An unexpected error has occoured in TDSSERVER35.EXE

Select Quit and then restart this program, or select Details for more information.

System.Net.Sockets.Socket.

DETAILS:

TDSSERVER35.EXE

ObjectDisposedException

and something like this in the sql management console on the desktop…

Cannot connect to Mobile Device\Program Files\zooApp\zooApp.SDF.

——————————
ADDITIONAL INFORMATION:

Microsoft SQL Server Compact and/or .NET Compact Framework v2.0 or later is not properly installed on your mobile device or the device is not responding. (SQL Server Compact ADO.NET Data Provider)

this is happening because you don’t have the sqlce 3.5 sp1 installed on your device(vs2008 sp1 will install the desktop version of sqlce sp1, but not the device version…). get it from here. after installing it,

go to the folder …:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i in your desktop and get the two cab files listed bellow installed in your device.

  1. sqlce.wce5.armv4i.CAB
  2. sqlce.dev.ENU.wce5.armv4i.CAB
  3. sqlce.repl.wce5.armv4i.CAB

note: these might change depending on your device and your ‘needs’ (ie: if you don’t need replication you won’t need the 3rd file)…

now everything should be fine.

ref: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3745016&SiteID=1

download links for sqlce 3.5 sp1: http://blogs.msdn.com/stevelasker/archive/2008/08/07/sql-server-compact-3-5-sp1-released.aspx


XmlSerializer.Deserialize(Stream s) Strips \r out of \r\n !

August 8, 2008

I encountered a bug recently on one of the projects that i am working on. basicaly the program was getting user input through a text box(after wich all the user data gets saved as a object’s properties…) and then seriallizing it to XML and writing it to a DB. afterwards when the user wants to view this data the program would read it off the DB and deserialize the XML string to a object, that can be reprecented to the user.

when the user hit return in the text box to get to a new line it would result in ‘\r\n’ which represents a both carriege return and a new line. now when this data gets serialized, it goes in to the DB as it should. everything is fine until then. but when you try to deserialize this data that includes ‘\r\n’ using XmlSerializer.Deserialize(Stream s), it would strip the ‘\r’ out of every place where you have ‘\r\n’. this made my text boxes display some unreadable chars! this is happening because of the way XmlSerializer.Deserialize(Stream s) works. more details here(this is the page that solved my problem and teached me most of the stuff i am writing here :D ).

a quick solution would be to use something like this…

XmlSerializer.Deserialize(new XmlTextReader(Stream s))

here when you create a XmlTextReader, its XmlTextReaderproperty is by default set to false. but when you use the above mentioned XmlSerializer.Deserialize(Stream s) overload, it internally create a XmlTextReader and sets it’s XmlTextReader to true. which causes the ‘Bug’.

hope this will save some of your/my time in the feutre.


Adding Compact Framework Design-Time Attributes, DefaultValue Attributes

July 3, 2008

i was trying to add a dsign time attribute to one of my project. and the attribute was DefaultValue. i tried adding it following the example given here. But it didn’t work out for me. after experimenting for sometime i figured it out(with some help ;) ).

this is the example given in the above blog post.

        <Property Name="SelectAllOnFocus">
          <Browsable>true</Browsable>
          <Category>Behavior</Category>
          <Description>Determines whether the contents of the control should be selected when focus is moved to the control.</Description>

          <DefaultValue>
            <Type>bool</Type>
            <Value>false</Value>
          </DefaultValue>

        </Property>

but i needed to change it as follows to make it work for me.

        <Property Name="SelectAllOnFocus">
          <Browsable>true</Browsable>
          <Category>Behavior</Category>
          <Description>Determines whether the contents of the control should be selected when focus is moved to the control.</Description>

          <DefaultValue>
            <Type>System.Boolean</Type>
            <Value>false</Value>
          </DefaultValue>

        </Property>

basically i needed to give the full namespace to the type. like in System.Boolean... just bool won't work.
hope this will save some time for someone. :)

RB Source Code Released!

May 21, 2008

if you are a user of RB/RM2 then you must have noticed that recently there was no updates to RB. unfortunetly i have been too busy with my life. and Ratiomaster seems to busy too. so there was no work done in RB. IMO RM is a really neat piece of S/W. there is nothing really like it over there. I personaly prefer shu mod for cheating. and i think it is the most safe/practical thing left to cheat with. but it can’t really replace the void left by RM. RM still works but its very risky to use it!

So i am releasing the source of RB/RM2. its public now and its licened under GPLv2! ;) so all you hackers out there, who wants your freedom, now you can play and hack around with RB if you like. and make something better. i don’t know… just use your imagination. most prolly there will be some people who fork this code base to create there own clients. like copy paste this code and call it GRM :P or something like that. that is the nature in the ratio cheating community i guess :( anyways i hope there will at least someone who will carry this forward and keep it open at the sametime.

Happy Coding!

moofdev post: http://www.moofdev.org/forums/index.php/topic,2762.0.html

Direct Link: http://ratiomaster2.googlecode.com/files/RatioBlaster.source.code.release.1.rar

SVN Repo: https://ratiomaster2.googlecode.com/svn

Google Project: http://code.google.com/p/ratiomaster2


The breakpoint will not currently be hit. No symbols have been loaded for this document.

May 16, 2008

this post is a followup to

http://geekswithblogs.net/dbutscher/archive/2007/06/26/113472.aspx.

i had the same problem(the one in the tittle), and i tried all the steps sugguested in the given URL. but i couldn’t get it fixed. and when i viewed symbol info from the module window. i found out that the IDE is tring to load symbol info from a wrong path. note that i copied this solution in action from a another PC accross the local network. so then i tried deleting each and every .user(user extention) file in the soloution directory. volla! it worked then :)

The IDE was now loading the symbols from the correct path. i had to set some settings after deleting the user files though :P

note: you will find a projectA.project file and a projectA.user file when you create a project in VS IDE. same goes to a soloution. and this is the .user file that i am talking about.


Alternatives to blackcats torrents

April 26, 2008

here are some good alternatives…

LinkoManija.Net

Nordic-T

both of these site have a good collection of games. but there swarms might not be as fast as Blackcat’s ones. anyways getting in to these sites aren’t hard at all. these are good sites that are more open to people than some ultra elite site like blackcats ;)

cheers!

PS:- you will find that these sites use languages other than english most of the time. so thats a another defficultiy you will face. if you can’t read those lang’s.


How I Installed Shu Mod in Linux

April 22, 2008
  • shu version: – Hacked 2.3.0.195 (2.5.0.4)
  • linux distro :- Ubuntu
  • ubuntu version: -  8.04 LTS
  1. Install sun java JDK with apt-get install sun-java6-jdk (most of you can just install the JRE(apt-get install sun-java6-jre) and not the JDK, i needed it for other reasons….)
  2. Install Azureus in the normal way using apt-get install Azureus
  3. sudo su -> enter your password -> gedit /usr/bin/azureus -> replace the last line(starting from exec till thee end) with the following,
  4. exec    $JAVA -Xmx1024M -Djava.library.path=.:/usr/lib/jni:/usr/lib -jar /usr/share/java/Azureus2.jar
  5. Extract and get the Shu’s Azureus2.jar. copy it to /usr/share/java/Azureus2.jar
  6. Open up the Azureus2.jar(the one you just copied) with the archive manager(just double click on it!).
  7. In the archive go in to the path /META-INF/ and then open the file MANIFEST.MF file.
  8. Add the following two lines in to it
  9. Class-Path: /usr/lib/java/swt.jar
    Main-Class: org.gudy.azureus2.ui.swt.Main
  10. Save it. and Update the file inside the Azureus2.jar(the Archive manager will ask you whether to update it.. just say yes).
  11. Now lunch azureus in what ever way you prefer. ex from the menu/command line.
  12. volla! now shu mod should start.

btw: this is just a one way of doing it. there are many ways. i think you should be able to change all the command line paras and give all the option from the command line it self rather than editing the manifeast file. i m not sure thought. anyways i got it to work and thats all i wanted :)


Some Gentoo and a Lot of Time + Compiling ;)

March 24, 2008

So after all this time sneaking around gentoo i finally got the guts to go ahead and install it. so i did. there was a little problem in the beginning with the installation. which i can’t remember right now. but i was able to fix/work around it by editing some config file. and after wards everything went ok. i was following the official gentoo installation guide. i did a stage3 install. so i didn’t have to compile the compiler and the tool chain. but still it took a LOT of time :P

the most annoying thing about gentoo is compiling everything lol this is really funny(and ironic to me) because after all this is why gentoo is gentoo. its a source based distro so i have to compile almost everything that i am going to use. compiling takes a lot of time(and some hard disk space too, i ran out of disk space after about one week from the installation. but i think this is kinda obvious because i had a / partition of ~5GBs). and in turn it gives you ultra fast/ultra optimized/less memory hungry binaries. which is simply cool! but i really wish i had a fast possessor :P there are many ways to speed up the compilation, like distributed compilation… etc etc… but i never went in to any of those as this was my first gentoo installation. i wanted to keep it simple and inline with the official guide so i won’t mess things out too much.

i did the installing in about 3 or 4 days. no! it weren’t taking all that time to compile stuff. but i was working and i didn’t have sshd on ma lap(which resides at ma house btw :P ). so i put something to compile and leave for work and come back and continue… so sometimes there were some stupid errors(like failed name resolution!!!) that stops the whole emerge process.

there is a HUGE plus for you if you ever choose to go on with gentoo, that is the documentation/support etc etc is excellent! you can almost find a how to or some guide for every major thing that you would want to do to your system. ex installing VLC player…

oh btw i had a major screw up with setting my CHOST variable in make.conf. for some wired reason i had i486 in the place where i expected to see i686(the arch for my installation, this is decided when you download the stage tar ball…). i just changed the CHOST :P hehe and this is something that i shouldn’t do. the guide has explicitly told not to change it, because if i needed change it that means i have downloaded a wrong stage tar ball… but anyways it worked for me… so far. there is a lil problem with my compiler, its also i486 so sometimes some packages complain about it not been i686. so i downloaded a gcc tar ball(of the arch i686) and extracted it. and now i have two gcc’s… :P and so far this new gcc seems to work fine. it is the same version as the existing one other than the fact that it’s arch is different.

my lap starts up like lightning ;) and the apps seems to be much faster than a normal distro installation. but the most noticeable is the booting time. its really fast :)

apart from the speed, the other major advantage of using gentoo is that it makes you learn about your linux system. i have learned a plenty of things about the system’s bare bones thanks to gentoo.

its a cool system, but the only problem is that it take a lot of time to compile… :( apart from that all the other stuff about the system is pretty nice :) (oh! i should also not that gentoo have a reputation of been buggy, insecure, and google makes me feel that this is true.. ex:- if you search for some gentoo package, there are some bug reports/security holes/exploits! turning up almost all the time!)

i think i will be using this for some time atleast, after all i have compiled so much! lol i just can’t let it all go to waste. now that i have compile and sort of build my system, the most time taking annoying task would be to update… the system.

if you haven’t given gentoo a try, and if you have enough time, i suggest that you do give it a try, its work it! :D


RigPriceCalc

March 11, 2008

this is a small piece of S/W that i wrote to help calculate the price of a rig(of my choice). it seems for me i will have to wait sometime before i am able to get the perfect rig that i need :( but still i can keep dreaming ehehe :)

here is the source(c#, .net) and a binary… (please note when using these file you fill have to rename the extensions from gif to rar)

screens

Source

Binary

Hope this will be useful :)


flirting with Arch

March 9, 2008

I recently made the move from ubuntu to arch linux. i kept asking people to sugguest me a good distro. i told em all i want is that to be a simple, well documented… one. i think i asked them for some more things but i don’t recall them right now. anyways, someone recommened me arch. seen my IM client’s banner(asking for a new distro that is simple…). so i though hey why not give it a try. i mean i have heard of arch before this. i remmember reading about arch been put on a usb drive some time back. so that was the first time i heard about it.

i think for me the main reason to try arch was that, it was said to be a simple, fast, documented distro. fair enough after installing it and bringing it to a stage where i can use my it for my daily tasks. i feel that it is indeed a simple and fairly documented system. i know for a fact that there are many people out there who use the word ’simple’ to identify and discribe there distro. but when it comes to arch you feel that it is a bit more simple than most of those. it tries not to change stuff where it is not really needed.

arch have a package managment system called pacman. which is pretty cool. im a big fan of apt. been with ubuntu for about 2 or 3 years. i have grown so found of apt. i always like debain baised distros. i think apt was a main factor that made me like debian baised distros. i mean rpms were so messy… you run in to all sorts of ‘hells’(dependency hell for a example ;) )…

well i really don’t know how rpm is working these days. but when i first tried it, which was like about 3 or 4 years back. it was a pain in the neck. anyways arch is not baised on debian and it does not have apt. but i find pacman to be faily a cool package manager. it is kinda like apt in some ways. it manages dependencies. you can upgrade your system easily.. just like you would have done a distro upgrade in apt. so i think that was a another reason that made me like arch.

arch and all its apps are compiled for i686 arch. so it runs faster in my lap! which is also a grate thing :) i mean speed is something that will always add value when it comes to computers hehe(i am just speculating… or i am just guessing… so yeah it might not be true in some cases… who knows).

i installed the core packages. and then xorg, gnome… so on. i had a sound problem with ubuntu. but with arch it seems to have gone away. i got the chance to configure more settings in my system when i am installing arch. its basically like i had to get x working, then gnome and then sound… etc etc. but after all if wasn’t that hard. and i found arch wiki and the forums very helpful. i think the wiki is far from compelete but hey i am not complaining! :P it helped me a lot and i am sure it will be improving a lot in the comming months as more and more people add content to it.

arch also so have something like gentoo’s poratge thing called abs. its simply a pakgbuild file and the sources for some application. when you can’t find a application you want in the arch repos you can always search the commiunity supplied arch builds. but even if you failed to find them you can always get the source and compile it your self! lol. i mean i was thinking… what the heck. just go ahead and compile it your self. you don’t always need to download binaries… this is open source and why the hell aren’t we gaining the real advantages by just compiling it on our mashines. which is will result in a faster working program(given that you have set the correct settings… gcc flags… etc etc).  but of course the binary packages have there own set of merits :)

all in all arch is a cool system. if you like what systems like gentoo offers. but if you feel that you aren’t ready for gentoo or something like that just yet, or if you are plain lazy! :P just go with arch. its a do it your self thing(up to a certian extent of cause. they have done a lot of work to make things easier for you… ) + simplicity.

so if you are in search for a new distro give arch a try! you won’t be dissappointed :)