Groups | Blog | Home


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 > october 2005 > threads for october 22 - 28, 2005

Filter by week: 1 2 3 4 5

Is there an equivalent to the ADSI NameTranslate function in the .NET Framework class libraries?
Posted by Stephen Walch at 10/28/2005 6:43:21 PM
I want to convert DN to windows login names (DOMAIN\loginname). Is this burried in System.DirectoryServices or somewhere else? Thanks! ...more >>

list vs bindinglist
Posted by param NO[at]SPAM community.nospam at 10/28/2005 4:58:53 PM
Hi all, I am developing a bunch of custom business objects and to hold collections I am using the BindingList(of ) generic collection. Now I know that will come useful if I want to directly bind that data to databound controls. If I dont ever have such a need, would I see a significant perf...more >>

Hotfix for .NET Framework 1.1
Posted by Andrew Jenssen at 10/28/2005 4:13:22 PM
Visual Studio.NET 2003 came with Framework 1.1 on the installation CD. There is a "hotfix" out for Framework 1.1 . If this hotfix is installed, would it interfere with Visual Studio or the running of apps built with Framework 1.1 that didn't have the hotfix? Jenssey...more >>

Web.config Help
Posted by Peter Avalos at 10/28/2005 2:58:09 PM
I am trying to configure a set of access rules for a subfolder in my project. The folder is a subfolder in the application folder and cannot read the dll file in the application's bin folder. How do I propertly tell the compiler in the Web.config file used in the sub folder where to find the...more >>

Asynchronous calls within a callback?
Posted by uncaged at 10/28/2005 1:19:36 PM
In the .NET 2.0 example for HttpWebRequest.BeginGetResponse(), in the RespCallback function, after EndGetResponse(), it gets the stream and starts reading from it asynchronously. I'm wondering why. Since it's already happening in a callback function, wouldn't it be just as good to do the rea...more >>

Installing .NET 2.0 Runtime via GPO
Posted by Michael D. Ober at 10/28/2005 1:13:48 PM
Can I just extract the files from the dotnetfx.exe program and have a GPO policy to install on each computer during reboot? There is a single MSI file in the extration. Thanks, Mike Ober. ...more >>

OnPaint Is not being called
Posted by forkunal NO[at]SPAM gmail.com at 10/28/2005 12:02:29 PM
I have made a class(Pin), derived from UserControl which implements its own interface. To do so its OnPaint must obviously be called. This Control is a part of another control(Gate) which acts as a container for Pin. The problem is that the function Pin.OnPaint() is never called. I had a similia...more >>

How do I get HTML output from XslCompiledTransform in 2.0?
Posted by lwickland at 10/28/2005 8:45:05 AM
How do I get HTML output from the new in 2.0 XslCompiledTransform? The XslCompiledTransform class has a read only OutputMethod property. The XslCompiledTransform.Transform() method takes an XmlWriter, which has an XmlSettings object with a read only OutputMethod property. At runtime XslCo...more >>



Generate MSI file which runs without admin rights.
Posted by hans at 10/28/2005 6:27:34 AM
Hallo! Is there a way to generate a .msi File for distribution from Microsoft Visual Studio .NET 2003 which runs without having admin rights? Thanx, Hans ...more >>

using System.Management to get volume info on a specific drive
Posted by TT (Tom Tempelaere) at 10/28/2005 3:01:03 AM
Hi people, I saw several code samples that first enumerate all drives using a query with the ManagementObjectSearcher class: <code> ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT * From Win32_LogicalDisk "); ManagementObjectCollection queryCollection = query.Get();...more >>

very strange handler AxWebBrowser1.DocumentComplete
Posted by Zabby at 10/28/2005 2:34:05 AM
hi, i want to do following: Private Sub AxWebBrowser1_DocumentCompleteEventHandler(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent) Handles AxWebBrowser1.DocumentComplete Label7.Text = "LOAD DOC " & Now doc = AxWebBrowser1.Document ...more >>

