Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > dotnet framework > december 2004

Filter by week: 1 2 3 4 5

Fatal Execution Engine Error while creating a DataTable on a new Windows 2003 Server
Posted by John Lau at 12/31/2004 9:25:22 PM
Hello, I am moving a working C# program from one of our Windows 2003 Server to a new Windows Server 2003 that we just configured. The framework 1.1 is installed on both servers. I've traced the error to the following statement: objDataTable = new DataTable(); The error is: Fatal ...more >>

How does SmartClient retain session?
Posted by Brett at 12/31/2004 12:05:09 PM
How does a SmartClient application return its Internet connection? Say I have an application that is used strictly through the web browser. I retain session via cookies. I want more client side functionality and will do this via SmartClient. How does the smart client retain its session? ...more >>

how to put a Description in about a method
Posted by idalton at 12/31/2004 11:31:01 AM
I created an assembly and I wanted to put in a description about each method, so when other developers choice that method in their projects they will see the description I put in and will tell them what the method should be used for. It seems like a very easy thing, but I can't find the syn...more >>

International strings/chars
Posted by Dobieslaw Wroblewski at 12/31/2004 6:16:24 AM
Hello, Please help me. I think I found this once but cannot find again :-( Is there any .NET framework class/method that returns the international counterpart of a given string or character? For example - for 'ó' it returns 'o'. DW. ...more >>

Find all references
Posted by kh at 12/31/2004 4:11:02 AM
Hi. I am refactoring an application and I am in the process of adding cleanup code. I am trying to dereference objects that are no longer required, but I am finding that references are held in other parts of the application and the object is consequently never collected. Is there anyway to...more >>

path of current executable?
Posted by Developer at 12/30/2004 8:06:05 PM
Hello, How do I get the path of my executable when it is running? Thanks. ...more >>

How to use GetLParam?
Posted by Mark T.. at 12/30/2004 6:33:13 PM
I need to send a byte array or a string passed in the LParam from MY application to ANOTHER MY application. I read the MSDN and found no samples. I made several tries and did not succeed to receive a byte array or a string. I am using the GetLParam like this: Private Structure MyT...more >>

about DESCryptoServiceProvider
Posted by creative at 12/30/2004 4:47:50 PM
DESCryptoServiceProvider the class has a member IV . what is the member? When I encrypted some data with DESCryptoServiceProvider . Then Other descrpted the encrypted data with the algorithm of des written by language C. But it failed. ...more >>



raising events from a windows service
Posted by Trevor Braun at 12/30/2004 3:17:36 PM
I have a windows service that generates events when it finds certain database information. That is, the service runs, and on a timer event, it checks a few database tables for new records. If the new records have been created, it generates the NewRecord event. I would like to have a clien...more >>

File.Move Delay Between Processes
Posted by Dave'd and Confused at 12/30/2004 3:11:02 PM
Hi All! I'm developing in C# using .NET 2003 Enterprise Developer (.NET Framework 1.1.4322 SP1) running on Windows 2000. I'm attempting to "lock" a file that's used by two processes by adding a ".LOK" extension to the end of the filename. When I rename the file in a local directory us...more >>

Merging multiple dlls into one
Posted by thechaosengine at 12/30/2004 2:22:45 PM
Hi, I have a solution made out of about 5 projects. At the moment, each one is creating its own dll in its own subdirectory. I seem to remember that there is a way to merge multiple dlls into one big Daddy dll. Does anyone know how to do this and is there anything I should be aware of ...more >>

SHA1 Hashing on different machines
Posted by johnrudy3 NO[at]SPAM aol.com at 12/30/2004 2:22:26 PM
Bit of an interesting problem I've encountered -- and one which I'm sure is due to my own ignorance in the ways of cryptography. I have a fairly simple trouble ticket-tracking application I've just rolled out from my dev machine to our test server here at work, so the techies can start beating...more >>

Specify member scope in Interface Classes
Posted by aaronh64 NO[at]SPAM hotmail.com at 12/30/2004 1:59:01 PM
Have you ever noticed that when you look at an Interface Class definition (ie IDisposable), the methods or properties belonging to the class are defined as abstract (C#) or overridable (vb)? How can this be? When I create an Interface class and try to give methods any signature at all, I rec...more >>

gacutil /l does not show mscorlib
Posted by Martin at 12/30/2004 12:46:04 PM
I cannot get my application working, it cannot load a local dll. This local dll has some dependencies, and I am trying to see if all the dependacies are right. Now the app/dll is dependant of mscorlib. I think all .NET apps are dependant of this right? Then I check what was in the GAC with ...more >>

How do i disable beep when messagebox appears?
Posted by Anavim at 12/30/2004 7:41:05 AM
anyone have any idea wow do i disable beep when messagebox appears? i want to play my own sounds and i couldn't find anyway to override the message box sounds. And not, i don't want to create my own messagebox. ...more >>

Terminating Method Execution
Posted by SamM at 12/30/2004 7:01:02 AM
Hi I have an application that calls a method that takes a considerable amount of time. In this method I show and hide forms from an object declared in the same class using 'ShowForm' and 'HideForm' methods I have written in the class. I am trying to add a 'Stop' button to allow the user to ...more >>

Wildcard String Search
Posted by Stuart M. Ray at 12/30/2004 7:01:01 AM
Hi, I'm looking to do wild card pattern matching on strings. Here is an example: Search string: Begin * end? New line with additional content* Would match: Begin at the end. New line with additional content will appear here Can anyone point me to an API that converts...more >>

Truely Dynamic Classes?
Posted by Gary K at 12/29/2004 8:05:03 PM
(Sorry but I'll be using C# for examples, skip to the last paragraph if you just want to read my main query) Ever since Turbo Pascal 5 I've used data created at compile time to 'outline' a database structure that can then be used by functions in a generic manner. For example, the compiled dat...more >>

Forms & UCs get inflated in width at runtime!
Posted by Bill at 12/29/2004 7:50:39 PM
I've having a very strange problem. In a large solution it may occur only on 30-40% of the projects that include Forms/UserControls. I design the form at design-time, justify the controls etc. But at runtime they get inflated in width! (they become about 20-25% larger in width). Seems like...more >>

KB 322884, SQL2000 and COM Interop
Posted by Oleg Ogurok at 12/29/2004 3:55:11 PM
Hi all, I've just discovered the following article on MSKB saying that SQL Server 2000 doesn't support calling .NET stored procedures via SP_OA* methods. http://support.microsoft.com/?kbid=322884 I'm a little puzzled. I've been using this method for serveral months with no problems. Basi...more >>

Marshaling
Posted by Nikolay Petrov at 12/29/2004 1:21:00 PM
Guys, please help. I am trying to make this work from at least 4 months. I am new to programming and some things are difficult to me, but I really need to make my project work. I can't find anything helpfull in internet for 4 months ;-( . Please someone who is more expirenced help me. I am t...more >>

CLR 1.1 and 2.0 (beta) on same machine?
Posted by jpuopolo NO[at]SPAM mvisiontechnology.com at 12/29/2004 12:00:50 PM
All: I have a SINGLE laptop currently running Windows 2000 Pro (don't ask - WinXP killed my machine at one point) and the NET Framework 1.1. I would like to start playing with the 2.0 (beta) framework. The big question is... Will they both run on the same computer w/o clobbering one another...more >>

regex: Nested quantifier ?. error! help
Posted by Mad Scientist Jr at 12/29/2004 8:30:20 AM
I am trying to use regex to find a string where ? could be between 0 and 10 characters, for instance the strings: Error. Username 1092006871 does not exist. Record not processed. Error. Username abc123 does not exist. Record not processed. Error. Username does not exist. Record not processed. ...more >>

Framework for non-windows
Posted by Brian at 12/29/2004 8:09:05 AM
Hello, A couple of years ago when the whole .NET thing was new I attended a class about visual studio. In the class the instructor stated that there were diferent versions of the framework in production for different operating systems besides windows. My question is, did this guy have ...more >>

String Manipulation - Problems??
Posted by GTDriver at 12/28/2004 9:25:02 PM
I would like to interate through each character in textboxcontrol.text. However, I'm having trouble accomplishing this. If I assign the value of a text property to a string variable and then do strVar.Length I'm not getting the value I expect for the length. When I try for strVar(1), it say...more >>

Encryption String From PHP, Decryption String From ASP Big Problem, Urgent !!!
Posted by kelvinweb NO[at]SPAM gmail.com at 12/28/2004 6:17:09 PM
Hi All, I have still problem on Encryption string using, decryption string using ASP/VB/C#.. I don't know why have different results and using same algorithm. Please advise. PHP Sources Code <?php $key = "pg"; $random_number = kelvintai; $encrypted=encrypt($key,$random_number); $decryp...more >>

Is it possible to install multiple locales of the .NET Framework?
Posted by Greg at 12/28/2004 3:47:03 PM
I have a C# Windows Forms application that must be capable of switching the UI between English-Canadian and French-Canadian at runtime. I am told that when installing the Framework on a client computer, only one language may be selected. Is there a way to install support for more than one la...more >>

simple math problem?
Posted by Param R. at 12/28/2004 3:13:42 PM
Hi all, take a look at the following code:- Dim val1, val2, val3 as single val1 = 134410.10 val2 = 28494.11 val3 = (val1+val2) If you end up echoing val3 it will have a value of 162,904.20. That is wrong. It should be .21. Why is this happening??? We are having all kinds of issues and...more >>

CJK problem in the PDF format
Posted by James at 12/28/2004 2:38:23 PM
Dear all, I cannot understand how to work with CJK in the PDF format. Can anybody provide me a PDF file with Chinese or Japanese characters and file description. Any your help will be appreciated. James. ...more >>

Getting byte[] representation of .NET primitive types
Posted by Smugsboy at 12/28/2004 10:28:26 AM
Hi, Is there a way to get byte[] representation of primitive types ? Meaning: for "ushort val = 6" to get the following "byte[2] { 0, 6 }" and for "byte val = 6" to get the following "byte[1] { 6 }" Thanks, ...more >>

Generic and Inheritance of "Type"
Posted by Aquila Deus at 12/28/2004 1:08:09 AM
Hi all! I just thought of that the "Type" should be made as a generic class: Type<T>, and a typeof(DerivedClass) should inherit typeof(BaseClass) and typeof(SomeInterface), so that you may do this: interface CarFactory { Type<ICar> GetCarType(); } and enforce this method to return a t...more >>

[C#]Transparented menus
Posted by maxvizel NO[at]SPAM bezeqint-dot-net.no-spam.invalid at 12/27/2004 7:55:36 PM
Hello, I like this forum - it seems like there are really helpful people in here :D I would like to know how to change the transparency level of any menu in Windows using C#.NET. Can you please tell me how to do it? Thanks in advance :lol: *-----------------------* Posted at:...more >>

What is the typeof() an array of a Type?
Posted by Jon Shemitz at 12/27/2004 7:43:57 PM
Suppose you have a dynamically loaded assembly, Assembly. Suppose you enumerate all the types in Assembly with Assembly.GetExportedTypes(). Suppose you are working with Type ExportedType; which you got from Assembly.GetExportedTypes(). What is the type of an array of elements of the type...more >>

Dynamic Properties
Posted by Demetri at 12/27/2004 6:49:04 PM
I would like to know if anyone can suggest how to implement the following: We need to have classes who's properties are defined by a database. The properties can not be hard coded. In addition properties datatype will also be defined by the database and are subject to change in the future. So...more >>

assemblies...
Posted by Azerty123 at 12/27/2004 6:18:00 PM
Hi, I understand that adding an assembly to the GAC, will make that assembly available to other applications. Is it possible to configure a global assembly only to be available for software from the same vendor? I don't want others to reference my assemblies, but I have assemblies used b...more >>

String Manipulation
Posted by Brian Hammer at 12/27/2004 2:11:14 PM
All, if I had a string that looked like: "This user has a username of - brian hammer" or "This user has a username of - Any Number Of Characters" How can I get the string that is right of the "- " for example, return just brian hammer? Thanks, Brian ...more >>

install prob .net framework error1304
Posted by Blaze406 at 12/27/2004 1:19:04 PM
Hi am am desperatly trying to install this program but during setup i get an error message that says error writing to file, make sure you have acsess to it the error number is 1304 somebody please help me....more >>

Updating a windows forms control from a thread
Posted by DW at 12/27/2004 1:07:24 PM
I've gotten this question a couple of times in interviews and I don't know what they are looking for: How do you update a control's property, such as a textbox.text property, from a thread, in .NET? It seems to me you just update it normally. What are the interviewers looking for here? T...more >>

WeakReference/GC/multithread question
Posted by Thibaud Bouquely at 12/27/2004 11:51:51 AM
Hello ! I just read source code witch use WeakReference object to implements some Cache system. I can read the classic code like this // point A if (myWeakReference.IsAlive) // point B ((MyClass)myWeakReference.Target).DoSomething(); // point C I am trouble with theses code Lines ...more >>

Retreving function structures from DLL's (PInvoke)
Posted by Prasad Dannani at 12/27/2004 10:51:15 AM
Hi, I am a c# programmer. New to PInvoke. From MSDN i came to know using link or dumpbin exe's we can retreive all the functions in dll's. Can any one help me on how to retreive the api function names including there structures ( Ex: public static extern int MessageBox(int hWnd, String text...more >>

Trace question
Posted by Spyros at 12/27/2004 9:15:34 AM
I am using Trace in order to log information about the behavior of a web application. In web.config I have defined my Application Listener as following: <trace autoflush="true" indentsize="4"> <listeners> <add name="AppListener" type="System.Diagnostics.TextWriterTraceListener" ...more >>

.exe started by a service crashes when sound card or USB device ac
Posted by Landon Kelsey at 12/27/2004 9:14:45 AM
When the process aft.exe is started normally (double click on .exe file), everything works OK! When I start aft.exe from a service using Process.Start(), aft.exe crashes when the sound card or a USB device is accessed. I thought the problem could be permissions. There is only one hardware ...more >>

aspx in virtual directory
Posted by Ricardo Machado at 12/27/2004 9:13:40 AM
Hi, I’m trying to run an aspx page on a virtual directory, and I’m getting the error “Server cannot access application directory” (my previous post). Using a file monitor, I found that the problem should be as follow: “12:43:41 w3wp.exe:1756 OPEN E:\Documents and Settings\Ricardo\...more >>

Asynchronous Execution and Thread Pool in a Server Scenario
Posted by dsitton NO[at]SPAM pansw.com at 12/27/2004 7:29:40 AM
I've read several posts about his issue but could not understand what exactly going on under the hood. In a server scenario, a Thread Pool thread is processing a request. At some point it needs to do an IO call (database, web service, file system etc). Basically, I have two choices: 1. Synchr...more >>

Transaction Problem with ODBC over xp SP2
Posted by Rafael Vieira at 12/27/2004 5:33:12 AM
I´ve got a problem with my component I developed a Serviced Component with .net Ever this component access the database and start the transaction with my Database(INFORMIX) show a error message [25000] [Microsoft][ODBC Driver Manager] Failed to enlist on calling object's transaction [IM0...more >>

Transaction Problem with SP2 XP and ODBC
Posted by Rafael Vieira at 12/27/2004 5:33:08 AM
I´ve got a problem with my component I developed a Serviced Component with .net Ever this component access the database and start the transaction with my Database(INFORMIX) show a error message [25000] [Microsoft][ODBC Driver Manager] Failed to enlist on calling object's transaction [IM0...more >>

aspx in virtual directory
Posted by Ricardo Machado at 12/27/2004 3:29:06 AM
Hi, I’m trying to run an aspx page in a virtual directory in my IIS, and getting the error below. Please, where I should fix to make it run? I’ve tried many security changes in directories, without success. The html and asp pages are running fine. Thanks in advance. Ricardo Aspx E...more >>

”
Posted by e_zverev at 12/27/2004 3:07:03 AM
the related MSDN article link is "ms-help://MS.MSDNQTR.2004OCT.1033/cpguide/html/cpconEnablingRuntimeToSearchForAssembliesInOtherLocations.htm" Hi I post information conserning the DEVPATH thing “unexpected” and “undocumented” behavior. Having in mind all that is said below I ha...more >>

.net Framework installation prob. error 1304
Posted by Blaze406 at 12/27/2004 12:33:02 AM
hey I need to install the framework because another program i am installing rrequires it. the download went fine but the problem occurs when i am installing the framework. I get and error message (#1304) and it says that it cannot be written to file, so-and-so, then it says make sure u have ac...more >>

System.Runtime.Serialization.SerializationException
Posted by Dan at 12/26/2004 2:39:02 PM
I am trying to write an app that uses serialization however I'm getting an error 'System.Runtime.Serialization.SerializationException occurred in mscorlib.dll Additional information: BinaryFormatter Version incompatibility. Expected Version 1.0 Received Version 1008738336.1684104552. ...more >>


DevelopmentNow Blog