Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score 3rd party controls - from 2003 to 2005
yanivpr - 15 Jul 2006 12:48 PM - 4 messages
Hi, My (C#) VS2003 solution includes some 3rd party controls. I want to move to VS2005, but those controls just don't work. They were made for Framework 1.1, and are not suitable for 2.0. Is there any tool, or some kind of magic to make this compatible? ...
Score maintain string reference
Michael Wong - 15 Jul 2006 11:08 AM - 2 messages
Hi, I would like to have a string point to another one. What I mean is I want the pointing to change value whenever the pointed one is changed. How can I do it? Example: string orgString = "Original string"; string ptrString = orgString; ...
Score Load assembly .net
daniele.cerra.it - 15 Jul 2006 10:22 AM - 4 messages
Hi to all, i need to know how the .net runtime load assembly, i.e. how the runtime locate the assembly and how it is loaded, verified, etc... I look on the web, but i find just how the runtime locate the assembly. ...
Score Help publishing a VS2005 Web App...
LilMoke - 15 Jul 2006 3:37 AM - 2 messages
Hello, I am using Microsoft Visual Stuido 2005.  When I publish my web project, this version seems to delete all the folder/files in the directory before it publishes. I need to have a folder that does not get deleted when I publish.  It ...
Score StackFrame debug information
newscorrespondent - 15 Jul 2006 2:26 AM - 3 messages
I have compiled in DEBUG mode but don't get the debug information from StackFrame class. Is there a specific setting I need to use so that information is included for a debug build. Thanks Tom ...
Score .NET one way Remoting
newscorrespondent - 15 Jul 2006 2:13 AM - 3 messages
As a client I am sending data using a OneWay method to a server. What happens if the client is sending messages faster than the server can consume them? Who is responsible for holding the queue? If the object sending is a WellKnownObjectMode.Singleton what happens if I ...
Score StringBuilder AppendFormat()
Bill - 14 Jul 2006 8:49 PM - 5 messages
Ok, so we have the following code and it produces the result seen immediately following the function. public string BugOrFeature() {     StringBuilder sb1 = new StringBuilder();     StringBuilder sb2 = new StringBuilder();     StringBuilder sb3 = new StringBuilder(); ...
Score Checking Folder Access Permissions
Jeff Gaines - 14 Jul 2006 8:43 PM - 4 messages
I am working on a File Manager app and would like to know the permissions on a folder before I attempt to open it in the app. I have been going through the help and Google this afternoon but am feeling a bit confused. ...
Score Why Does GetBaseException Ignore InnerException's GetBaseException
JohnDeHope3 - 14 Jul 2006 7:20 PM - 4 messages
First let me say that I understand that Asp.Net wraps my exception in an HttpUnhandledException. I have found a lot of discussion about that on the web, which was informative, but not helpful. Let me explain how my question ...
Score sending mail via System.Net.Mail.SmtpClient
Bill H - 14 Jul 2006 7:08 PM - 4 messages
I am able to send an thru our mail server using the old 1.1 System.Web.Mail.SmtpMail class. When I try sending an email using the new System.Net.Mail.SmtpClient, I get a #5.5.1 unimplemented error: Command Not Implemented ...
Score Assembly.GetExecutingAssembly
Bruce - 14 Jul 2006 3:32 PM - 3 messages
Assembly.GetExecutingAssembly returns a Reflection.Assembly Is it possible to save that to disk as a dll or exe, so I can load it later? ...
Score Working with VS 2005, How do I Target Framework 1.1+ ?
Joseph Geretz - 14 Jul 2006 3:12 PM - 3 messages
I'm developing a solution using Visual Studio 2005. Where can I specifiy the versions of the Framework I'd like my executable to be able to run in? Thanks! - Joe Geretz - ...
Score Addition error in DotNet 2.0
Owen - 14 Jul 2006 11:25 AM - 13 messages
Hi all, Wondering if someone can help me with this: when i'm in Visual Studio 2005 I get a wierd addition error when adding 0.1+0.2 (both as doubles) the result that comes back is  0.30000000000000004 not 0.3 as expected. Any ...
Score Registry entries, Licence Page in VS 2003 Setup Project
JM - 14 Jul 2006 10:45 AM - 3 messages
Hi, I have created a windows application in .NET. For this application I have created a Setup Project using Visual Studio .NET 2003. But I want to do some customisation to this basic setup program as follow: 1. My program requires to enter 1 entry in registry during Setup and ...
Score Formatting text in stringbuilder
Judy - 14 Jul 2006 9:51 AM - 2 messages
Hi all, I'm writing the result, returned by an sql query, to stringbuilder. But first i want to format the text. I want to make the column heading bold. Because I'm passing the stringbuilder to Excel using response ...
Score Program Failing to Run
Eric Renken - 14 Jul 2006 2:21 AM - 7 messages
When a user launches ANY .net application on this computer I get the error: --------------------------- TimeSummit.exe - Application Error --------------------------- The application failed to initialize properly (0xc0000005). Click on OK to terminate the application. --------------------------- OK --------------------------- My application is a .net 2.0 application.  The computer is Windows XP SP2, ...
Score KB917283 Update Failed
Jim Wood - 14 Jul 2006 1:01 AM - 3 messages
You know, I'm not even sure what this dot-net-framework business is all about.  I do know that I had to download and install it before I could run a third-party program, but I haven't a clue as to what this .NET program does. ...
Score Install SQL Server Express with application
Michael Jackson - 13 Jul 2006 8:15 PM - 3 messages
Using VS2005/Frameowork 2.0, I have been asked create a setup which will install my app, SQL Server 2005 Express and possibly .NET Framework 2.0. This will be a downloaded or CD based install, not ClickOnce. Could anyone point me to a difinitive guide, hopefully with examples, on how ...
Score Writing Performance Counters
rlrcstr - 13 Jul 2006 7:16 PM - 3 messages
Can someone point me to a decent tutorial type article on writing performance counters in .Net?  Thanks. Jerry ...
Score Limit to range of colors displayed by Label control?
Evan Stone - 13 Jul 2006 5:37 PM - 4 messages
Hi, I was just curious to know if there was a limit to the range of colors a label control can display. For instance if I set a label control's ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm running an ...
Score Reflection and Nullable
Joe Bloggs - 13 Jul 2006 4:00 PM - 3 messages
Hi, Can someone please kindly show me how to determine if a type (read value type) is Nullable. MSDN has this KB: How to: Identify a Nullable Type (C# Programming Guide) [link] ...
Score Detecting if a NTAccount is user or a group
Roshan - 13 Jul 2006 3:13 PM - 2 messages
Hi, I wanted a reliable way of detecting if a given NTAccount object represents a user account or group account. I was using SecurityIdentifier.IsAccountSid() method but this doesn't work as I expected. It returns true for user accounts and also for groups created ...
Score TLB using problem
vul - 13 Jul 2006 1:42 PM - 3 messages
I created very simple Class Library in VB 2005 (let's call it COMInterop). I set  Register For COM Interop property to true to make it accessible by VB6 program. After I compiled it, I got COMInterop.dll and COMInterop.tlb files, I have ...
Score Upgrading to later version of .NET Framework 2.0
MJC - 13 Jul 2006 1:42 PM - 3 messages
My computer has .NET Framework v 2.0.50215 installed.  A program says I need to install .NET Framework v 2.0.50727.  I went to Windows Update and selected the .NET Framework, but Windows Update would not install it -- it ...
Score Accessing a dll in the GAC
cashdeskmac - 13 Jul 2006 12:24 PM - 4 messages
Having created my dll, I have installed it into the GAC. All fine, no problems. The trouble starts when I try to access this dll. How do I tell my program to look in the GAC for the dll?  Does it do this ...
Score Which operating System on Development client?
Heinz K - 13 Jul 2006 9:55 AM - 2 messages
Hi all, which Operating System do you use on your development client? As XP shipüs with IIS 5.1 while Windows 2003 Server has IIS 6.0 onboard, we are thinking about removing XP and instead installing Windows 2003 ...
Score Debug conditional code in class that implements an interface... does it work?
hellosticky - 13 Jul 2006 1:49 AM - 2 messages
I'm creating some logging code, and each one of my classes has an internal static readonly instance of the logger which various methods use, e.g.: interface ILogger {   void LogDebug(...);   void LogInfo(...);   void LogError(...);   ... } What I did was to create two classes, one in the case where the Logger ...
Score Current naming convention of abstract classes - BaseFoo vs. FooBase?
Keith Patrick - 13 Jul 2006 1:26 AM - 3 messages
This is probably a question for someone at MS, although I haven't found anything in FxCop or definitive in the newsgroups regarding this, but what is the current, if any, naming standard regarding base classes?  A lot of ...
Score Conversion from 1.1 to 2.0 and Warnings
Michael Jackson - 12 Jul 2006 10:56 PM - 3 messages
I've converted a large .NET 1.1 app to .NET 2.0. I allowed the IDE to to the conversion, and had basically no problems at all. However, the VB.NET compiler give me several hundred Warnings,  and most refer to a variable ...
Score Fixed String Size.
Ken Varn - 12 Jul 2006 9:34 PM - 4 messages
I want to be able to set a fixed length of a string in my class so that if a smaller string is copied into it, then the string is padded with blanks.  If a larger string is copied into it, I want the string to be truncated.  Is ...
Score Installing an assembly in GAC without strong name
Prateek - 12 Jul 2006 4:39 PM - 2 messages
Hi, Is it possbile to install the assembly in GAC without signing it and creating the strong name? If i direclty register an assembly using gacutil /i <assembly>, it give me an error saying cannot install the assembly as it is not given a ...
Score Connection timeout when using transactions
Natan Vivo - 12 Jul 2006 3:05 PM - 8 messages
I'm getting a timeout error while trying to select data from SQL server 2005 after opening a transaction in asn asp.net application. It goes like this: SqlConnection conn1 = new SqlConnection(...); conn1.Open(); SqlTransaction trans = conn1.Open(); // do some inserts and updates using the transaction ...
Score Data Reader Problem
Nalin - 12 Jul 2006 12:06 PM - 3 messages
Hello guys, Please, anyone already see this problem ? [NullReferenceException: Object reference not set to an instance of an object.]    System.Data.SqlClient.SqlDataReader.PrepareSQLRecord(Int32 i) +159    System.Data.SqlClient.SqlDataReader.GetSqlString(Int32 i) +20    System.Data.SqlClient.SqlDataReader.GetString(Int32 i) +32 ...
Score Building a Scalable (100K+ User) Socket Server in .Net
Chris Mullins - 12 Jul 2006 5:52 AM - 11 messages
One of the things I've spent the last several years working on is a highly scalable socket server written in C#. The SoapBox Server has recently been tested to well over 100k simultanous users. This means it's handling 100k TCP connections on a Windows Platform ...
Score Reading Application Settings using C# VS 2005
Jim Rand - 11 Jul 2006 10:41 PM - 3 messages
In Properties / Settings, I've got a setting (say "ExportPath") with a value (say "C:\\Tmp"). Using C#, how do you get the setting value? string settingValue = SomeNETWhatever["ExportPath"]; ...
Score Using WMI to start Remote Command File
itsomel - 11 Jul 2006 9:41 PM - 4 messages
I am trying to use the System.Mangement class within a c-sharp application for the purpose of starting a simple batch file on a remote machine.  The error I receive is this: 1) Exception Information ********************************************* Exception Type: System.InvalidCastException ...
Score Install dotnetfx 2.0 with no reboot
zolof - 11 Jul 2006 4:17 PM - 3 messages
If want to do a basic install of .NET framework 2.0 on customers machines with no reboot at end. How can I do that ? ...
Score Graph
Goh - 11 Jul 2006 3:33 PM - 5 messages
Hi,     Any suggestion for Graph Component? I need Window From Graph Component. Any free third party component ? Thank for inform me. with regards, Goh ...
Score Multiple DLL exists after installation
Prateek - 11 Jul 2006 2:49 PM - 4 messages
Hi, I have one question related to installation of the assembly. I have created 2 dlls, say a.dll and b.dll I have created one exe which refers to both the dlls i.e. a.dll & b.dll ...
Score Assembly initializer.
Ken Varn - 11 Jul 2006 2:42 PM - 3 messages
Is there anyway to write an assembly DLL that has an initializer that is automatically called before any other methods in the assembly?  I am thinking along the lines of a DllMain similar to that which is in standard ...
Score Versions of .net + visual studio
swas - 11 Jul 2006 1:35 PM - 6 messages
Hi, I have vs2003 + framework v1.1. I would like to use the new serialport class that comes with v2.0 but just can't find a definitive explanation of visual studio and .net versions. Can I install v2.0 for use with my vs2003 or must I / should I upgrade to ...
Score Application Monitor in .NET
Prateek - 11 Jul 2006 1:06 PM - 3 messages
Hi, I am developing a Application Monitor in .NET but it seems it is not working. Pls guid me if anything is wrong. Here is the design of this server. 1 - I have created a dll which exposes an interface INotify which will ...
Score Find no if weekend days from 2 given dates..
velu - 11 Jul 2006 12:59 PM - 2 messages
i am trying to create a function that take 2 SelectedDate from a Calendar and calculates the no. of days between 2 dates and also calculates the no of weekends (sundays and saturdays) and at last it gives the difference between ...
Score Custom error message
Andrey Dzizenko - 11 Jul 2006 12:50 PM - 4 messages
Hi all! I have a singleton-class with private constructor and Instance property.  It's clear that access to this class should be got by using this property. "new Class()" construction is incorrect and throws an error "can't access  ...
Score XmlDocument
Roy - 11 Jul 2006 12:38 PM - 5 messages
I am using an XmlDocument to save an data object hirachy to an Xml file. When I rebuild the data object hirachy, I walk through the xml node in XmlDocument and recreate the objects. How do I know the original data types for each ...
Score Explain Patterns in DOTNET
JaiPrakash Sharma - 11 Jul 2006 11:56 AM - 3 messages
Hi, I am very confused regarding patterns in DOTNET. Please provide me details and types of patterns in dotnet as well as usages of it in general senarios. JP Sharma ...
Score Knowing DLL Debug/release
kishor - 11 Jul 2006 10:04 AM - 3 messages
Hi, I am loading DLL dynamically. I have no issues with that. I have one small problem. How do I know dll is compiled in Debug/Realse mode ? I want to load only a release mode DLL. Please let me know is this possible ? ...
Score Design related question
Water Cooler v2 - 11 Jul 2006 9:36 AM - 3 messages
I want my application to do three tasks simultaneously. Each of the three tasks must be performed at a periodic interval of time. Each of the three tasks is somewhat complicated and is thus composed of a number of sub-tasks that are to be performed in a linear sequence. ...
Score Timers run on the creating thread?
Water Cooler v2 - 11 Jul 2006 9:13 AM - 5 messages
Do timers run on the same thread that creates them or (internally) a new thread is spawned per timer? ...
Score Identify Mouse Button Clicks on controls
James - 11 Jul 2006 8:58 AM - 3 messages
hi all when we click on Control, Both Left as well as Right Mouse Button Click gives the same functionality. Is there any solution to filter that only Left mouse clicks allowed. Actually I have more than one clikable controls on my UserControl giving the same functionality. ...
Score How to create MSBuild File
Anbu - 11 Jul 2006 4:28 AM - 6 messages
hi All, I'm creating web site project in VS2005. I need to create MSbuild file for the ASP.net projects. How can i create? Thanks ...
Score Deploy crystal report
Goh - 11 Jul 2006 4:02 AM - 2 messages
Hi guy,         When I deploy system that has use crystal report viewer what component that I need to install others then .net framework 2.0? It seen that .net framework 2.0 does not work by default with crystal report viewer. ...
Score Question about Value Types
Zachary Turner - 11 Jul 2006 4:02 AM - 6 messages
Suppose I have a Value Type, implemented as a struct.  Example: struct MyValueType {   int Field1;   int Field2; } Now, this Value Type is a member variable of a reference type with a property get accessor.  Example: class MyClass ...
Score .net, COM+, and SecurityCallContext
David - 10 Jul 2006 8:41 PM - 2 messages
I am attempting to write a small COM+ app for practice for an MCAD exam.  I am using the "SecurityCallContext.CurrentCall" command but when I invoke it I receive the error " No security context is available." Is the SecurityCallContext only applicable for specific ...
Score SignedXml CheckSignature()
Ash - 10 Jul 2006 5:09 PM - 3 messages
Hi, Can some one verify that .net 2.0 Signatures can not be verified by .net 1.1? I have been trying for about 2 months now and can not get it to work. When verify the signature that i created with .net 2.0 it returns true. but ...
Score Protecting application code written in .NET
JM - 10 Jul 2006 2:51 PM - 2 messages
Hi, I have written a small windows application in .NET and I want to distribute  it for free. But I want to protect my code to maximum level so that no body should be able to disassemble the code. The application ...
Score Distributing components with application
ramesh - 10 Jul 2006 2:46 PM - 2 messages
Hi all, Could any one help me out that how can I ship additional components with my .net 1.1 windows application. The components will only be installed if they are not installed already. The setup MSI has to be ...
Score Calling FileStream.Create after File.Move gets old file handle
C# Dev - 10 Jul 2006 2:43 PM - 5 messages
Greetings all, Have a question regarding File.Move  / FileStreams My steps, 1. Create file1 demo.log  [FileMode.CreateNew] 2. Move file to demo1.log 3. Create file2 with same name as in #1: demo.log [FileMode.CreateNew] Now, problem is that the filehandle in #1 and #3 are the same. ...
Score CPU by thread
newscorrespondent - 10 Jul 2006 2:18 PM - 12 messages
There are many examples of how to get the elapsed time for a method but I can't find any example of how to measure the amount of CPU consumed by my thread in a method. Elapsed time in a multithreaded application particularly ...
Score Get Icon from CallingAssembly (or ...)
Pieter - 10 Jul 2006 1:59 PM - 4 messages
Hi, I have a Control Library which shows a Form, and i would like to hev the icon of the CallingAssembly to be shown on this Form. Does anybody knows how to do this? I can't be able to get this Icon... ...
Score Converting HTML page to PDF in .NET
JM - 10 Jul 2006 1:21 PM - 4 messages
Hi, I want to convert html page to pdf in .Net.By HTML to PDF, I mean the complete page, say - yahoodotcom should be printed as pdf. I want to see the yahoo page in PDF as I see it in browser. ...
Score Security Exception with DataSet.ReadXML
Sreppohcdoow - 10 Jul 2006 11:58 AM - 3 messages
When I try to System.Data.DataSet.ReadXML(myPath) I get a System.UnauthorizedAccessException: Access to the path is denied. This is because the file is apparently open/locked by another application. I need to be able to read this file, even when the other application 'owns' ...
Score Mixed Mode Dll C++
Ash - 10 Jul 2006 9:01 AM - 2 messages
Hi, I am trying to create a mixed mode C++ dll in Visual Studio 2005. I am looking to create a wrapper for a .net 2.0 c# dll because i need to access it from C. Is this possible? I was told that i might only be able to use Visual Studio ...
Score WebBrowser object and redirects
ewahl - 10 Jul 2006 4:09 AM - 3 messages
Hi folks, I have searched for an answer to this question on the internet, but been unable to find it so far. I am hoping somebody can help me out. When you are using a WebBrowser object in .Net 2.0, is there any way ...
Score what is assemebly's partialname?
fumade - 10 Jul 2006 1:48 AM - 2 messages
thanks ...
Score Is this a value variable?
LonelywolF - 9 Jul 2006 4:25 PM - 9 messages
Hi , I have a doubt. Let's say I define the following structure: structure strTest     dim value_1 as decimal     dim value_2 as decimal end structure As the definition, each instance of this structure will take 16+16=32 bytes ...
Score Data structure and exception
Lloyd Dupont - 9 Jul 2006 7:50 AM - 6 messages
I'm attempting to write a fairly complex data structure. One part of the complexity is that all 8 data operations it supports delegate some code to virtual method. This is by design because I want the user to subclass the data structure and ...
Next » 2 3 4 5 6 7 8 9 10