Documentation tool for VB .Net 2.0
Posted by Sameer Mowade at 10/28/2005 12:00:00 AM
Is there any Documentation tool available for visual studion 2005. I have googled for it but does not find anything. Thanks in advance ...more >>

Serialization
Posted by Bagger at 10/27/2005 10:31:01 PM
I want to serialize an object in VB.Net and store the data in SQL Server 2000, and be able to retrieve and deserialize it later. Can anyone explain how I can do that? Specifically, how do I insert a stream into a database field? What data type should the field be? Image? This seems like i...more >>

how to get PRINTERS NAMES ?
Posted by pamelafluente NO[at]SPAM libero.it at 10/27/2005 5:53:35 PM
I need to load all the available printers - including network ones - in a combobox. Would anybody so kind as to show me how to do it? Thank you -Pamela ...more >>

conditionally compile "Try" section of exception handling
Posted by Chirag at 10/27/2005 11:14:24 AM
I will soon be working on a embedded device using .NET Compact Framework where performance is a major issues. Therefore, I would like the ability to disable exceptions at compile time. I use the below approach to conditionally compile the "Throw" part of the exception handling. Is there any eleg...more >>

running csc from command prompt - csc.exe file not found
Posted by Steve Richter at 10/27/2005 10:51:48 AM
just installed .net framework 1.1 sdk on a PC at work. I would like to run csc.exe to compile a C# source file. In the command prompt box I navigate to the directory that holds the c# ..cs source file. then I enter the csc.exe command string to compile the source file and the error is file CS...more >>

