microsoft.public.dotnet.framework.sdk Archive - January 2003
Post a message to this list
Messages
Page: 12
XMLWriter (7 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am writing an asp.net application, which will amend a xml file. In my situation, i am not going to create a new XML file. Instead, i want to add some elements at the particular position in the existing xml tree. I know XMLTextWriter is a simple class, which provides non caching implementation in XML. That means it cannot jump to specific position of the xml file. In my situation, can i solve...
Simple UDP chat app not working ! (2 replies)
microsoft.public.dotnet.framework.sdk
Posted at: dotnet.framework.windowsforms http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP dotnet&sLCID us&sgroupURL microsoft.public.dotnet.frame work.windowsforms&sMessageID %253C003001c2b0fe% 2524063f03d0%2524d7f82ecf@TK2MSFTNGXA14%253E Thank you, Steve.
Sockets and downloading ? (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, If I have three details of a remote computer: * IP address * Port number * Full path to a specific file How can I download that file to my local computer using .NET socket programming? Thank you, Steve.
Simple UDP chat app not working ! (2 replies)
microsoft.public.dotnet.framework.sdk
Posted at: dotnet.framework.windowsforms http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP dotnet&sLCID us&sgroupURL microsoft.public.dotnet.frame work.windowsforms&sMessageID %253C003001c2b0fe% 2524063f03d0%2524d7f82ecf@TK2MSFTNGXA14%253E Thank you, Steve.
copy to clipboard with custom data format does not work (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, The following sample is part of the Visual Studio .NET Online help, but it doesn't work. Until now I was not able to store data in a custom data format in the clipboard and retrieve it back within the .NET platform. On retrieving the data back I always receive a null handle. How can this be achieved? Best regards Markus Buchberger using System; using System.Windows.Forms; public class MyClass ...
system.Management error (4 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am trying to run the example given in the online help to fire a management event. I keep getting the following error everytime the BaseEvent.Fire() method is called. Am I missing a file? Any help with this is very much appreciated. An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.management.dll Additional information: COM object with CLSID {4CFC...
get user and System Infomation (2 replies)
microsoft.public.dotnet.framework.sdk
Hi. Happy new year~!! Is there a way to find out user informaiton ( login name, local account ,..etc) and System info. ( win98, Xp .. etc.) thanks.
process key event (2 replies)
microsoft.public.dotnet.framework.sdk
I'm writing .NET control in C#, trying to handle key event. It appear that not all key event go through OnKeyDown/Pressed/Up. for example the arrows keys generate only OnKeyUp event and PrintScreen no event at all. After looking more through the documentation I found this protected method: protected override bool ProcessKeyMessage(ref Message m); protected override bool ProcessCmdKey(ref Message m...
Catching Service Events (3 replies)
microsoft.public.dotnet.framework.sdk
I've been looking for some assistance in catching events from the Plug and Play service using VB.Net. I've looked at WMI which seems to be in the correct direction, but it doesn't go into specifics for the type of events I would like to catch device attach and detach events. Can anyone point me to references or post some examples? TIA Brad
Wanted: Printable C# coding standards document (8 replies, VIP)
microsoft.public.dotnet.framework.sdk
Hi, does anybody know if there is a printable C# coding standards document? I found C# coding standards in the online MSDN, but it is not convenient to print out the different pages. Any links would be welcome. Regards, Hermo
Sorted DIrectory Listing (2 replies)
microsoft.public.dotnet.framework.sdk
I am trying to write a routine that will search for a set of files in a directory and return a sorted container of files. For instance, I would like to search for all files starting with the string "test" in directory "c:\mytest" and return a sorted list of files by date in descending order. I have tried the following code: DirectoryInfo di new DirectoryInfo(@"c:\mytest\"); FileSystemInfo[] fiArr ...
Windows Service refuses to start (3 replies)
microsoft.public.dotnet.framework.sdk
I've built an empty Windows Service using the VB.Net wizard which does nothing, besides know how to start and stop. I install it using InstallUtil.exe with no errors. Whenever I try and start it (using the Win2K Services control panl, or using NET START), it just times out reporting an error and when I lookup it's state it's always in 'starting' mode, which just never completes apparently. I took ...
BinaryFormatter Serializing/Deserializing from different apps (2 replies)
microsoft.public.dotnet.framework.sdk
I use the BinaryFormatter, serializing to a file from one app (App1), and trying to deserialize from another (App2). App2 gives error msg of: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: File or assembly name App1, or one of its dependencies, was not found. The written file contains: App1, Version 1.0.1101.83, Culture neutral, Pu...
TCP/IP (2 replies)
microsoft.public.dotnet.framework.sdk
I am very new to TCP/IP and I am challenged with writing a .NET component for listening and sending files accross our network. I have looked at the Listener and Client code example and that works just fine for the short string they send. I am trying to send a 128K XML file and I can only get approx 8K to be received. Is there an issue with packet size? How do I get the entire file from one machine...
BeginInvoke question (2 replies)
microsoft.public.dotnet.framework.sdk
I have been reading about Invoke and BeginInvoke/EndInvoke. To relate it to what I already know, Invoke looks like it can be used kind of like SendMessage() Win32 API and BeginInvoke/EndInvoke are (sort of) like PostMessage or the MFC PostThreadMessage. Here is my question. If I call BeginInvoke and do not maintain a reference to the returned IAsyncResult do I have to call EndInvoke. In other word...
A missing namespace (3 replies)
microsoft.public.dotnet.framework.sdk
I was looking for a way to communicate with a particular USB device. I have questions regarding that which I will post in a separate message but while searching the SDK for information I came across a reference to ServiceController.GetDevices() which seemed might be useful. The sdk documentation indicates that the ServiceController class is in the System.ServiceProcess namespace. However, in Visua...
QuickSamples Intro8.aspx (2 replies)
microsoft.public.dotnet.framework.sdk
I've installed Visual Studio .NET and the .NET Framework SDK. Navigating to the Introducing Web Services QuickStart tutorial, I attempt to access the Intro8.aspx sample. I get the following after clicking the Lookup button : Server Error in '/QuickStart/ASPPlus' Application. Login failed for user 'XXXXXXXX\ASPNET'. Description: An unhandled exception occurred during the execution of the current we...
"Illegal characters in path." error (2 replies)
microsoft.public.dotnet.framework.sdk
Hey, I'm reading a stream of data from a TCP network stream. The type of data is a fully qualified path to a file which I try to open. The error I'm getting is: "Illegal characters in path." Here is the code: string file System.Text.Encoding.Unicode.GetString (buffer); // shows C:\Documents and Settings\Administrator\Desktop\file.txt MessageBox.Show(file); // error here: fileStream new System.IO.F...
Thread Design Problem! Help! (3 replies)
microsoft.public.dotnet.framework.sdk
I'm getting; 'Controls created on one thread cannot be parented to a control on a different thread.' exception as a result of one thread inserting nodes into a XmlDocument and another thread's handler execution; xmlDocument.NodeInserted new HodeInsertedHandler (OnNodeInserted) It is a listener to the document and tt is called as a result of the insertion. This handler creates and attaches new cont...
How to modify custom attributes from code ? (2 replies)
microsoft.public.dotnet.framework.sdk
Hi all ! Is there any way to modify custom attributes from code (see following example) ? [System.Web.Services.Protocols.SoapDocumentMethodAttribute ("", RequestNamespace "http://www.mydomain.net", ResponseNamespace "http://www.mydomain.net", Use System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle System.Web.Services.Protocols.SoapParameterS tyle.Wrapped)] public object[] Invoke...
UPDATED: Very simple UDP chat app not working ! (2 replies)
microsoft.public.dotnet.framework.sdk
Hey, I have a simple UDP chat application which I wish to send and recieve messages to myself only. When I press the "Send" button nothing happens at all, maybe the messages are being sent but I cant receive them. Can anybody out there take a look at my two functions? One is for the button click event and the other is run in a thread as a receiver a "Listener". // Assume all "this." objects are in...
System.Management compile error in IDE (3 replies)
microsoft.public.dotnet.framework.sdk
This sample code below will not compile in the Visual Studio .NET IDE but will compile using the command line (csc) compiler. Under the IDE I get the error: "The type or namespace name 'Management' does not exist in the class or namespace 'System' (are you missing an assembly reference?)" As you can see I am referencing "System.Management." Does anyone have an idea why the IDE cannot see System.Ma...
"machine actively refused it" error (4 replies)
microsoft.public.dotnet.framework.sdk
Hey, I'm connected to a 56K dial up ISP and when using the following code with my own, or any other IP address, I get the following error: Error message: No connection could be made because the target machine actively refused it Error code: 10061 I think! Code: // Assume "IPaddress" is a valid dotted quad here System.Net.IPEndPoint ipEndPoint new System.Net.IPEndPoint(System.Net.IPAddress.Parse (I...
AutoPostBack in ASP.NET (3 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am writing a simple asp.net application. I add the AutoPostBack to be true in the DropDownList component in the page. However, when the page post back, the page is going to be clear, which means the page becomes empty. How comes? How can i solve this problem? Thank you for your kind attention. Regards, Dicky
Plugin question..... (3 replies)
microsoft.public.dotnet.framework.sdk
I am working on a calculator application that will dynamically load and run other calculator modules (DLLs) based on the user's preference (scientific, mortgage, stocks specific, etc.). The question I have is....is there any way to : a) make sure that the 3rd party DLL can only be loaded/run by my application (and not by another app) and b) make sure that a 3rd party DLL can call methods of its pa...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification