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 > january 2005

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Embedding XML/HTML Data Inside RESX Files
Posted by Tyrven at 1/31/2005 9:35:01 PM
I would like to place XML and/or HTML tags inside an XML Resource (*.resx) file. This is easy to do within text based resource files; likewise, I would assume that resx files (being XML based) would support the standard CData tag. However, when putting a CData tag in a Resx file, I receive a...more >>


Vb.Net application is terminated unexpectedly without message
Posted by Ralf Gedrat at 1/31/2005 7:59:15 PM
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here sporadically without message. It's not possible to debug in visual studio, i get no exceptions (appl...more >>

User information of Windows account
Posted by Christian Nein at 1/31/2005 7:09:22 PM
Hello, I am trying to retrieve additional user information of the Windows account (such as first name, surname, e-mail, ...) Does anybody know how I can get this information? Thanks in advance and best regards, Christian ...more >>

Help with UNC
Posted by John Cosmas at 1/31/2005 6:27:55 PM
My app needs to access files accessible via UNC on a local network path and get to some DOCs, XLSs and PDFs. I have to run the system.io.file.exists function to see if the document are where it is said to me. I can run a test like "c:\printer.log" and it passes using the account "NT AUTHORITY\...more >>

Location of referenced assemblies
Posted by Russ Ferrill at 1/31/2005 3:36:31 PM
I would like to store a referenced assembly in a subfolder within the application's folder. When I move the assembly to the subfolder, the application can no longer find it. Can somebody tell me what I need to do to allow the application to find the referenced assembly in a subfolder of the ...more >>

Transmitting data from one process to another.
Posted by Peter Strøiman at 1/31/2005 3:09:17 PM
Hi. I have a situation where I would like to stream data from one process to another. I.e. I can write data to a stream in one process, and the read the data from a stream in a different process. I already have a solution running where I use a Tcp sockets to do the job. Quite simple actu...more >>

AutoResetEvents a limited resource?
Posted by Ben at 1/31/2005 1:55:07 PM
Hi All, In reading the documentation on AutoResetEvents and WaitHandle I'm not sure whether they are limited resources (i.e. limited by something other than memory). WaitHandle mentions that it uses some nebulous "operating system resources" and I would like to know more specifically is ha...more >>

How to know when a User change de PC clock
Posted by Juan Manuel Alegría B. at 1/31/2005 11:29:13 AM
Hi group, I need to know when a user change the time on the computer, I mean if there is a log in which is saved information about the pc clock. Thanks so much. ...more >>



Marshalling Question
Posted by Beringer at 1/31/2005 11:24:58 AM
Is it possible to marshal a FileStream or StreamReader object in C#? Ok the real question is: How dow you marshal the above objects? I've been trying all different ways and haven't figured it out. Thanks in advance, Eric ...more >>

Windows Logo Compliant Applications
Posted by francis at 1/31/2005 10:18:51 AM
My company develops software for end user. We have some .net software which we would like to sell to end users and we would like to make the software "Windows Logo Compliant". Does any one know where or how we can get info on how to do this? One of the biggest problems is when the appli...more >>

Fresh Framework 1.1 install on Win2000 SP4: error cscomp.dll cannot be witten to folder check user rights
Posted by Wes Dabney at 1/31/2005 9:06:20 AM
Windows 2000 SP4 Hello everyone... here's the deal. I have searched everywhere I could to find the answer to this problem, but it seems I'm the only one with this particular installation error. When installing the framework, I recieve an error writing to the c:\winnt\.Net\ subfolder for the...more >>

