microsoft.public.dotnet.framework.sdk Archive - October 2002
Post a message to this list
Messages
Page: 123
Communicating Server app in Unix to several VB.NET clients (3 replies)
microsoft.public.dotnet.framework.sdk
Hi, I need to have a program running in a Unix server, that every time the data in a table in a DB is modified, triggers to call an application found in the operating system that sends update info at the same time to several client apps written in VB.NET. Anyone has an idea of how to raise an event at the VB.NET client app every time new info comes in? Another possible solution would be having a t...
Install says MDAC not there but it is (4 replies)
microsoft.public.dotnet.framework.sdk
When I attempt to install .NET Framework SDK it says the MDAC 2.7 is not installed on this machine and should be. However, it is indeed installed. How do I fix this?
System.ServiceProcess.ServiceInstaller class and services (3 replies)
microsoft.public.dotnet.framework.sdk
Why can't I set the description of a service from this class? Can I set it programatically using an service\installer class or am I going to have to resort to adding the a registry value programmtically during the install? Cheers Ollie
Adding New Schema to Active Directory (2 replies)
microsoft.public.dotnet.framework.sdk
Does anybody have a good reference or example on how to create and add new schemas to the Active Directory? Thanks
State management issues with CookieContainer (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am having problems with maintaing state using the CookieContainer. Sample code is below. My problem is that I am able to receive a cookie that a site sets when I post to it. When I want to use that cookie for a subsequent visit to the site, the site is not able to find the cookie. Can someone help me on this? Thanks Abdullah. CookieCollection cc; HttpWebRequest WReq (HttpWebRequest)WebReques...
Emulating/Implementing String.Format() (3 replies)
microsoft.public.dotnet.framework.sdk
Hello, I am writing a class for which it would be ideal for me to implement a method that behaves just like String.Format(). I would like to do this, in a nutshell (in C# parlance): public void DoSomething(int a, string b, string Format [, variable list of arguments]); I know I can get away with this (which is what I have right now): public void DoSomething(int a, string b, string Msg); But that f...
STMP server in C# issue (5 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am trying to build a simple SMTP server in C#, I have gotten so far as to be able to start communicating with a SMTP client like outlook express. The problem is that the conversation does not progress, here is the log from outlook express: Outlook Express 6.00.2800.1106 (xpsp1.020828 1920) SMTP Log started at 09/19/2002 15:59:26 SMTP: 16:03:23 [rx] 220 ESMTP Interface 9/19/2002 4:03:23 PM SM...
Can't get the SDK to work (2 replies)
microsoft.public.dotnet.framework.sdk
Just installed .NET framework on my W2000 Workstation and tried to do simple aspx stuff, but every time I tried to run it from IIS, I get this message: Anybody could point out the problem? Thanks in advance.. Server Error in '/' Application. Access denied to 'C:\INETPUB\WWWROOT\BIN' directory. Failed to start monitoring directory changes. Description: An unhandled exception occurred during the exe...
Thread Safety and Collections (2 replies)
microsoft.public.dotnet.framework.sdk
I don't understand the difference in thread safety between hashtable, sortedlist and NamedValueCollection. To quote the documentation "A Hashtable can safely support one writer and multiple readers concurrently. To support multiple writers, all operations must be done through the wrapper returned by the Synchronized method." (1) Assuming I use the synchronized wrapper, does this mean I don't have ...
How do I find the dll for a class library? (3 replies)
microsoft.public.dotnet.framework.sdk
How do I find the dll for a class library? I am using system.diagnostics.process.
Code compiling (2 replies)
microsoft.public.dotnet.framework.sdk
Hi Friends, I would like to compile a few .cs file which i have generated from a tool thru the ICodeCompiler interface provided in System.CodeDom. The compile method takes a CompileParametrs class. Which does not have properties to set the Lib path. Hence i have to set it thru the Compiler Option which takes the /lib option. The documentation provided does not help. I need to provide two directori...
ConfigAppReader Setting values in Config file. (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, Has anyone tried setting and reading values from the Configuration file. I've a windows application(PrjA) which accesses a class file (in a different project PrjB) for data access.I want to set the ConnectString in the configuration file. I've added a key to the config file of PrjB(cls) as ******************************************************** configuration appSettings add key "XmlConnect" v...
Reflection-based Invokation with "out" Parameters (2 replies)
microsoft.public.dotnet.framework.sdk
BEGIN PGP SIGNED MESSAGE Hash: SHA1 Greetings, I am attempting to invoke a method via reflection. Normally this isn't a problem, but the catch is that one of the parameters of the method I am calling is an "out" parameter. I am pretty sure that I can make all of this work by manually enumerating the methods on my object using GetMethods() and then searching for a method that matches my expected si...
Serial IO with C# ? (2 replies)
microsoft.public.dotnet.framework.sdk
Does anyone know if you can use Serial IO with C#? I have tried several things from using the System.IO.FileStream object to using plain old DllImport. The problem is that C# doesn't support bit fields. How do I pass a structure to an API call that requires a bit field when C# doesn't support it. Is there another way to do this? Does anyone know? Is this the right group to talk to?
double.MaxValue (4 replies)
microsoft.public.dotnet.framework.sdk
hello: i did the following: string s double.MaxValue.ToString() try { double d double.parse(s, NumberStyles.Any) } catch { ; } /// the above failed to convert back to a double. the exception essially stated that the number is to large for the lvalue. I thought conversion of MinValue & MaxValue to string and back to double should work. Thanks in advance...
How to set WeClient Credential when download file from a web server? (2 replies)
microsoft.public.dotnet.framework.sdk
I am using System.Net.WebClient to connect to the web server and download a file. The Web Server is using domain/name/password for authentication. I know I need to set the Network Credential somehow but there is no documentation on how to that. Would some kind soul out there please help me out? Thanks Andrew
ArrayList NullReferenceException (should be easy to solve) (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am puzzled over a NullReferencEexception in my code, so I wonder if I am incorrectly using the ArrayList or Hashtable class. I don't see what could be causing it. Does anyone have a idea? Here is code: 1 if (vSets[s] null) 2 vSets[s] new ArrayList(); 3 ((ArrayList) vSets[s]).Add(key); // this line causes the exception. and here is the declarations: Hashtable vSets new Hashtable(); Object key...
How to change environment variables? (3 replies)
microsoft.public.dotnet.framework.sdk
I'm trying to change an environment variable in C#. With Nick's help I finally removed all the syntax errors and it still does not work. I can make the changes but they don't manifest until I reboot. I thought that calling SendMessageTimeout would fix the problem. Should not I be able to run the code below, create a new instance of CMD.EXE (dos box) and see the new value for CLASSPATH? Incidently,...
Inacurate Documentation (4 replies)
microsoft.public.dotnet.framework.sdk
Hey All, I want a Dictionary/Hashtable with a way to call a method, supply the key, and get the value. The documentation states that all the dictionary style classes have an Item property capable of taking a key and returning the associated value.....buut these props don;t actualy exists in any Dictionary style classes.... I have an ugly ass work around of gertting the enumeration and running thro...
Drawing text on a control (6 replies)
microsoft.public.dotnet.framework.sdk
I need to draw text in several distinct places within a PictureBox control. These distinct areas already have Rectangles placed for another purpose. Is it possible to use the existing Rectangles to DrawString the text into? Thanks in advance!
Use C# lock on Hashtable? (5 replies)
microsoft.public.dotnet.framework.sdk
Since I did not get a response to my other query, let me simplify the question: If I have a single writer and multiple readers, do I need to use the following code (assuming that no one is ever enumerating the hashtable)? Hashtable myCollection new Hashtable(); lock( myCollection.SyncRoot ) { } I believe this is superfluous. If I have multiple writers, should I use the ReaderWriterLock?
strong typed Collection (2 replies)
microsoft.public.dotnet.framework.sdk
Hy, I inherited the DictionaryBase class in order to make myself a strong typed colletion, where i can store an object and a string key for it (like in VB6). But when I iterate trough the collection with foreach() the items I receive are not in the same order I've put them in. eg: I add obj0, obj1 and obj2 in this order and at foreach I get obj1, obj0, obj2. For a greater number of entries it almo...
Local IP Address (12 replies)
microsoft.public.dotnet.framework.sdk
Hi, How can I get the local IP address? I have a TcpListener running but its LocalEndPoint returns 0.0.0.0. Thanks, Cesar
Linking assemblies. (3 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am trying to compile a library that has been written partially in VB and partially in C#. To do this, I have compiled the classes as a series of modules. I am trying to merge these modules into a single .dll file that I can use in a Visual C# project. To do this, I have linked the modules into a single assembly using the assembly linker, as follows: al /target:library /out:MyLibrary.dll Modu...
Which subdirectory of "Documents and Settings"? (4 replies)
microsoft.public.dotnet.framework.sdk
I want to save some account specific stuff in Documents and Settings. How do I know which subdirectory is assigned to the current account I am running as the current interactive user? Is there a directory in "Documents and Settings" for system wide stuff? Thanks, Siegfried
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