Is this a Windows Mobile 5.0 or 6 device connected to the desktop via ActiveSync?
ActiveSync doesn't actually route packets from the device. Instead it acts as a proxy - all DNS lookups resolve to the PC's IP address (of the PC end of the ActiveSync connection). ActiveSync then forwards the requests to the actual target server and vice-versa. However, it doesn't work for IP addresses.
Windows Mobile 5.0 turns off all other network interfaces and drops any dial-up connections (e.g. GPRS/EVDO mobile data) when connected to ActiveSync. Your only connectivity option is via the desktop passthrough.
Windows Mobile 6 allows you to control this - there's a checkbox in ActiveSync's Connection Settings labelled "Allow wireless connection on device when connected to the desktop" which I think is unchecked by default.
Hmm, that's good to know. The device runs Windows CE.NET 4.2 so I can only assume that your scenarion for version 5.0 will apply (if not worse).
Be that as it may, I did think of disconnecting ActivSync before attempting a socket connection and it still didn't work. However, in the mean while I've found another way of setting up a socket. In stead of using System.Net.Sockets.TCPClient I tried using System.Net.Sockets.Socket which required a few more specific parameters but ultimately worked like a charm.
My code now looks something like:
Socket mySocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
EndPoint myEndPoint = new IPEndPoint(IPAddress.Parse("192.168.100.150"), 11240);
I'd be very curious to know why this works but the TCPClient failed. But at least I've got this stumbling block out of the way now.
I need to write a debugger which will execute an process and I need to get notification when that process will write or modify any thing on the hard disk. Can we keep watch on any process for getting info when that process will write to hard disk? I have read something about "Win32 Debug API". Can any one guide me or give me any demo code for this?
This morning tried to run an aplication running under .NET 1.1 at the same time i was developing something in 2.0. But all sites configured in IIS6 gave me errors, for .NET framework 1.1 version. I made a restart (iisreset) and launched first 2.0 web site containing all aplications under that framework version, and all of them worked.
If i repeat the process but first initialize aweb aplications under 1.1 net framework website, those aplications works but the ones on 2.0 net framework doesn't.
This is normal? I'm a newbie yet, but i'm hungry to learn more.
Thanx in advance everybody.;P
"I hated myself... no, I hated my place in the world" - From Jerry Maguire
The fundamental problem here is that you can only load one version of the Common Language Runtime (CLR, the actual execution engine of the .NET Framework) into a process. The first version to load wins - subsequent attempts to load a different version are simply ignored.
IIS 6.0 uses the W3WP.EXE (W3 [World Wide Web] Worker Process) executable to run ASP.NET code. It knows how to host the CLR. IIS 5.x does not natively understand .NET and uses a different model, loading a DLL into its regular worker process, which in turn launches an ASPNET_WP.EXE process, but significantly, different versions of .NET launch their own separate worker processes so the clash does not occur.
So what you have to do is to ensure that the .NET 2.0 and .NET 1.1 applications do not share a worker process. You do this, as the other reply says, by defining a new application pool and assigning the .NET 2.0 applications to that. Or you can do it the other way round if you like, placing the 1.1 applications in the new application pool.
If you want to know what's going on at the low levels of the .NET Framework, Jeffrey Richter's book "CLR via C#" is a good one. I have the first edition of this book, titled "Applied Microsoft .NET Framework Programming". I've not re-read it in a while - I have a good memory for crazy technical detail - but it was a great introduction to the CLR when I first started .NET programming.
I can't recall where I first heard about the two-frameworks-in-one-process problem. It might have been Chris Brumme's blog[^] (warning, lots of technical detail ahead!) or simply someone complaining about it in the context of Office add-ins.
i am maintaining a windows service which run in every ten second and check if certain condition is true then it will connect with the database and made some entry when i install it on machine , at run time it display AN Unhandled Exception('System.Data.SqlClient.SqlException')occurred in windowsservice.exe. just in time debugging this exception failed with the following error:No installed Debugger has just in time debugging enabled. say not to connect with sql server.
In your connection string, did you use trusted connection or did you supply a username and password that the SQL Server recognizes? If you used trusted connection, it won't work. The Local System account has no rights to the SQL Server. Change this to supply a username and password of an account that the SQL server trusts and you shouldn't have any problems.
Visual Studio .NET 2003 comes with version 8 of Crystal Reports. If I were to buy the complete package of Crystal Reports XI can I use the version XI Report Viewer instead of what comes with Visual Studio 2003?
If you don't know something at your work, it's generally a good idea to let them know, otherwise they will expect that you do.
And, as you've been told in two forums, you won't survive as a developer if you can't use google.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
All classes in the .NET Framework are derived from Object, every method defined in the Object class is available in all objects in the system.
If you are designing a class, such as a collection, that must handle any type of object, you can create class members that accept instances of the Object class. However, the process of boxing and unboxing a type carries a performance cost. If you know your new class will frequently handle certain value types you can use one of two tactics to minimize the cost of boxing.
One tactic is to create a general method that accepts an Object type, and a set of type-specific method overloads that accept each value type you expect your class to frequently handle. If a type-specific method exists that accepts the calling parameter type, no boxing occurs and the type-specific method is invoked. If there is no method argument that matches the calling parameter type, the parameter is boxed and the general method is invoked. This tactic yields methods that are CLS-compliant.
Last Visit: 10-Jul-20 22:24 Last Update: 10-Jul-20 22:24