ArrayList question
Posted by Scott at 1/31/2005 8:39:03 AM
Hi, I have an application where I am attempting to pass an ArrayList of ArrayList objects from a function to another function. I have created a sample application as follows: using System; using System.Collections; namespace ArrayListTest { class Class1 { static void Main(...more >>

how to resolve http error 504 code
Posted by blazzerbg NO[at]SPAM gmail.com at 1/31/2005 8:06:43 AM
I am writing i web based program, based on HttpWebRequest and HttpWebResponse. When i want to make query to specified server with following parameters : -------------------------------- Server: Microsoft-IIS/5.0 Date: Mon, 31 Jan 2005 16:00:08 GMT X-Powered-By: ASP.NET Cache-Control: max-age=...more >>

HOWTO Build a C# app to MSIL/CIL?
Posted by ATS at 1/31/2005 6:11:03 AM
HOWTO Build a C# app to MSIL/CIL? Please help, I want to build an MSIL from my VS.NET/C# app, but I am finding confusing information in MSDN on how to do it. I want VS.NET to automatically build the MSIL each time my project builds. How can that be done? ...more >>

Why sometimes a statement after Thread.Start() is not executed?
Posted by Thana N. at 1/31/2005 4:25:02 AM
Hi, I've found that sometime a statement after Thread.Start() is not executed. My code are as follows:- Sub Start() ' initialize threading value ... _thrd.Start() ' new instance _obj = new MyClass End Sub From code above, I've found that sometimes a statement "_obj ...more >>

How do I process a SERVICE_CONTROL_DEVICEEVENT event?
Posted by Andy at 1/30/2005 11:29:04 PM
I am trying to create a Windows service that needs to be aware of the status removable devices. In essence I want to be able to handle the SERVICE_CONTROL_DEVICEEVENT event, however I cannot find any way of doing this using the System.ServiceProcess.ServiceBase class. Can anyone tell me ho...more >>

Multi-threading and static classes
Posted by jester at 1/30/2005 6:45:02 PM
I have a static class that I'll be using in an ASP.NET app. One of the static methods returns an array based on a user ID. Pseudo-code is as follows: static string[] myFunc(string userID) { declare array populate array with value from a database; filter by userID param. return the array t...more >>

Assembly name vs. Namespace name
Posted by Vagif Abilov at 1/30/2005 2:52:47 PM
I've recently read guidelines where it is recommended to organize projects in directories that match assembly names. For example, if I have an assembly called MyCompany.MyProduct.Data, then I should have the following folder structure on my local disk and in version control system: MyCompan...more >>

Convert, e.g., string "System.Drawing.Colors.Red" into true data type?
Posted by Ken Overton at 1/30/2005 12:53:59 PM
Obviously the system does this for deserialization. So how can I do it for arbitrary classes (not just enums)? Does this require generating a temporary assembly and compiling it? -- kov...more >>

.Net Translator component
Posted by frederik at 1/30/2005 8:42:54 AM
Hi Have someone already tested with the .Net Translator compone=AD=ADnt. I downloaded the component from www.dotnettranslator.com to test and it seems very easy to=AD use. My problem was that my customers always changes the text on =AD=ADthe website. In the beginning I used resource ...more >>

How to open a form in hidden mode?
Posted by Veera.CH NO[at]SPAM gmail.com at 1/30/2005 2:18:54 AM
Hi all, How can an windows form be started in hidden mode? My problem is I've setup a load event handler where I'm setting this.Visible = false and calling base.OnLoad(). I noticed calling base.OnLoad() is setting visibility to true for the frame. I tried to peek in to Windows.Forms assembly us...more >>

Create a my own data type ?
Posted by mrVithan at 1/29/2005 7:09:01 PM
I have a idea to build my own data type. I want my variable as a value type not a object type for some reason. Here is my idea : ID myKey; myKey = ID.key; string str = "Here is the key value" + myKey; Unfortunatly, I really can't find any articles discussing how to implement this, or I...more >>

NameValueCollection's GetValues does not return multiple entries
Posted by Vagif Abilov at 1/29/2005 3:50:28 PM
When I use AppSettings and try to retrieve multiple values associated with a single key, I only get the last value. E.g. if I have in my config <appSettings> <add key="Key" value="Value1" /> <add key="Key" value="Value2" /> </appSettings> then attempt to read both values by using AppSet...more >>

Web Service Performance
Posted by mterzich at 1/28/2005 9:59:01 PM
I developed a Web Application that has a Web Service component. I also created a direct API to the second layer of the Web Service without going through the Http connection to the Web Service. I noticed that if I make the calls through the direct API (getting about 4KB of data from disk), it w...more >>

Mac mini
Posted by Peter Morris [Droopy eyes software] at 1/28/2005 5:30:05 PM
My wife needs to buy a new computer. The main app she uses is available for both Windows and Mac. I'm more than a little bit tempted to talk her into buying a Mac mini, but before I do there is something I would like to know. Has anyone here ever tried developing .net apps for the Mac, an...more >>

How can I map a site with the correct .NET Framework Ver.?
Posted by PR at 1/28/2005 1:43:08 PM
Hi All I recently upgraded one my servers to .NET FW 1.1. I noticed in IIS, that my web apps were still associated with the older .NET version. When I try to remap with the new version by using the following commandline statement C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322> Aspnet_regiis....more >>

Assembly.LoadFrom error?
Posted by Juan at 1/28/2005 1:33:15 PM
Hello I'm Developing for PDA and using Assembly.LoadFrom("") static method, but I obtain a strange behavoiur. If i use an old DLL I compiled long time ago, the method correctly loads the assembly dinamically, but If i use now compiled DLL, instead of return the DLLs assembly it return...more >>

FileSystemWatcher UserID
Posted by CodeHunter at 1/28/2005 11:59:02 AM
Does anyone know how to determine the userid of the user invoking the events. I have seen other post, but no solutions. Any help with this would be much appreciated. ...more >>

Question about SQLDataReader
Posted by Marlon at 1/28/2005 10:34:14 AM
Would there be any performance gain to calling SqlDataReader.GetSqlXXXX instead of SqlDataReader.GetXXXX ? I assuming that SqlDataReader.GetXXXX makes a call SqlDataReader.GetSqlXXXX (i.e.GetString calls GetSqlString) ...more >>

Question: SqlDataReader.GetSqlXXXX vs. SqlDataReader.GetXXXX
Posted by Marlon at 1/28/2005 10:29:48 AM
Would there be any performance gain to calling SqlDataReader.GetSqlXXXX instead of SqlDataReader.GetXXXX ? ...more >>

Using log4net with a Windows service
Posted by Gerald Aden at 1/28/2005 10:00:54 AM
I am using log4net 1.1 and am having a really hard time getting it to work with a C# Windows service. Here is the code I put in the Main: StreamWriter writer = new StreamWriter("c:\\tmp\\log4net.log"); writer.AutoFlush = true; Console.SetOut(writer); log4net.helpers.LogLog.SetInterna...more >>

Convert .rtf or .doc or .pdf or .htm to plain txt
Posted by Dave at 1/28/2005 8:14:29 AM
Greetings, Is anybody aware of any code that will allow me to read .rtf or .doc or .pdf or .htm as plain text (so I can do a streamreader off them). Thanks, -Dave ...more >>

How to write plain ascii to a textfile
Posted by Edward at 1/28/2005 6:49:05 AM
I think I overlook something, but when a write to a text file using a StreamWriter, the file is written as unicode. I'm writing information that is retrieve from nvarchar fields on SQL server. I have a problem with characters like Ü, Ö, etc. When looking at the file they seems to be correct,...more >>

HTTP req 500 error on SSL
Posted by Andrew at 1/28/2005 6:25:03 AM
When I call the GetRequestStream() method for the site I'm trying to access, I get a long pause followed by an HTTP 500 error (contained in a WebException object) I've tried to mimick the behavior of Explorer exactly to no avail. I believe all my cookie handling and HTTP headers are correc...more >>

Tell if an object will be local or remote
Posted by Tim Haynes at 1/28/2005 12:11:32 AM
A question. Before I instantiate a type I need to know whether it will be local or remote. Obviously I know the type by a namespace.type string, as I don't have an instance. Now, I can tell a WebService proxy by using reflection to see if it's derived from System.Web.Services.Protoc...more >>

Security problems
Posted by gladiator at 1/27/2005 10:35:01 PM
Hello: I have several question about the security system in dotnet framework. 1: How is the evidence of assembly decided by common runtime system? 2: If a assembly is deployed to producton enviroement,is there anything changed in evidence? 3:How does security p...more >>

Problem with System.Process and quotes/spaces in arguments
Posted by WALDO at 1/27/2005 4:36:22 PM
I wrote a console application that basically consumes arguments and starts other command line apps via System.Process. Let's call it XCompile for now. I wrote a Visual basic add-in that does pretty much the same thing to XCompile. Let's call it MyAddin. XCompile collects information to send to...more >>

motivation behind delegates
Posted by Flip at 1/27/2005 3:51:12 PM
I'm sorry for the newbie question, but I'm a bit confused. I'm reading about Delegats in Jesse Liberty's C# Programming book and, well, I'm confused as to the motivation behind delegates. On the surface, they look exactly like using interfaces in java, so why have another construct to conf...more >>

Sharing data between applications
Posted by Søren M. Olesen at 1/27/2005 2:39:22 PM
Hi Using the System.Web.Caching.Cache object, I'm able to share data between two (or more) different web clients (http-sessions). But what if some of my Clients are Windows/Comsole/... applications ??...can I somehow access the same cache or am I bound to access my data using http?? Ti...more >>

RichTextBox Question
Posted by Beringer at 1/27/2005 2:15:43 PM
I am using Framework v1.0 (C#). My question about richtextboxes is: I have been choosing a location in the text box string doing the following: .... textbox.SelectionLength = 0; textbox.SelectionStart = myPos; .... After setting the position I have been inserting text by calling: .... textb...more >>

Files to clipboard
Posted by sithlord at 1/27/2005 1:53:02 PM
Someone knows how to copy Files into the clipboard using C#? I've tried filling a DataFormat with FileDrop and I passed a string with the filename to setData() but no luck. I've also tried with a FileInfo object but It does not work. Is it possible? Please help!!! ...more >>

what is the difference
Posted by zbcong at 1/27/2005 11:09:48 AM
hello who can tell me the relation and difference between the following concept: 1 no-touch deployment 2 clickonce 3 smart client ...more >>

Session String value confuses Response.Redirect
Posted by jmhmaine at 1/27/2005 11:03:07 AM
Overview: I redirect a user to a page to register, then redirect back to orginating page. The registration page is a two part form. On the second post I send the user back to the page they came from. On Page Load I assign a Form value called ReturnURL to a Session value called the same thi...more >>

BinaryFormatter.Deserialize after signing of assembly fails
Posted by Henrik Skak Pedersen at 1/27/2005 10:52:26 AM
Hello, I have a class which is beeing serialized/deserialized using the BinaryFormatter class. That has been working with no problems until I signed all my assemblies. Now I get a SerializationException when I try to Deserialize the class which has been serialized before the signing. So wha...more >>

(Color myColor = Color.LightBlue) returns value RGB{0x0}???
Posted by Sami at 1/27/2005 10:51:16 AM
Hello, I just started out with Windows.Forms and was going through the MS tutorials. In the tutorial where you can create a non-rectangular shaped window by using your own window painted with some paint utility, I am having some problems with trying to compare the color of the pixel that I retr...more >>

ActiveX, plug-in...whatever
Posted by Rob T at 1/27/2005 10:14:31 AM
The other day I posted a question about using ActiveX in my project..... obviously, that's not the best solution. But I found this great article on what the author calls rich-client which does EXACTLY what I'm looking for. Being able to show a windows form in an IE window! http://msdn.micro...more >>

HttpWebRequest.GetResponse()
Posted by supergreg NO[at]SPAM elitereversers.de at 1/27/2005 10:00:04 AM
Hi, how does GetResponse() act (request-method is GET!), when the Content-Length of the HTTP-Response is -1, i.e. unlimited? Using a Packet-Sniffer i found out, that it returns after having received the HTTP-header and a few packets from the data-stream. However, i'd like to know the method's...more >>

Windows Service gives Access Denied error
Posted by OAceJ at 1/27/2005 8:47:02 AM
Hi. I’m writing a Windows service in C# that needs to run in the NetworkService account, but when I create an Installer and set ServiceProcessInstaller.Account to NetworkService on an otherwise unaltered new project, I get an “Error 5: Access Denied” message when I try to start the ...more >>

Compiling C++ class project to a dll
Posted by jwk at 1/27/2005 8:31:07 AM
I've been given a C++ class library project which I need to use from my asp.net vb.net project. I have tried building the C++ class library it but it only creates a series of .obj files which I can't reference from the asp.net project. How do I get the C++ class library to compile to a dll (I'...more >>

Persistance medium problem.
Posted by mterzich at 1/27/2005 2:25:01 AM
I save and get the ViewState from persistance medium in my application instead of saving it in the hidden field and my program works without problems except in my login screen. In my login screen I have two dropdownlists. The first contains the name "Administrator" and any branch names that ...more >>


DevelopmentNow Blog