microsoft.public.dotnet.framework.sdk Archive - July 2002
Post a message to this list
Messages
Page: 1
Dynamic class creation at runtime (2 replies)
microsoft.public.dotnet.framework.sdk
Could anyone tell me how I can dynamically build a class at runtime and then create an instance of it. I think the answer lies in the System.Reflection namespace but I am unsure about how to use these classes (MethodBuilder.CreateMethodBody what is MSIL and how do I create it?). I am greatful of any help that can be given to me. Thanks!
How to get private method (2 replies)
microsoft.public.dotnet.framework.sdk
Hi All, I want to get all methods with Type.GetMethods(), but it can't get the private methods. please help. I want to get all methods from a Class, any idea ? Thanks a lot.
How to read a custom application.config file (4 replies)
microsoft.public.dotnet.framework.sdk
Say if I have a app called boo.exe, I know I can create a boo.exe.config to associate with it and load the application config data at runtime. But is it possible to set the the config filename to something other than the *.exe.config? Thanks Andrew
Error sending messages (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I'm getting the following exception whenever I try o send a message. "Exception has been thrown by the target of an invocation." The stack trace is: at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, ...
Formatting a String in a DataGrid Column (5 replies)
microsoft.public.dotnet.framework.sdk
I am using VS.NET C# to create an ASP.NET Web application. I have a Social Security # character (string) field that I am displaying in a column of a DataGrid control. The Columns page of the VS.NET DataGrid Properties dialog contains a box labeled "Data Formatting Expression". What can I put into thatbox that will format the Social Security # as 999 99 9999, the standard Social Security # display ...
using statement (2 replies)
microsoft.public.dotnet.framework.sdk
If I use the using statement, not directive meaning using( SqlConnection newconnection ) { ... } It's supposed to call Dispose on newconnection once it goes out of scope. My question is, will it still do that if I have a return statement in the using block or an exception is thrown? Thanks, Lance
finding dll (3 replies)
microsoft.public.dotnet.framework.sdk
How can my c# dll find the directory it was installed into, such that it can find other files. I'm trying to avoid requiring the installer to have to put this into the registry.
(.NET) C++ Events for VB .NET (2 replies)
microsoft.public.dotnet.framework.sdk
Using .NET we trying to create our own DLL to sit in a namespace.. something like this: C Code dxx (namespace) fxx (object) add2 (method/function add's 2 numbers) sub2 (method/function subtracts 2 numbers) belowzero (event to fire when operation of of 1 of 2 functions above result 0 ) VB .NET import dxx .. .. dim x as new dxx.fxx() AddHandler x.belowzero, AddressOf NegSum dim h as int16 h h.add2(2...
How to get enumeration of system time zones? (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I need to get a list of avaliable time zones. I need to provide the user with ability to select the zone and latter to use the zone offset. Although there is a TimeZone class the only way one can get such object is to get the current time zone (there is a CurrentTimeZone internal object in the mscorlib.dll). Also in the platform library I can't find any approproate enumerator. Only place I fou...
SHA1 hash algorithm output? (3 replies)
microsoft.public.dotnet.framework.sdk
I tried using the Security.Cryptography.SHA1CryptoServiceProvider class to hash a passphrase string converted to binary array. The problem is that the hash code does not match the expected code, as specified in the specifications (http://csrc.nist.gov/publications/fips/fips180 1/fip180 1.txt). It is of importance that the hash code matches the expected value, since they are to be verified by a Jav...
Copying files across a network (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, My question is the following: Is it possible (must be) and if so, how, to copy a file from one server to another on the same network? Do I need ADO.net for that? or are there other techniques for creating files and directories? Please let me know if you can help me. Wayne
Creating strong named assemblies (2 replies)
microsoft.public.dotnet.framework.sdk
Anyone have trouble with visual studio not being able to find the key file specified when using the AssemblyKeyFileAttribute? Help says that in VB.NET, the key should be in the solution directory. I tried that but it still can't find it.
Send Mail using CDO (3 replies)
microsoft.public.dotnet.framework.sdk
I need to convert the following code to .NET. The reason I can't use the System.Web.Mail is due to the fact that I have to Authenticate in Exchange before sending the mail out (Relay is on). Thanks, Aric Levin SoundDogs.com Code Follows: ********************************************************** Dim iMsg As CDO.Message Set iMsg New CDO.Message Dim iConf As New CDO.Configuration Dim Flds As ADODB.F...
DateTime formatting (2 replies)
microsoft.public.dotnet.framework.sdk
I have a select statement that has a where clause that compares a timestamp to a column value. I'm using the new DateTime value from .net and am trying to get a string value that equals a format string like this: {ts 'yyyy MM dd HH:mm:ss'} with the single quotes included. The problem I'm having is getting the single quotes to show up. Has anyone solved this problem, thanks.
INFO: Mysterious .NET Threads! (6 replies)
microsoft.public.dotnet.framework.sdk
Hello to all! I had always been interested on how the .NET threads are managed by the OS. Afterall, from what the concept goes, each Win32 physical process can contain multiple AppDomains, which in .NET terms, is a logical process. And not only that, each AppDomain can contain multiple threads that are, again, logical in nature. So, the question I had always been pondering upon was how these "logi...
Programmatically get the Service Pack version? (4 replies)
microsoft.public.dotnet.framework.sdk
Hi. I can programmatically get the platform and the version of the OS. Is there a way to also get any Service Pack information? Thanks, Ever
Soap Extension not Executing (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I have built the TraceExtension soap extension example from the .NET Framework SDK documentation: file://ms help://MS.NETFrameworkSDK/cpguidenf/html/cpconalteringsoapmessageu singsoapextensions.htm The build is fine, however whether I configure the extension using an attribute or from a configuration file, the extension itself does not execute. Note that the attribute constructor is called whe...
MSMQ : Exception sending messages to a MessageQueue (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I have an application which sends System.Messaging.Message messages to a given MessageQueue in a multi threaded environment. All the threads use the same MessageQueue resource. I am able to send a few messages and a few result in an Exception as described below : Exception : Specified cast is not valid. at System.Messaging.Interop.MessagePropertyVariants.Lock() at System.Messaging.Message.Lock...
Searching with DirectorySearcher (3 replies)
microsoft.public.dotnet.framework.sdk
Hi everybody, I've built a asp.net page witch shows all Active Directory users, I'd like to make it maging, I know I can use DataGrid's paging to make it, but in massive number of users, the first time I call DirectorySearcher.FindAll(); it takes about 20 seconds in about 3000 object in just one OU. Has anyone worked with DirectorySearcher.PageSize to make it's result being paged? I've found some ...
System.DirectoryServices - Getting Group Users (4 replies)
microsoft.public.dotnet.framework.sdk
AD is correctly loaded and works (for some things see my previous emails) , but im trying to get a list of the Children (assuming users, etc..) of a group: string groupname "Administrators"; System.Collections.ArrayList users new System.Collections.ArrayList(); foreach(System.DirectoryServices.DirectoryEntry dir in AD.Children.Find(groupname, "group").Children) { if(dir.SchemaClassName "User") use...
How to Serialize to a XmlDocument? (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I'd like to serialize an object into a XmlDocument for further processing it by applying xsl. By following the framework I can serialize an object (by using XmlSerializer) into a Stream. One solution could be serializing it to a String stream and then from that String load it into the XmlDocument using loadXml but it looks too ugly. First: There is any way to serialize directly into a XmlDocum...
How to get rid of xlmns:xsd and xlmns:xsi in xml file generated by XmlSerializer (5 replies)
microsoft.public.dotnet.framework.sdk
How do I get rid of the xlmns:xsd and xlmns:xsi attributes in the XML file generated by XmlSerializer.Serialize()? I thought that passing an empty XmlSerializerNamespaces object would do it but it didn't. :( Thanks!
Errors in my first aspx page (3 replies)
microsoft.public.dotnet.framework.sdk
In this line Sub Page Load(Sender as Object, E as EventArgs) I see the error "BC30002: Type 'EventArgs' is not defined." In this one Dim oDE as System.DirectoryServices.DirectoryEntry I see the error "BC30002: Type 'System.DirectoryServices.DirectoryEntry' is not defined." What's ? Thank you. Luca Maistrello
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