TIF files only half height?
Posted by NetRacer at 10/27/2005 8:50:10 AM
Hi, I'm loading graphics into a PictureBox using then Image.FromFile method. If the Image is a TIF file it get's only half the height. The whole Image is displayed (not cut off somewhere) but it looks squeezed. The TIFs are documents received by fax and encoded by "Group 3 Fax Encoding" (as...more >>

Parse a string
Posted by Viraptor at 10/27/2005 8:13:15 AM
Hello How can I parse a string, which format I know, to elements. (in c#, not using a regexp) For example - it will be "number text = number text". Is there a faster way to do it than getting string from start to IndexOf(" "), parsing to number, getting next part to the next space, ..... I'm l...more >>

Cannot READ a file being used by another process
Posted by Woody at 10/27/2005 7:48:23 AM
I try to open a file that is opened and used by win32service for logging purposes in c# The following code line StreamReader sr = new StreamReader(filename); gets an exception: The process cannot access the file 'XX' because it is being used by another process. I can open the file usi...more >>

Lab Files for Hands On Labs on TechEd 05 DVDs
Posted by RobinB at 10/27/2005 6:48:05 AM
I am looking at trying out some of the ASP.Net 2.0 based hands on labs from the TechEd 2005 DVDs but most of them use a database called MyComics which I cannot seem to find on any of the DVDs or on the web. Can anyone point me in the right direction so I get get the necessary lab files that g...more >>

Workflow package error in VS2005 when loading it, after installati
Posted by mickster at 10/27/2005 5:18:02 AM
Hi there, I get the following error after I installed MS Workflow Foundation for VS2005. It Happens when I load up VS2005. Any ideas.. Warning 1 The "System.Workflow.ComponentModel.Compiler.CompileWorkflowTask" task could not be loaded from the assembly System.Workflow.ComponentModel, Ver...more >>

VS 2003 debugger problem
Posted by Marius Horak at 10/27/2005 4:12:47 AM
Hi, Our technical support people decided that all PCs will have an automatic Windows update. The first such update was yesterday. Today my global error handler (Application.ThreadException) does not work any more. In VS Debug mode the program stops at the error line with Break/Continue. In...more >>

What are RptProj, rdl and rds files ?
Posted by Santhosh A Nagendra at 10/27/2005 12:00:00 AM
Hello, We have project files in .Net with the extensions as xxx.rptproj , xxx.rptproj.user, xxx.sln , yyy.rdl, yyy.rdl.data and zzz.rds files I would like to know what are these files and what type of project it is. I tried to open in VS.Net and Visual studio but did not open. Do i need to i...more >>

anyone having an idea
Posted by nizam at 10/27/2005 12:00:00 AM
hi all, this is nizam. just today i have joined this group. i want to know how to bind a dropdownlist to the datagrid in asp.net application. thankx in advance nizam. ...more >>

PropertyInfo.SetValue and custom type
Posted by Vladimir Semenov at 10/27/2005 12:00:00 AM
Hi all, I have a problem with PropertyInfo.SetValue(). Task: There is a generic code updating object properties using reflection. I don't want to change this code. One of property is of a custom type which is fully controlled by me. Problem: When the generic code tries to pass integer t...more >>

VB6 access to .NET framework classes
Posted by Val at 10/26/2005 7:02:45 PM
Does anyone know if it is possible to access the System.URI class from ..NET framework in a VB6 program? If it can be done what reference do I need to add to the project? I have tried adding system.dll but this doesn't seem to do the trick. Thanks, Val ...more >>

How to detect if I am WindowsImpersonationContext ?
Posted by martinpare258 NO[at]SPAM community.nospam at 10/26/2005 12:28:01 PM
Hi, We have a server process that needs at some point to revert to its own identity to perform some privilege tasks, we do so by calling WindowsImpersonationContext context = WindowsIndentity.Impersonate ( IntPtr.Zero ); We later call context.Undo(); to revert back to the us...more >>

Get Types referenced by an assembly
Posted by Doug at 10/26/2005 12:03:01 PM
The Assembly class has a GetReferencedAssemblies method that returns the referenced assemblies. Is there a way to find what Types are referenced?...more >>

Cannot Alter PrintDialog Settings Programatically
Posted by Craig Adams at 10/26/2005 12:01:12 PM
Hi, I am trying to alter the the printDialog properties programatically and appear to be unable to. In the code below, I am changing the default paper size to Legal. However, it always changes back to letter. If I change the paper size in the dialog, it works as expected. I also tried to...more >>

MS Unhandled ExceptionHandler still being called after our own
Posted by Arnie at 10/26/2005 11:55:47 AM
Folks, Why does the MS unhandled exception handler get called when we have registered our own if we call Application.Exit() from our own handler?? We are developing application using .Net 2.0 (beta). We have defined our own unhandled exception handling policy and would like to use only t...more >>

Bug in System.Decimal
Posted by Myron Marston at 10/26/2005 11:41:19 AM
I've discovered what seems to be a pretty significant bug in System.Decimal. I'd like to report it to Microsoft, but I'm not sure how, so I figure maybe someone from MS will see it if I post it here. And I'd welcome any feedback, or course. Here's a summary of the bug: When you have two deci...more >>

Redistribute Problem
Posted by MC at 10/26/2005 10:36:20 AM
Still trying to learn folks. Ok, so I have my application built and tested and debugged and now I am more than happy to redistrubute to my friends. Those with Dot Net Framework v2 already installed seem to have no problems. Those who dont get this error during setup: Setup has detected...more >>

Sign assembly with strong name using al /out command
Posted by Tom at 10/26/2005 2:39:09 AM
Hi Friends I have to sign a dll(without source code) with strong name and therefore I use the al /out command: al /out:<assembly name> <module name> /keyfile:<file name> (In this command, assembly name is the name of the assembly to sign with a strong name, module name is the name of the...more >>

Setting ListViewItem indeterminate state in .NET2/Whidbey
Posted by Annette Miller at 10/26/2005 12:00:00 AM
Hi All, Just trying to work out how to set a listview item's checked state to indeterminate. ListViewItemStates looks obvious but as far as I can find its only used in DrawItem and DrawSubItem and even then it's not a property that can be set - only read. A quick search in Google turnt u...more >>

'frmBaseForm' is not CLS-compliant because it derives from 'DockContent', which is not CLS-compliant.
Posted by Pieter at 10/26/2005 12:00:00 AM
Hi, I have this Warning for several forms when using the DockPanel Suite of Weifen Luo in VS.NET 2005. I read a lot about this CLS-compliant stuff, but I don't now how to chech actually which part of the class is not CSL-compliant? Any body knows what to look for? I just want to get rid of ...more >>

Create Compressed Folder
Posted by Tom_B at 10/25/2005 5:16:03 PM
How can I programmatically create a "compressed" folder? Thanks. TomB...more >>

convert any object to byte array
Posted by Abraham Andres Luna at 10/25/2005 4:50:15 PM
does anyone know how to convert any type of object to a byte array some code that doesn't work: MailMessage mmSpec = new MailMessage("info@rdk.com", "abe@rdk.com"); mmSpec.Attachments.Add(new Attachment(Server.MapPath("doc.pdf"))); mmSpec.Subject = "Test"; mmSpec.Body = "Hello"; mm...more >>

Reliability of FileSystemWatcher over networked storage?
Posted by Dan Teven at 10/25/2005 2:56:02 PM
We have a small farm of servers, with common resource data shared between them. The resource data is sitting in a moderately complex directory structure on a shared Network Storage device. Each server has several processes that care about the resources, each of which monitors the resources ...more >>

satelliteassemblies element and ResourceManager
Posted by Mike at 10/25/2005 2:53:48 PM
I have the .NET Framework v1.1 sp1 installed and am trying to use the satelliteassemblies config section to prevent loading resource assemblies (myAssembly.resources.DLL) for our auto deployed application. When I add the satelliteassemblies element to the applications configuration file, I r...more >>

dataGrid ComboBox Column
Posted by Roberto at 10/25/2005 12:48:20 PM
Hey all, How can I populate a dataGrid's column (ComboBox style) with different values in each row? P.S: I am using VS 2005. Thanks, Roberto...more >>

Delegation, Event-Listeners
Posted by mathon at 10/25/2005 11:27:02 AM
Hello, could anybody explain me the advantages and disadvantages of delegation and the advantages and disadvantages using event-listeners? - both related to the treatment of events. thanks in advance regards mat...more >>

restart windows service
Posted by Craig HB at 10/25/2005 9:44:02 AM
How can I restart a windows service using the .net framework ? Thanks, Craig...more >>

assembly for session state
Posted by Darius at 10/25/2005 8:52:06 AM
was wondering where to find the system.web.sessionstate.sessionstatemodule assembly. could not find it in the assembly cache, and would like to use it for session state in asp.net applications and reference it in the config files within the .net ide. any help would be appreciated. thanks, ...more >>

Dataset design doesn't match with database
Posted by Roby Eisenbraun Martins at 10/25/2005 8:26:02 AM
HI, I am Roby Eisenbraun Martins. I am a VC++, VB and NET developer. I created a Dataset using the dataset designer and I added two tables on it. This tables came from a SQL Server database and they have a relation ship in the SQL Server. So a created the same relatio ship in the ...more >>

C# Windows Service problem - installer possibly? Some services stop automatically...
Posted by kevin89065 NO[at]SPAM gmail.com at 10/25/2005 8:17:28 AM
I have a windows service that I am trying to get working using C# and WinXP through the .NET framework. I had got the service to run this morning, however while it was running I realized that I wanted to change some code and it tried to stop it. It attempted to stop itself but gave me an error s...more >>

FTP client as a client side usercontrol
Posted by donk at 10/25/2005 7:44:32 AM
I've got a feeling that this isn't possible but I want to write control to run within the clients browser that can connect directly to an FTP server. I know it's possible to do this server side but I need to be able to transfer files of 4gig + and therefor cannot use server side code as the ...more >>

Error loading Assembly at runtime into new application domain
Posted by Matt Holmes at 10/25/2005 7:31:02 AM
Hi, I’ve been having an intermittent problem with an exception being thrown and cannot work out why. The program works 99% of the time but a couple of times a day a Serialization Exception will occur stating that it cannot find an assembly. Not only is the assembly there but it will then ...more >>

(Security) Full trust programmatically - caspol not suitable
Posted by kierenj at 10/25/2005 2:25:03 AM
Hello, I'm trying to find a way to programmatically apply a Full Trust policy to a URL (e.g. http://server/path/path/bin/debug/myassembly.dll). The assembly is -not- strongly named, because it uses an Excel interop component which cannot be strongly named. Up until now I've been having ...more >>

Equivalent VB.Net code for Bitwise Inclusive OR Operator (|) in CS
Posted by Chrysan at 10/25/2005 1:58:09 AM
What is the equivalent VB.net code for Bitwise Inclusive OR Operator (|) in CSharp? Example what is the equivalent VB.net code for the following CSharp.net code? dwFlags = CRYPTPROTECT_LOCAL_MACHINE|CRYPTPROTECT_UI_FORBIDDEN; ...more >>

Dataset column disappear
Posted by Roby Eisenbraun Martins at 10/25/2005 1:58:04 AM
HI, I am Roby Eisenbraun Martins. I am a VC++, VB and NET developer. I am having a very strange situation here with NET 2002. I got a dataview been created from a dataset with two SPs. DataView.Table = DataSet.Q_SupportCallSummary This part of the code is executed several t...more >>

convert Microsoft .NET Pet Shop 3.0 into vb.net problem
Posted by Chrysan at 10/24/2005 10:23:01 PM
I have download the Enterprise Sample(Microsoft .Net Pet Shop 3.0, which source code is written in CSharp) from the web, and try to convert it into VB.Net code. I have done with the 'IDAL' and 'Model' projects, and now is working on 'DALFactory' project. I have add a 'IDAL' reference in the...more >>

.NET VB V2 Framework
Posted by MC at 10/24/2005 4:12:17 PM
Hi all Not sure if this goes in this section but let me show you what i get and perhaps you can tell me where to look. I have built an application, although in test stages, I have uploaded the files to webserver. All files have arrived with no problems. I then go to the publish.htm page, ...more >>

C# & COM, exploring COM interfaces
Posted by Lloyd Dupont at 10/24/2005 4:11:31 PM
I just discovered a COM interface which provide some functionality I need. I know nothing of COM and read the documentation and will apply a slow trial and error process. In the documentation I see that before calling into COM you should call CoInitialize. And that you shoudl also call CoUn...more >>

How to import a given COM interface in VS.NET?
Posted by Lloyd Dupont at 10/24/2005 4:00:48 PM
I'am using C# and I would like to use the INLangFontLink interface: http://msdn.microsoft.com/library/default.asp?url=/workshop/misc/mlang/reference/ifaces/imlangfontlink/imlangfontlink.asp I tryed to add a COM interface reference to the project but the add reference dialog box didn't show me ...more >>

Date format from OS settings
Posted by G. de Nooij at 10/24/2005 3:23:46 PM
I have installed my OS Windows XP with Date settings dd-mm-yyyy. And installed Framework 1.1. I've changed the date format with Regional and Language Options to mm-dd-yyyy, but when I run my aspx application build with Borland Delphi, it still views the date in dd-mm-yyyy format... I tri...more >>

System.Management?
Posted by Roberto Carcione at 10/24/2005 3:11:54 PM
Hi at all, i had installed vsnet2003 architect with new framework 1.1. Actually i'm making a very simple project, where i use the File class to copy a file, but when i tried to copy the framework have generated an exception "unauthorizedaccessexception" so I tried to use using system.managemen...more >>

Deployment of Windows User Controls for Web Pages
Posted by Wayne Gibson at 10/24/2005 11:59:40 AM
Hi, Was wondering if anybody could point me in the right direction. I'm looking at developing a Windows User Control using Visual Studio .NET 2005 in C#. The user control is to be used on a web page to replace an existing Java applet. One of the main reasons for switching from Java to th...more >>

Support for optional parameters
Posted by Alvin Bruney - ASP.NET MVP at 10/24/2005 10:52:30 AM
I'm not sure why C# has no support for it. Without knowing why, I won't criticize it. Anybody care to join me in pleading for that kind of support? Or at least shed some light on what it isn't being done since there is support for it in VB -- Regards, Alvin Bruney [MVP ASP.NET] [Shame...more >>

Dynamic casting in c#
Posted by andrewbb NO[at]SPAM gmail.com at 10/24/2005 10:11:41 AM
I've seen this asked before, but haven't found a good solution. How can you cast an object to a type when you don't know the type until runtime? Specifically: DataSet ds = new DataSet(); ds.ReadXml(@"c:\Temp\Test.xsd", XmlReadMode.ReadSchema); DataTable table = ds.Tables["TestClass"]; ...more >>

Problem installing framework 2.0 beta
Posted by Rick at 10/24/2005 10:02:33 AM
I'm running Win2003 server w/all updates installed and logged on as admin. I've gone to 'add a program' and installed the dotnetfx.exe for the ..net framework 2.0 beta. It seems to install ok. I reboot, then try to install the sqlserver 2005 analyzer and it tells me I cannot install it until ...more >>

CultureInfo
Posted by James at 10/24/2005 9:29:03 AM
If I create a CultureInfo object passing LCID 1034 into the constructor, the ThreeLetterWindowsLanguageName property returns ESN. I get the same ThreeLetterWIndowsLangiageName of ESN if I use the LCID of 3082. I expected that LCID 1034 would return ESP as the ThreeLetterWindowsLanguageName. ...more >>

Assembly version checking without strong name
Posted by JDI at 10/24/2005 6:34:37 AM
Here is the scenario: We need to be able to do side by side execution of asseblies but do not want to go into strong naming of them (who want's to have more admin work? I guess, most people don't). 'Officially', it's not allowed. But has anybody come up with any solution to this issue. Thanks, ...more >>

VS2005 project setting for AssemblyKeyName
Posted by n33470 at 10/24/2005 5:01:13 AM
We're starting to migrate all of our VS2003 projects to VS2005. We create strong names for all of our assemblies using the assemblyInfo.cs attributes for AssemblyKeyName. Here are the relevant attributes, as an example: [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [...more >>

To deceive installer as if I've installed .NET 1.1
Posted by typingcat NO[at]SPAM gmail.com at 10/24/2005 3:59:02 AM
I've installed the .NET Framework Redistributable (.NET from now on) 2.0. And I think .NET 2.0 has backwards compatibilities with .NET 1.1 applications. I've found that many .NET 1.1 applications that can be installed by X-copy work fine. But the problem is, those come with an installer boots...more >>

Start or not?
Posted by Snake at 10/23/2005 6:43:19 PM
Will my ASP.NET 2.0 Beta2 application work correctly on .NET 2.0 release? Will my ASP.NET 1.1 work correctly on .NET 2.0 release? Thanks. Btw I ask this because we would like to start production of a large system hich should not seize working after beta 2 -> release update. ...more >>

Net 2.0 - unbalanced stack
Posted by AlexS at 10/23/2005 2:36:39 PM
Hi, I migrated working 1.1 console project which worked to 2.0 having forms and console window and started to get this exception in debugger A call to PInvoke function 'Utils!Utils.ConsoleWindow::GetStdHandle' has unbalanced the stack This happens when I issue ShowWindow Win32 call from n...more >>

Show/hide mouse pointer.
Posted by Nick Z. at 10/23/2005 12:22:02 PM
I tried Cursor.Hide(), but this only hides the cursor above my form. How do I hide the cursor system wide? Thanks, Nick Z. ...more >>

MulticastDelegate
Posted by Amir Shitrit at 10/23/2005 2:35:02 AM
What is the use of the MulticastDelegate class? What's the difference between the MulticastDelegate and the Delegate classes? Thanks....more >>

Configuration File
Posted by poifull at 10/22/2005 5:30:14 AM
If I made changes to the configuration file when the executable is running, it seems like the changes are not detected. I've found the same problem with ConfigurationSettings.GetConfig and ConfigurationSettings.AppSettings. Is there any way aound it? Thanks, poifull ...more >>


DevelopmentNow Blog