Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score Serious Socket Programming Problems
A_StClaire_ - 23 Sep 2006 9:24 PM - 7 messages
hello, I just started working with this class at the low level and am having issues. 1)  I am instantiating a StreamReader and feeding my NetworkStream to its constructor.  the bytes that the StreamReader reads from the server ...
Score need a grid control such that
JohnK - 23 Sep 2006 4:33 PM - 1 message
need a grid control such that 1- the text for the column headers can be rotated 2- I can control each cell's editability (did I use the word right?) 3- does not need to be bounded to a data source ...
Score VS2005 on Win2k,IIS5.0 - URGENT.
Balaji Narayanan - 23 Sep 2006 1:39 PM - 1 message
I have a VS2005 migrated web application project. My query is whether my project will get loaded in WIN2000 MACHINES WITH IIS 5.0.  without any errors. Please provide your points on this as I have very less time. ...
Score CLR class correspondant to std::vector<> or CArray<>?
Hyun-jik Bae - 23 Sep 2006 1:29 PM - 3 messages
What is the CLR class correspondant to std::vector<> or CArray<>? I looked for how to resize object[] (aka array<object> in C++/CLI), but I cannot find it yet. Please reply. Thanks in advance. ...
Score VS2005 on Win2k,IIS5.0 - URGENT.
Balaji Narayanan - 23 Sep 2006 1:24 PM - 2 messages
I have a VS2005 migrated web application project. My query is whether my project will get loaded in WIN2000 MACHINES WITH IIS 5.0.  without any errors. Please provide your points on this as I have very less time. ...
Score VS2005 on Win2k,IIS5.0 - URGENT.
Balaji Narayanan - 23 Sep 2006 1:09 PM - 1 message
I have a VS2005 migrated web application project. My query is whether my project will get loaded in WIN2000 MACHINES WITH IIS 5.0.  without any errors. Please provide your points on this as I have very less time. ...
Score Single Sign On / Authentication System?
Spam Catcher - 22 Sep 2006 11:09 PM - 2 messages
Hi all, I'm looking to implement a single sign on solution for .NET applications. This single sign on solution will need to work against a variety of back- end databases (i.e. SQL (mainly), Active Directory (some), Custom Data ...
Score Using a TypeConverter instead of Type.GetType(String)
Keith Patrick - 22 Sep 2006 8:31 PM - 5 messages
Does anyone know of a way (without looking through decompiled ASP.Net code) to convert a String to a Type using the generic TypeConverter stuff?  I am writing a deserializer, but I would prefer not to have a custom codepath ...
Score Change password giving errors
Vikas Manghani - 22 Sep 2006 6:35 PM - 1 message
Hi This is my third question today. Seems like I have run into some problems with AD. I am using the native IADsUser interface to change the password. IADsUser dsUser =  DirectoryEntry.NativeObject as IADsUser dsUser.ChangePassword(old, new); The password gets changed. Alls fine till there. ...
Score Where is Dns.CancelAsync()?
Leon_Amirreza - 22 Sep 2006 6:15 PM - 1 message
I know that Dns methods are static and CancelAsync() is implemented on object instances but how can i clean up the resources if time out occurs? I personally expected somthing like this: private static void GetHostEntryCallback(IAsyncResult ar) {     Dns.EndGetHostEntry(ar); ...
Score Group Policy
Vikas Manghani - 22 Sep 2006 3:07 PM - 3 messages
Hi I have an OU named TempOU set at my domain controller. All my users are getting created in this OU. I have a group policy setup for this OU. Can anyone tell me how to read the values for these settings in C# code. ...
Score .NET Runtime Optimization Service causing Web Service to stop responding??
Bloody Hell - 22 Sep 2006 2:48 PM - 1 message
I'm hoping somebody out there can help me. I have developed a web service in C#.Net 2.0 and have it running on a Windows 2003 Server (Standard Edition). The .NET Runtime Optimization Service is running on the server every 5 minutes and then every morning the Web Service ...
Score Active Directory and DirectorySearcher Filter
Jerry C - 22 Sep 2006 2:13 PM - 3 messages
I am using DirectoryServices to get all groups and all users from active directory. Now I want to use the filter to limit the groups and users. I would like to remove the builtin groups. I use the code below but the built ...
Score Question abt Password Expiry
Vikas Manghani - 22 Sep 2006 12:04 PM - 1 message
Hi I have to implement password expiry in my application, in the same way as Windows does it. If a user's password at Active Directory is expired or reset, a window is displayed that allows him to change his password. ...
Score Error decoding ISO character 147
Peter_Strøiman - 22 Sep 2006 11:31 AM - 4 messages
Hi I have a byte-array, in which one of the bytes has the value 149 (hex95)   which represents a dot ( • ). The same character has the unicode value of 8226 (hex 2022) But when I try to decode the byte-array into a string, that character is ...
Score List of the computers from the same workgroup...
S. Lorétan - 22 Sep 2006 9:27 AM - 2 messages
Hi guys, I need to get a list of the computers with the same workgroup as the one where my program is runing. I want to have the same thing as in Windows XP, when I display all members of my network, but I haven't found anything in the framework to do it. ...
Score Interesting problem with SmtpClient in background thread
mark.lees - 22 Sep 2006 8:29 AM - 2 messages
I'm experimenting with the SmtpClient class in c# and I have run into a knotty problem. I'm using the ThreadPool.QueueUserWorkItem to queue a delegate which creates an SmtpClient and attempts to send an email. Basically, If I try and create a new SmtpClient object in a thead ...
Score connecting asp.net with oracle9i
Jack - 22 Sep 2006 5:40 AM - 2 messages
Hello All, Can anyone here suggest me some idea for my following queries? 1) How do I connect asp.net with oracle9i? 2) How can I generate a report using Crystal Report with asp.net based on certain user conditions? ...
Score What is the collection class correspondent to std::set?
Hyun-jik Bae - 22 Sep 2006 5:37 AM - 3 messages
What is the collection class correspondent to std::set? I know Dictionary<> roles as std::map... Please reply. Thanks in advance. Hyun-jik Bae ...
Score Problems when writing a SMTP client and talk with the hotmail
Ou - 22 Sep 2006 1:52 AM - 2 messages
Hi,     First, I am not trying to talk to hotmail through the SMTP straightly. I am trying to write some codes to send emails through a SMTP server. I wrote a C++ version using pure socket programming and SMTP ...
Score Reflection and Generics
Amir Liberman - 22 Sep 2006 12:05 AM - 1 message
I am writing a function that replaces tokens in a string with property values of a given object. from each token I get a property name and using reflection, I get the value of the property.  Some properties are generic ...
Score RSA 1024 Bit Decryption with *.Pem Key
Ron - 21 Sep 2006 8:35 PM - 3 messages
Hi guys, We have created a key pair (privKey.pem, pubKey.pem) with OpenSSL as our partner requested (they use this format).  They encrypted a string with our public key and then base64 encoded the string. We want to use Visual Studio.net 2003 to base64 decode the string, and then ...
Score searching byte arrays and RTFreaders
Andy - 21 Sep 2006 6:39 PM - 3 messages
Hi Does anyone know of a .net technique that can quickly find a particular byte value within a byte array and return its position, much as instr does for strings in VB.NET? I'm writing  my own custom RTFreader by having my class inherit the ...
Score Exclude a project from a multi-project solution build
B. - 21 Sep 2006 5:50 PM - 4 messages
I have a solution which has multi projects, how can I exclude one project from build when I click bulid or rebuild solution? Thanks. ...
Score Debug CF2 on WCE4 with VS2005
Romain TAILLANDIER - 21 Sep 2006 4:14 PM - 4 messages
Hi group I have an 'old' device WCE 4.2. I have install .NET CF V2 on it. Using VS 2005, i can develop and deploy succesfully. BUT I can't debug. I have try to install System_SR_FR.CAB and System_SR_ENU.CAB, without ...
Score Automatic Resize of Panel
Istvan Loerincz - 21 Sep 2006 4:01 PM - 2 messages
Hello I have a     public class ChartPanel : System.Windows.Forms.Panel and add with     this.Controls.Add(...) Objects (usercontrols) to it How can I achieve that "ChartPanel" automatic resize, if objects are not visible ...
Score Framework 2.0 compatibility issues with Component Services
Wonder - 21 Sep 2006 3:20 PM - 1 message
Hi, I developed a system using VS2003 and framework 1.1. Middleware developed in C# and VB 6.0. Since I have to go through COM+, my application installs fine when the framework is 1.1. However when I install 2.0, the application (proxy) does ...
Score Is there a way we can send a feature request for Visual Studio?
ThunderMusic - 21 Sep 2006 2:11 PM - 5 messages
Hi, Is there a way we can send a feature request for Visual Studio? When using 'Refactor-->Encapsulate Field', I'd like to have an option for the references not to be updated anywhere in the project. It would be very ...
Score Using remoting features inside a .NET applet loaded in a tag object
Lambuz - 21 Sep 2006 1:41 PM - 6 messages
First of all, is it possible usign .NET remoting feature inside a .NET applet loaded into a tag object inside an HTML page ? <OBJECT id="myID" height="150" width="300" classid="http:applet.dll#test.applet"> </OBJECT> ...
Score Directory (LDAP) search error 0x8007203A
Harald - 21 Sep 2006 1:21 PM - 6 messages
Hi, I'm trying to read some data with C# in .NET 2.0. I'm using the Directory classes as follows:     ...     DirectoryEntry entry = new DirectoryEntry();     entry.Path = "LDAP://myServer.intern.myCompany.de:51000/ou=MyApplication,ou=srv,o=myCompany"; ...
Score Problem with timeout in TransactionScope
Vladimir Semenov - 21 Sep 2006 11:34 AM - 1 message
Hello, I'm porting my application from ServicedComponents to TransactionScope objects. One of the most fun features of new tech is that it allows transaction timeouts more then 10 minutes. My application has many layers and using SqlTransactions is not convinient. ...
Score Intellisense in ASP.NET textbox
Samuel - 21 Sep 2006 9:11 AM - 3 messages
Hi, Do you know how to implement intellisense behaviour in ASP.NET textbox. Like in destination textbox at [link] site? It shows cities from all over the world and it works extremely fast. I think it's some sort of partial callback? ...
Score Adding contraints and inheriting
Paul - 21 Sep 2006 8:04 AM - 3 messages
Hi All A simple question I hope I have a class public abstract class authenticatedBoundForm<T> : authenticatedPage, IControlPage I want to add contraints to T specifially the new() contraint. How can I do this without T being forced to inherit/implement ...
Score How to determine if I am in a web or a windows application
Jean Paul Mertens - 21 Sep 2006 7:59 AM - 5 messages
Hello to all, I use a lib class to handle all my exeption errors ocured in my objects. Since my objects are used in windows applications as well as in web applications, I would like to determine in my lib class if she is serving a ...
Score GC problem with large object - .net 1.1
Rolf Welskes - 21 Sep 2006 2:22 AM - 7 messages
Hello, I have an applications witch works with bitmaps. Such bitmaps are in windows (forms) sizeable. Each time it is neccary to allocate new bitmap with any size-step, because the bitmap is generated. So there is the following situation under .net 1.1 ...
Score Install font from ClickOnce application
Thomas Taylor - 20 Sep 2006 11:47 PM - 11 messages
How can I distribute a TrueType font with my Windows Forms application using ClickOnce? Is there a direct/supported way to install via ClickOnce? I tried including the ttf files as resources and copying to the fonts folder on startup.  This worked fine, but I can't manage to get them 'registered' ...
Score Dynamically instance a class
APA - 20 Sep 2006 8:53 PM - 4 messages
I have a setting in my database where the user specifies a tax configuration (e.g. "UK/EU")  and I have several tax classes that handle these different configurations.  So what is the best way to instance the proper class based on what is in this configuration parameter.  I could use a ...
Score bug with SelectedIndices collection in virtual ListView
aaron.awells - 20 Sep 2006 8:17 PM - 1 message
There seems to be a bug when using a ListView control in virtual mode. If you check the SelectedIndices property of your list view within the SelectedIndexChanged event, and the user Shift-Selects a range of items in the listView, the number of selected indices is always zero. The ...
Score .NET Framework 2.0
Soddy - 20 Sep 2006 7:39 PM - 3 messages
Hello! Say, I've installed the .NET Framework 2.0.  When I've used the Norton WinDoctor feature, it is showing 'errors' concerning various (.exe) files in this Framework not finding the file 'msvcr80.dll'.   Where did I go wrong ...
Score reflection for plug in
ScottP - 20 Sep 2006 7:33 PM - 5 messages
Hi all, I am trying to create a plug-in handler that discovers and enumerates my plug-ins at runtime.  I've got it working, but I had to defensively trap and swallow a lot of exceptions.  Is there a better way to discover if ...
Score Linking .Lib files in Visual C++.NET
fischertm - 20 Sep 2006 5:09 PM - 1 message
Can anyone tell me how this can be done? I am new to c++ and need to add an inline library from a vendor into a c++ project. Please Help! ...
Score Event handling (C# vs VB6.0)
sandeep.raukutam - 20 Sep 2006 12:29 PM - 3 messages
I have the following code in C# to "sink" an event with an event handler. Obj.OnCallEvent +=new CallEventHandler(obj_OnCallEvent); obj_OnCallEvent being the actual method and "obj.OnCallEvent" is the actual event. This events are provided by a 3rd party Dll. ...
Score Windows .Net 2.0 Application - Exception from HRESULT: 0x80070542
aporter - 20 Sep 2006 10:15 AM - 1 message
We have installed an .Net 2.0 windows application onto one of our clients PC's and we are experiencing some problems.  When the application starts it tries to connect to a database in order to retrieve some information. ...
Score ReportViewer print without print dialog
silver - 20 Sep 2006 9:26 AM - 1 message
Hi! I need to disable the print dialog when printing from ReportViewer ( [link] ) I just want the report to go straight to the default printer. I hope this is possible, and that someone of you out there has some ...
Score Are named pipes quicker than just reading and writing to files?
illegal.prime - 20 Sep 2006 3:43 AM - 4 messages
Hi all, I've been looking into doing some interprocess communication and have been reading about named pipes.  Everyone seems to indicate that if the processes are either on your local PC or at least on your local LAN AND your messages are reasonably small (under a kilobyte) - ...
Score DOT.NET 2005 and Crystal Report
Sandip Naskar - 20 Sep 2006 2:22 AM - 1 message
Hi All, I am facing a strange problem. I have an application in DOT.NET 2003 using the 2003 Crystal Report (Crystal Report ver. 9). Some of my clients want to run the application in DOT.NET 2005 framework. Everything is running fine but while invoking the crystal report it gives an ...
Score Here is some as-is code for helping with System.Diagnostics.Process
hellosticky - 19 Sep 2006 8:45 PM - 2 messages
Thought I would throw this out there so that it could be Google'd. Deals with a common use of Process which is to encapsulate another process and grab its standard out and standard error, and so it uses the asynchronous operations that the Process class provides. Sorry for ...
Score Async UI Calls Block on Dual-Core CPU, work fine on Single Core. Why?
costasz - 19 Sep 2006 8:06 PM - 4 messages
I am using the code from this MSDN article [link] Everything worked great on my single core CPU laptop. I then tried to run the .exe on my Dual core Pentium-D at work. The UI becomes ...
Score Async activities from class not derived from Control
Valerie Hough - 19 Sep 2006 6:25 PM - 2 messages
I want to create a utility class which is defined as follows: public Class MyDataReadingClass { .... } In that class I want to encapsulate all the logic for performing certain SQL Server queries and have the result set accessible from my parent, which will ...
Score Need a Depends tool.
Ken Varn - 19 Sep 2006 6:22 PM - 2 messages
Is there a tool that exists for .NET like the C++ Depends tool?  I basically want to be able to determine what dependencies an assembly has on other assembly DLLs and/or unmanaged DLLs. ...
Score System.ComponentModel.BackgroundWorker runs DoWork handler twice
Ian - 19 Sep 2006 3:47 PM - 1 message
Hi, Using Visual c# 2005 express, I have a Form which utilises a button click to start a BackgroundWorker thread. The thread calls a Soap proxy class, derived by web reference, to consume a web service on a server. Each time it runs, it runs the DoWork event handler code twice!  I've ...
Score Hang when new DirectoryEntry declared
Ian Cox - 19 Sep 2006 3:43 PM - 6 messages
I am using the System.DirectoryServices namespace in .net 2003. I have noticed some very strange behaviour related to the DirectoryEntry class. If I debug the following code with a break point on the Console.WriteLine line then there is a lengthy pause before the breakpoint is hit. If I remove ...
Score Remoting Internals
Peripatetic - 19 Sep 2006 3:05 PM - 3 messages
I am trying to find information on the internals of remoting. I want to find out things like: If I host remoting in a NT Service how does it manage the requests. Does is use the threadpool? How many concurrent request can be serviced by one host. ...
Score Query Exchange 2003 for valid SMTP Address
Michael D. Ober - 19 Sep 2006 2:08 PM - 2 messages
I am writing an application that needs to email to specific users on our Exchange server and need to query it to see if the SMTP address I will be sending to exists.  The application will be running on the same server as ...
Score Dowload File
rony_16 - 19 Sep 2006 2:00 PM - 5 messages
Hi, I have problem with downloading a file using WebRequest and HttpWebResponse. Inorder to download this file i need to call to url that tells to prepare the file for download, and then i call to another url that downloads the file. ...
Score MSBuild and VSTS 2005
Al Christoph - 19 Sep 2006 1:41 PM - 3 messages
Forgive me if this is the inappropriate forum to post this, but I found MSBuild.exe in the framework directory so it seems right to me:-) Also forgive me if this duplicates an existing post. I posted this issue the ...
Score Announcement: NLog 1.0 has been released
Jaroslaw Kowalski - 19 Sep 2006 9:18 AM - 3 messages
NLog 1.0 has been released.! After 2 years of work, we're proud to announce the availability of NLog 1.0. NLog is a FREE logging library for .NET designed with simplicity and flexibility in mind. See [link] for more ...
Score bluetooth
sios - 19 Sep 2006 8:40 AM - 2 messages
ho necessità di rilevare tutti  i dispositivi nelle vicinanze(palmari, cellulari etc), elencarli ed accedervi. avete suggerimenti? ...
Score confronto immagini
sios - 19 Sep 2006 8:37 AM - 1 message
devo confrontare 2 volti in 2 immagini diverse e farmi restituire se sono uguali o in percentuale quanto sono uguali. qualcuno mi aiuta? ...
Score elaborazione sorgente video
sios - 19 Sep 2006 8:34 AM - 1 message
ho bisogno di aiuto. devo estrarre da una sorgente video i volti delle persone e confrontarli con quelli che ho in archivio. qualcuno ha un idea di come fare? ...
Score rielaborazione immagini
sios - 19 Sep 2006 8:31 AM - 1 message
qualcuno mi sa spiegare come devo fare per aumentare la risoluzione di un immagine dopo aver fatto lo zoom? nel senso che l'immagine  è sgranata e vorrei renderla di qualità accettabile. tutto questo ovviamente da codice. grazie ...
Score problem with installing visual studio
fereshteh - 19 Sep 2006 6:09 AM - 1 message
when the loading components is running,i recieved this error and instalation failed: suite integration toolkit executable encountered... what is my solution??? thanks in advance ...
Score Strange problem in asynchronous webrquest processing.
trialproduct2004 - 19 Sep 2006 5:45 AM - 1 message
Hi all, I am facing one strange problem while processing webrequest asynchronously. I am processing say 3 webrequest asynchronously.  I have added try-catch block in all methods. This app is running continouously.  It was working properly for say ...
Score vista?
brent - 19 Sep 2006 5:11 AM - 3 messages
I have a very basic question. If your going to start out with vista development is it a lot better to try to develop with Vista RC1 or is it almost or just as good to use XP with Framework 3 installed? ...
Score How to determine when a process has finished initial loading
Notre Poubelle - 19 Sep 2006 4:44 AM - 3 messages
Hello, Is there a standard way of determining when a process has finished its initial loading, such that it is ready to accept commands?  For example, I am starting Visual Studio (devenv.exe) from my own program.  I would like to ...
Score Long Lease Times a problem?
Jayme Pechan - 19 Sep 2006 4:03 AM - 2 messages
I'm very confused about whats wrong with doing long Renewal times for the ISponsor interface.  Basically, I had been returning TimeSpan.FromSeconds(20) from my Renewal function and all was well.  I then thought it might be a good idea to increase the lease time so I use less ...
Score Bug Log for Microsoft // Missing Enum Value in Framework
sloan - 18 Sep 2006 9:52 PM - 5 messages
Is there an official "bug report" location, to report a DotNet framework bug? I don't like to throw out the "bug in the framework" thing very often, but I think I've done the homework on this one. ... I've found an enum value that doesn't exist: ...
Score Server Access
Terry LaBrie - 18 Sep 2006 9:08 PM - 2 messages
I am replacing a VB6 batch program with NET 2003.  The program is launched from a SQL Server via DTS, and the first thing the program does is read some information from a file (DAT/INI type) residing in the same folder as the ...
Score Openning Access DB throuhg system.diagnostics.process.start
necroscepter - 18 Sep 2006 8:18 PM - 2 messages
I am trying to open a MS Access Front end through my windows form app. It opens fine when the file doesn't need a password. System.Diagnostics.Process.Start("C:\DBFrontEnds\Employee.mdb") Is there a way I can pass the password to Access in this case?  I have ...
Score clr203r3 error
BizEd - 18 Sep 2006 6:22 PM - 2 messages
We keep getting a windows service error as follows.... EventType clr20r3, P1 pp13eakn2jq2lxxdjz04gyi0giktjvq4, P2 1.0.2385.25848, P3 44b6b961, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 32f8, P8 26d, P9 system.io.ioexception, P10 NIL. I have seen inquiries on this error on other posts, but nobody seems to ...
Score DirectX
Le Minh - 18 Sep 2006 6:15 PM - 4 messages
how we render a device into a picturebox control ?? ...
Score Runtime Security Policy Question
SD - 18 Sep 2006 2:35 PM - 1 message
Hi, I have an assembly (.exe) started at logon of each computer of my company and for each user. (Through PDC scripts) This assembly use web services in order to request any informations. When my exe is executed, i have this exception : ...
Score solution for dbase (*.dbf) jet c# (or vb) problem with ole or odbc (can't find table)
lukaszsielski - 18 Sep 2006 8:40 AM - 1 message
I had some problem with dbase. I was working on dbf files with ole connection. Once, when I wanted to see very big table connector sait that he can't find this table. Same was when I used odbc. As I looked ...
Score 係香港一間IT公司,叫Advanced Telesoft, 有個ap叫Dan,
hkhellhkhell - 18 Sep 2006 6:01 AM - 1 message
係香港一間IT公司,叫Advanced Telesoft, 有個ap叫Dan, 呢條友好唔掂, 新員工入到黎唔夠 一個月, 就係高層面前話佢"好似乜都識, 實情乜都唔識". 人地入黎都無一個月, 你又點知 呀, 同你好熟呀. 就算係, 你身為一個男人, 洗唔洗做呢野呀, 你唔信, 咪堂堂正正考下人羅. 呢條友係IT界人粉, 請forward ...
Score Custom OpenFileDialog
chinmaybshah - 18 Sep 2006 1:09 AM - 1 message
I need to create a control similar to the OpenFileDialog but restrict the delete/rename options. What is the best way of doing this ? Is there any sample code I can look at ? ...
Score Personal Web Starter Kit
esha - 18 Sep 2006 1:05 AM - 2 messages
I created my first WEB application from Personal WEB Starter Kit template (C#). I made just minor changes like Connection String and some texts. I created SQL Server database on the hosting server and I uploaded all files to the hosting server. ...
Score Custom OpenFileDialog
chinmaybshah - 18 Sep 2006 12:22 AM - 1 message
I want to implement a dialog similar to the custom OpenFileDialog but without the option of deleting/renaming. Basically restricting the user from modifying or deleting files. What is the best way of doing this ? Can somebody point me to any sample code related to this ? ...
Score Socket weirdness
William Stacey [MVP] - 17 Sep 2006 11:41 PM - 51 messages
See some strange results on Send and peer with a closed Receive.  Setup a test harness.  Server accepts socket, then just does a Shutdown.Receive right away and waits.   The client socket does both blocking Sends and ...
Score Garbage collection
luigi.corrias - 17 Sep 2006 8:10 PM - 4 messages
If i dispose all object in my vb.net c# code what perfomances advantage i have? many thanks ...
Score TypeConverter and Generic Lists
Kinlan - 17 Sep 2006 10:29 AM - 2 messages
Hi I am having a bit of difficulty with TypeConverters and Generic Lists and I was hoping that I could get a bit of advice. I have a type converter that is used to create the constructor code for my ...
Next »