Answer Questions
dcritch Process.StartInfo.Arguments
I am trying to GET the arguments that were used to start a process (console app). But it always seems to be returning empty string. Is there a way to get the command line arguments that were passed to start a process Example: Lets say I opened "notepad" using a file name on the command line. Then I need a way in .NET to get the file name value that was passed to this process. string sProcessName = "notepad" ; foreach( ...Show All
Rohith Rty Creating .DDL
Hello Anyone know how to create a .DLL using Visual studio2005 I am trying to build the project class but when i see bin folder no dll exists. Thanks abhilash You need to set your project as a Class Library to generate a DLL. Stupid question I know... but are you sure that your build is succeeding If it is failing, the only DLL you’ll find will be the previous version (if one existed). ...Show All
Ben628751 Rationale on the System.Collections.ObjectModel namespace
I'm curious to know the rationale on having the System.Collections.ObjectModel namespace. More importantly I'm curious to know why only 3 generic collection classes are in there while the interfaces and the remaining generic classes (Dictionary, List, etc.) are in System.Collections.Generic. It seems to me that this is counterintuitive. I thought the original purpose of System.Collections.Generic was to isolate generic collecti ...Show All
Aaron Tan RemotingServices.Marshal and RemotingConfiguration.RegisterWellKnownServiceType
Hi What is the differenec between RemotingServices.Marshal and RemotingConfiguration.RegisterWellKnownServiceType.Which one is better to use. Regards, Arabinda well. . . they both have their place. Marshal is good for dynamic publishing of Remoting Objects or for instancing Objects that have take parameters in their constructor. RegisterWellKnown is good for using factory objects. That is a Singleton object that ret ...Show All
Charles Nicholson Instruction of IL in PE File(01)(70)(04)(0A)?
After running idasm, i found that IL_0000: /* 02 | */ ldarg.0 IL_0001: /* 18 | */ ldc.i4.2 IL_0002: /* 8D | (01)000004 */ newarr [mscorlib/* 23000001 */]System.String/* 01000004 */ IL_0007: /* 0A | */ stloc.0 IL_0008: /* 06 | */ ldloc.0 IL_0009: /* 16 | */ ldc.i4.0 IL_000a: /* 72 | (70)00001B */ ldstr "Hello World by " /* 7000001B */ ..... there are some (01), (70), ...Show All
soellnas unspecified error creating a dataset Visual Studio .NET
I am using Visual Studio 2003. If I try to drag and drop a DataSet from the toolbox data tab I et a message box that simply says 'unspecified error'. Has anyone had this error while creating a dataset this way I can create datas ...Show All
Shane Colin The connection's current state is Closed??
Hi all, I'm trying to use a sqlDataReader to load data into a DropDownList on a .aspx page, but get the following error: Server Error in '/YLCPDTdb' Application ExecuteReader requires an open and available connection. The connection's current state is Closed. But havn't I opened it with the conn.Open(); statement Here's my code: private void Page_Load( object sender, System.EventArgs e) { ...Show All
zaladane Isolation Level Change
How can I change IsolationLevel property of DbTransaction.Isolationlevel, when it's readonly Thanks The isolation level can be determined by using an overload of the BeginTransaction method on the Connection object. There's a BeginTransaction method that takes a parameter 'IsolationLevel'. Thanks a lot, it was helpful ...Show All
dragonroll URGENT:System.Resources.ResXResourceWriter
hi all, I am using .NET framework2.0, according to MSDN there is a class ResxResourceWriter in the namespace System.Resources, but i am not getting any such class here, what could be the problem, i am using WINNT operating system. Thanks in Advance -Rahul Just to clear this up, ResXResourceWriter is in the System.Resources namespace, however, it is located in the System.Windows.Forms.dll ...Show All
Sharrukin How to create a custom masterPage class?
How to do Hurried; Hi! The short answer to your question is that you can just create a new class in your AppCode folder that over rides the MasterPage class, and go from there. The best place for asking ASP.NET questions is on the ASP.NET community site, and in the forums there. Check out http://www.asp.net/welcome.aspx tabindex=1&tabid=39 . HTH, PEte ...Show All
smozaffari BackgroundWorker question
Hi all, I need your help with using the new .Net 2.0 WorkGroundWorker component. I'm using the worker to read data from external device in a time interval. Sometimes I nead also to write to the device, Then I do the following : 1. Disabling the interval timer. 2. Calling the CancelAsync of the worker. 3. Calling the writing function. Now, My problem is : When I call the CancelAsync maybe the reading proccess is still runing ...Show All
Tiago Dias Finalizer thread semantic
In a previous post , I was describing a weird problem encountered within the finalizer thread. Basically, within a finalizer I was doing quite a lot of work (complicated side effects, not simply cleaning few ressources), and I did encounter some weird CLR behavior. I am actually wondering about the semantic of the finalizer thread. First, I guess that intercepting the finalizer thread to do any real work is a bad idea because it blocks the gar ...Show All
Ade Morgan How do you list container names?
Say I use sn -i file container_name to install a keypair into a container. Is there a way with sn.exe to list all the container_names in a CSP Cool utility. Thanks! Hi Keith, Unfortunately SN does not expose a list of key container names -- however, you can get at this information programatically with the CryptGetProvParam Win32 API passing in the PP_ENUMCONTAINE ...Show All
enpointeprolifix best practice for user session
Trying to, for fun, create my own custom forum in ASP.NET. I have done this once before just very rough stuff no security in place. But I want to make a more serious forum now. I want to know what is the best practice to store a users log in session Is it best to add it in a session state What I mean is that, I want users to reply/post to topics when they are logged in. Of course I am not going to pass the user id via querystring for obvious re ...Show All
ASP-SQL Newbie Creating a new ASP.NET membership provider
Hi, I have recently installed MS SQL Server 2005 Beta and am now trying to use this to store my membership/profiles information instead of the MS SQL Express. But I can't see how I'm suppose to add the Provider. All the documentation that I have seen has said that it can be done via the "Web Site Administration Tool" under the provider tab. By selecting add new provider. But it isn't there Anybody else got any ideas Thanks ...Show All
