microsoft.public.dotnet.framework Archive - January 2003
Post a message to this list
Messages
Page: 12
Which is more efficient? (3 replies)
microsoft.public.dotnet.framework
This is not a major thing but I was wondering about the best choice of string checking. In VB6 it was known that doing a check with dim s as string s [something from somewhere] if Len(s) 0 then ... was better than doing a string compare ala if s "" then ... because using Len just had to check the BSTR header rather than running through the character array looking for the terminator (layman terms) ...
failed to send Could not access 'CDO.Message' object. (2 replies)
microsoft.public.dotnet.framework
I developed an ASPX page for our users to send emails. 1 It works perfectly when run from our development server which uses our cable modem's ISP to send messages. i.e. SmtpMail.SmtpServer "smtp.west.zzz.net"; I can mass email a message to hundreds of users with no problem from our ISP's SMTP server. 2 On the clients server [with its W2K local SMTP server] this is our experience: Sending works fin...
enumerations (2 replies)
microsoft.public.dotnet.framework
Can I create an enumeration at runtime?
How to clear an array.. (2 replies)
microsoft.public.dotnet.framework
Can any body tell me how to clear a byte array.. since it doesnt has any function about it.. I want to empty the char array to reuse it thanks..
Logging in a Web Service (2 replies)
microsoft.public.dotnet.framework
What is the most appropriate way for me to perform logging in a .Net web service? This is general purpose logging, that means logging should support different log levels, configurable from for example the web.config file. I would like to log to files. Is there a suitable component for doing this in the framework, or should I build one myself? Thanks! Thomas Evensen
simple vb.net compiling (4 replies)
microsoft.public.dotnet.framework
hi im trying to comple a simple vb.net program using the command line here it is Imports System Imports System.Xml Module xample Sub Main() dim xd as XmlDocument End Sub End Module when i try to compile vbc test.vb i get an error error BC30466: Namespace or type 'Xml' for the Imports 'System.Xml' cannot be found. any help ???
Where is semaphore sync. section ? (2 replies)
microsoft.public.dotnet.framework
There's no semaphore in System.Threading. Is it implemented in NET? Marcin Rudolf
Finalizer/Destructor does NEVER gets called using MC++ (3 replies)
microsoft.public.dotnet.framework
I've got some .NET 'wrapper classes', written in MC , that wrap some native C classes. Nothing special there. For some reason, the finalizer/destructor NEVER gets called for these classes. I've done every type of test I can think of and have yet to have the finalizer/destructor get called on my MC wrapper classes. The test is a C# client that creates 1 or more instances of my wrapper classes. Even...
FileSystemWatcher Problem (4 replies)
microsoft.public.dotnet.framework
I am trying to use the System.IO.FileSystemWatcher class to watch for new files in a directory. The problem I'm having is that it seems the 'oncreate' event fires before the new file is completely written. Therefore when I try to do anything with the file (such as copy the file to another directory) I get an error message along the lines of "The process cannot access the file because it is being u...
ConnectionCache (2 replies)
microsoft.public.dotnet.framework
Dear Friends, I am a newbie and trying to compile this code. I got an error but I could not understant why? Can somebody help me? List of code: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using NST...
DllImport (2 replies)
microsoft.public.dotnet.framework
I can't seem to figure out how to properly use the DllImport Attribute. The method that I am trying to use is as follows: BOOL WINAPI CryptProtectData( DATA BLOB *pDataIn, LPCWSTR szDataDescr DATA BLOB *pOptionalEntropy, PVOID pvReserved, CRYPTPROTECT PROMPTSTRUCT *pPromptStruct, DWORD dwFlags, DATA BLOB *pDataOut ); Header: Wincrypt.h Library: Crypt32.lib If anyone could provide me with more info...
Preserving £ symbol when reading a file (2 replies)
microsoft.public.dotnet.framework
To Anyone, I am processing a file that contains a and, despite several attempts at changing the encoding, I am either removing the , or changing its value. I am sure that the solution is simple, but I have yet to come accross it so any help would be appreciated. I am enclosing C# code samples with the respective output. Here are the displayed values when viewing the string: Encoding: UTF8 stripped...
Problems with MD5 Cryptography (2 replies)
microsoft.public.dotnet.framework
Hi, I've been trying to use the MD5 cryptography class that comes with .Net Framework to encode a string that is needed to communicate with the MSN IM's Notification Server. However, the encoded string always seem to be different from what the Server needs. I have searched around for possible reason, and found someone with a similar problem. For example, when we encode 1013928519.693957190mypasswo...
dllimport got error 126 on Win2K terminal server (5 replies)
microsoft.public.dotnet.framework
Greetings, In my C# program, when I use DllImport without path to dll, such as: [DllImport("advapi32.dll", SetLastError true)] public static extern bool LogonUser(String lpszUsername, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, out int phToken); It works fine on my XP Pro machine, but doesn't work on Win2K Terminal Server (error code 126 The specified module could...
Spawning process and Identity (2 replies)
microsoft.public.dotnet.framework
Problem description: Lets have a process (asp working process) running under identity "A". Lets have a Web Service (basic authentication) that uses identity impersonate "true" and runs let's say under identity "B" (user B has logged on). From the Web Service's code I create a new process by calling System.Diagnostics.Process Start() method. Strange for me is, that the process spawned from the web ...
#line and Line Number C# (3 replies)
microsoft.public.dotnet.framework
I know I can set the line number in the source file with #line, but is there a way to get the line number without using the stack trace (something similar in functionality to LINE and FILE in C)?
How to access resources from external assemblies? (2 replies)
microsoft.public.dotnet.framework
Hi all! How can I access resources stored in an external assembly? Have a look at this scenario (managed C :) System::Resources::ResourceManager* resource new System::Resources::ResourceManager("OtherNameSpace.OtherAssembly", System::Reflection::Assembly::GetExecutingAssembly()); System::String* test resource m GetString("test"); My problem is, that I don't know how to load the assembly where the ...
Can't use StringCollection in Managed C++ (2 replies)
microsoft.public.dotnet.framework
I'm having a rather strange problem: I'm trying to use StringCollection in Managed C , and although I've specified the necessary using directives (to System.Collections and System.Collections.Specialized), I get an error C3636: "The type 'System::Collections::Specialized::StringCollection' is inaccessible or undefined in 'System'". Even explicitly writing System::Collections::Specialized::StringCo...
Losing Asynchronous State Object (3 replies)
microsoft.public.dotnet.framework
I have some code that reads data asynchronously off of a socket. I use a state object to store the data read from the socket. If I don't find a terminating character in my data I re read asychronously from the socket again adjusting the offset in the buffer appropriately. However, I am seeing multiple state objects. For the first read I get a state object then put that object back on the read, the...
Windows Service Installation Problem (3 replies)
microsoft.public.dotnet.framework
Hi, I created a Windows Service and added a filesystem watcher, added a project installer, and build the solution. When I run the installutil I get an error: No public installers with the RunInstallerAttribute.Yes attribute could be found in the d:\my webs\gotennis\newsfeed\bin\release\newsfeed.exe assembly. Remove InstallState file because there are no installers. I did add an installer to the pr...
System.Web.Mail.MailMessage and Mutipart/Related Header problems (2 replies)
microsoft.public.dotnet.framework
Dear All, I have created a program (Windows Forms not ASP) which uses the System.Web.Mail.MailMessage class and the System.Web.Mail.MailAttachment to create an HTML Email with the images used in the HTML attached to the message. All the correct formats are set for bodytype and content. Problem is that unlike the Messages created by outlook where you do not see the attachments (i.e. each attachment...
Http Connection Pooling (2 replies)
microsoft.public.dotnet.framework
Hi, We are developing an application that uses the HttpWebRequest class to transfer messages to a 3rd party server. Due to the nature of the server we are connecting to, we have been advised to use a pool of persistent connections to maximise throughput. The .NET documentation says that HTTP/1.1 and Connection: KeepAlive are being used by default, suggesting that multiple HttpWebRequests will use ...
Processes (3 replies)
microsoft.public.dotnet.framework
I will try to rephrase my previous posting "Spawning processes and identity" to make things clearer. I have a process running under WindowsIdentity "X" the process impersonate user calling the LogonUser, new WindowsIdentity(hndl); and calling identuty.Impersonate(); The process should run under the new uidentity (let's call it "Y") Now I create a new process by calling standard .NET's API Process....
TreeView on Web page? (6 replies)
microsoft.public.dotnet.framework
Hi, there, I'm a new developer for Web programming in VS .NET. I used to develop apps. in Visual Studio 6 using VB and VC . We need to develop web based applications from now on. Too many NEW things I have to face now. I don't know how to show hierarchical contents on the Web page. I couldn't find a similar traditional "TreeView" in Web Controls. Somebody can help me about this? Thanks very much i...
switch to other app.exe.config (5 replies)
microsoft.public.dotnet.framework
I'm trying to switch to another .exe.config file at runtime, but it doesn't work. I've created a console application named "appdomain.exe". And I've created the configuration file "appdomain.exe.config". This file contains a section "Application.Logging". I implemented the following code in Main(). Console.WriteLine (AppDomain.CurrentDomain.SetupInformation.ConfigurationFile); AppDomain.CurrentDom...
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