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 > june 2006 > threads for june 15 - 21, 2006

Filter by week: 1 2 3 4 5

profiler callback on delegate classes
Posted by Dov Tendler at 6/21/2006 11:08:16 PM
Hello, Is there a way to get from the CLR ICorProfilerCallback::JITCompilationStarted() on delegate class methods - Invoke(), BeginInvoke(), EndInvoke()? I need it for instrumentation techniques. I saw that these methods have runtime attribute. Does it mean that the CLR generates this code dyn...more >>


Why force a connection string scope to be application?
Posted by Steven Bolard at 6/21/2006 10:52:42 PM
Hello, Im using VS2005. Microsoft have got some great support for application settings and the changes to system.configuration and associated support mechansims seems to be pretty damn good. What i dont get is why they stupidly force all VS application setting support of type connection st...more >>

C# - Installing a Service using the Setup Projectts
Posted by nwmotogeek NO[at]SPAM gmail.com at 6/21/2006 7:30:15 PM
I am attempting to install a service application that I written using the Setup Project. I have added an Installer to my service project by right clicking on the design view of my service...much like all the web sites have been telling me to do. The Setup project works ok in the sense that it...more >>

UDP Comms and Connection Reset Problem
Posted by Jonas Hei at 6/21/2006 2:43:05 PM
Our application does UDP communications using the Socket class in System.Net.Sockets. The Socket.EndReceiveFrom() often throws a SocketException (ErrorCode: 10054, WSAECONNRESET, "An existing connection was forcibly closed by the remote host"). This seems to be a common problem affecting...more >>

When is Debug.Assert pertinent to use ?
Posted by Steve B. at 6/21/2006 2:42:35 PM
Hi, I'm wondering when does Debug.Assert is pertinent to use. For the moment, I think it is used to ensure something is true, as it is supposed to be always true. For example, I query a DB to get the only one customer's detail rows. If I get any exception, it is an runtime error..So I us...more >>

Problem of refresh with PerformanceCounter and failover.
Posted by Lionel Schiepers at 6/21/2006 1:36:09 PM
We have a multithreaded service written in .NET 2.0 that is running 24h/24. This service checks nearly 250 another servers to log statisticals data acquired via WMI, SNMP, PerformanceCounter... We use XOsoft for the fail over of our SQL Server databases (active, passive but the clients are ...more >>

Font representation
Posted by Andrey Dzizenko at 6/21/2006 1:36:06 PM
Hi all! Is there any method to draw text (using Graphics) that looks like in MS Word? It has another parameters like spacing or char width. There's an idea that it's caused by differences of GDI and GDI+. But what to do with it? Thank you in advance for any comments. Best regards...more >>

Binary writer spurious IOException issue
Posted by Mike at 6/21/2006 1:19:52 PM
Greetings, I have done some reading on the groups and understand that maybe there are intermitent issues reading from and writing to files from the .NET framework? In particular, receiving spurious IOExceptions. In our case, we receive them utilizing "BinaryWriter(new FileStream())". Can anyon...more >>



Problem with EventHandlers
Posted by matt.grande NO[at]SPAM gmail.com at 6/21/2006 12:22:24 PM
Please, I REALLY need help with this one. I've been banging my head about it for three days now. Here's the situation. I have a form that runs some queries and functions and such. When all is said and done, there are several new controls (LinkButtons) on the page. Dynamicly created contr...more >>

How to execute code when a DLL loads?
Posted by andrew.miadowicz NO[at]SPAM gmail.com at 6/21/2006 11:25:38 AM
I need to run some code when my dll is loaded (specifically when the Visual Studio designer loads my dll). I know about static constructors and I've tried to place the code in there, but the problem is these don't actually execute until the types they're in get instantiated. What I actually try...more >>

fast file count method?
Posted by Rob R. Ainscough at 6/21/2006 9:24:15 AM
Is there some way to determine file count on a drive? I know I can use System.IO.DriveInfo and My.Computer.FileSystem.GetFiles to obtain a file count, but this approach is pretty slow -- is there a faster more efficient method available? ..NET 2.0 framework is my base. thanks, Rob. ...more >>

String.IndexOf(string, int, int) bug? help!
Posted by Qun at 6/21/2006 8:19:17 AM
Hi all. this is in .net 2.0, c# //code string d = "dddd????"; int i = d.IndexOf('?', 0, 3); // return -1, why??? // end Thanks ...more >>

Coding Style
Posted by Arne Garvander at 6/21/2006 7:15:01 AM
Is there a software that will scan my code for proper style? I have seen that software, but I forgot what it is called. -- Arne Garvander (I program VB.Net for fun and C# to get paid.)...more >>

Listview flickering and performance
Posted by James at 6/21/2006 5:45:43 AM
Hi all, I have made a derived Listview which can accept the controls as items in it. Controls that we are using are Buttons in each row and implemented Grouping with the help of controls(label on panel) . Coz Inbuilt listview Grouping not supported in OS like window 98. Although I had u...more >>

firing a dts package's execution
Posted by someone at 6/20/2006 12:58:42 PM
Hi all, I am using Sql Server 2000. I need to create a very simple app which when clicked would fire the execution of a dts package on the sql server. The app itself would sit on the client machine. Is this possible? If so, how? Thanks in advance. ...more >>

Newbie needs help
Posted by PhillipLad at 6/20/2006 12:44:02 PM
Hello, I am using Visual Studio .NET 2002, but I want to be able to use some of the features in the .NET 2.0 framework like System.Collections.Generic. I updated my computer to the 2.0 framework, but in Visual Studio .NET, I am unable to use or see the 2.0 framework changes. Does anyone...more >>

GAC problem -- can't remove an assembly
Posted by Schemer at 6/20/2006 12:27:33 PM
Hello, gacutil -l shows this entry: Digger.Backhoe.dll,Version=1.0.0.75,Culture=neutral,PublicKeyToken=1111111111111111 When I try to remove it, I get an error: C:\...\Dev]gacutil -uf Digger.Backhoe.dll,Version=1.0.0.75,Culture=neutral,PublicKeyToken=1111111111111111 Microsoft (R) .N...more >>

Why are assemblies loading from the GAC?
Posted by Schemer at 6/20/2006 12:25:43 PM
Hello, I'm building a project in VisStudio 2005. I have .Net component that put several assemblies in the GAC. However, I want to test local versions of those assemblies. In my VisStudio2005 project I explicitly reference the assemblies in a particular directory, and set CopyLocal=TRUE. ...more >>

Different Permissions For Forms Control in Internet Explorer Applied
Posted by Markus Kling at 6/20/2006 11:27:44 AM
Hi, I have a Windows Forms Control running within the Internet Explorer. The application is able to download files from a remote store via drag and drop to the local filesystem. Some details: - The files are selected from a ListView - ListView.ItemDrag - calculates a temporary filen...more >>

Refactoring code snippet
Posted by Steve B. at 6/20/2006 11:25:47 AM
Hello, I've two questions about refactoring code snippets : 1. Can I add my own code snippet in the context menu (under Refactor menu) ? 2. Where can I find good tutorials ? I especially want to create a refactoring code snippet (however I'm not sure a code snippet is enough, I'll maybe n...more >>

How to kill a thread blocked on an interop call?
Posted by Christopher Carnahan at 6/20/2006 11:02:20 AM
I need to figure out how to terminate a thread while it is blocked trying to create a COM object via interop. In a worker thread, I do something like this: Type t = null; Object activatedObject = null; Legacy.IScheduled comObject = null; t = Type.GetTypeFromProgID(ProgID...more >>

GC and dispose
Posted by Petros Amiridis at 6/20/2006 9:52:49 AM
Hi, When I create an instance of one of my classes inside a method, does it make a difference if I call its Dispose method? public class Foo : IDisposable { public Foo { } public Foo anotherFoo = null; public void Dispose() { } } Given the class above is there ...more >>

VB 2005 Splash Screen Exception
Posted by pbishop NO[at]SPAM hotmail.com at 6/20/2006 8:30:07 AM
Hi, I'm running VB 2005 express on Windows 2000, SP 4. I have added a splash screen to my project, which was running error-free until then. The first time I run it each time I open the IDE, the splash screen shows, then the main form shows, just as intended. Each time after that, I get an e...more >>

Html Rendering in Winforms
Posted by ramesh at 6/20/2006 3:55:04 AM
Hi all, I am facing a problem with the rendering of html into a windows application (C# .NET). I am trying with two possible approaches: 1. Use a control that directly renders the html into windows form, but it should not be dependent on IE or mshtml. I didn't get such kind of control so fa...more >>

Multiplatform & Interop
Posted by Lloyd Dupont at 6/20/2006 12:00:00 AM
If I write a pure C# application, only using the standart publi API, no interop, the same binary should work well on32 bit, 64 bits and perhaps on the compact framework as well if I link against it. Now how could I achieve the same thing if I do interop and I have a managed C++ API? let ...more >>

Where is my Timezone
Posted by Arne Garvander at 6/19/2006 1:03:02 PM
Is there a way that I can retrieve the timezone my server is runnning in? My server may not move to another timezone very often, but if we have a disaster our server my move to another zone during a disaster recovery. -- Arne Garvander (I program VB.Net for fun and C# to get paid.)...more >>

Properly commenting mthods and properties
Posted by /dev/null at 6/19/2006 12:35:01 PM
Hello, i have been wondering for a while how to replicate the helpful pop up boxes that show up when using microsoft classes like DataTable. See if i do datatable.select i get an explanation for each parameters. I just can't find the proper term to search in google. Is it attributes ? I...more >>

Page_Load Problem?
Posted by matt.grande NO[at]SPAM gmail.com at 6/19/2006 12:24:21 PM
Hi all, My code: protected void Page_Load(object sender, EventArgs e) { string et = Request.Form["__EVENTTARGET"]; if ((IsPostBack) && (et.Equals(""))) { ExecuteCustomSearch(); } } There are times when I will click a button, and E...more >>

Using compression with encryption
Posted by pozi at 6/19/2006 10:46:01 AM
Hi, I am developing an internal compression format. This format stores multiple files (into 1 file) and uses compression (System.IO.Compression.GZipStream) and encryption (System.Security.Cryptography.RijndaelManaged) as well. If I use compression only, everything works OK. Also, If I ...more >>

Execute Arbitrary Math Formulas
Posted by rob at 6/19/2006 8:38:45 AM
I have the following scenario. A user requests some math calculations from a server. The data and a library of basic formulas reside on the server. Now the user should be able to create more complex formulas based on the basic built in formulas as well as other complex formulas that the user cre...more >>

Late binding -- Calling a static method
Posted by BrianGenisio NO[at]SPAM gmail.com at 6/19/2006 6:42:51 AM
This is purely an academic question for me... I don't actually need to do it, but I am trying to figure out it might be done. Lets say I have a singleton class... meaning the constructor is private, and GetInstance is public static. How do I use late binding to call the static method? All I...more >>

SerialPort Crashes after disconnect of USB COM port
Posted by Jens at 6/19/2006 5:28:02 AM
We have an application talking to a phone via a USB-cable, using System.IO.Ports.SerialPort. If the user unplugs the USB cable from the PC before the application has called SerialPort.Close(), we (nearly always) get an unhandled exception window (<application> has encountered an error and n...more >>

How to reference an external config file in app.config
Posted by Benjamin at 6/19/2006 5:13:02 AM
Hi! In .NET20 I would like to reference an external config file from the applicationSettings / My.MySettings chapter in app.config. I have tried to do the same way as I did in .NET1.1, according to: http://weblogs.asp.net/pwilson/archive/2003/04/09/5261.aspx?CommentPosted=true#commentmessag...more >>

Wrapper in C++/CLI
Posted by Stefano Magni at 6/19/2006 3:01:02 AM
Hi all, I've this constructor prototype in my C++/MFC DLL : MVBVariable(const char *NewName, CString UnitString, unsigned short len, MyClass* pMyClass); How can I convert constructor parameters in C++/CLI ? Thanks Stefano Magni...more >>

Version / Build Number in the Registry?
Posted by Patrick Roos at 6/19/2006 12:00:00 AM
Hi all, I must know the exactly version - and the build number of the dotnet framework 2.0. (for our installations programs) Where can I find this version - and build number in the registry? Thank you for your answers. Regards, Patrick Roos...more >>

Code Coverage Security Problem
Posted by Michael Schöller at 6/18/2006 11:19:05 AM
Hi, Well I get this error if I enable Code Coverage in my UnitTests in VS 2005 System.Security.VerificationException: Operation could destabilize the runtime. Well what I figured out is that its reated to the [assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted = false)]...more >>

Problem running ASP
Posted by David D. at 6/18/2006 11:01:02 AM
I have Visual Studio 2005 on two separate machines. I noticed today that I cannot run ASP.NET applications on either machine. I get the message "Unable to start debugging on the web server. The operation has timed out". Also whenever I try to create a new project I now get "Configuring w...more >>

Recommended protection/encryption tool for .net apps
Posted by adiavn at 6/18/2006 12:00:00 AM
Hi My application (.Net 2.0) uses a hardware key to prevent illegal copies. The problem is it's very easy to reverse engineer the code to remove this check. As far as I know obfuscation tools are useless for this scenario, since cracking the protection only requires searching the code for a use...more >>

Spelling Checker
Posted by Goh at 6/17/2006 9:37:05 PM
Hi, How can we implement spelling checker for windows forms development. I heard some one using Office spelling checker components. If so does it mean that production computer must equip with MS Office? Any Component can help me done this? Thank in advance, Goh ...more >>

installation CD
Posted by cox at 6/17/2006 6:20:01 PM
I lost the installation CD that came with my PC ( XP Professional)- I have the product key written down Now the system does not boot - soon after the drivers start loading (with XP logo on screen), there comes blue screen with STOP 0000007B. Then it goes to start power on startup again - ...more >>

Using shadow copy in a standalone exe
Posted by Strider at 6/17/2006 9:04:02 AM
Hello all, I am tryng to enable shadow copying on a standalone executable. What I need to do is to install upgrades while the application is running. I do not need to upgrade the executable, only the assemblies it refernces. I cannot use click once because - as I described in a previous po...more >>

.NET Redistributable Nightmare (x-posted)
Posted by Infinite at 6/16/2006 11:45:04 PM
I create a windows app which works fine on my dev machine. I deploy it on my test machine using the MSDE Deployment Toolkit and everything installs fine (expect attaching the db). The newly installed app will not run, it crashes before it does anything. I can run the same file on my dev mach...more >>

HttpListener and Cookies
Posted by Rok at 6/16/2006 7:11:15 PM
Hi, I am using HttpListener.Response.AppendCookie as: public void SetCookie(string name, string value, DateTime expiration) { // add new cookie to HTTP response Cookie ck = new Cookie(name, value); ck.Expires = expiration; c...more >>

.Net Export MS Word
Posted by Goh at 6/16/2006 5:40:23 PM
Hi, Do have any component that can export report to MS Word documents? Thanks in advance for any comment, Goh ...more >>

2003 VS to 2005 VS broke Win app after upgrade
Posted by T at 6/16/2006 2:40:02 PM
Greetings, I created a windows application that displays a single form with a few dropdowns to build a query to send to an embedded crystal reports viewer. I just recently upgraded the app from VS 2003 to VS 2005. I then created a deployment package and created the .MSI. The program works f...more >>

decompile assembly to source code
Posted by Jeremy Chapman at 6/16/2006 2:16:17 PM
For the last two years we've been using an internally built web site. Over this time, we've had several people in charge of the project, all of whome have left. Unfortunately the group that developed the project originally wasn't part of the core development group and lacked certain practices s...more >>

Untrusted Source Code location and Framework Security
Posted by Tim Frawley at 6/16/2006 1:43:36 PM
I have been using Visual Studio 2003 for several years with the .Net Framework 1.1 sp1. Our source code resides on a network share, primarily because it gets backed up every night. Our VSS is on another network share. in any case I had no problems with untrusted source locations until recentl...more >>

printer spooler
Posted by steph at 6/16/2006 12:40:02 PM
Does anyone know how to fix a printer spooler problem??? i cannot install my printer - everytime i go into printer/faxes from the start menu there is no printer to choose from- i then go into add printer and it says '' cannot add printer- printer spooler not running?? i haven't got a clue what...more >>

Urgent! Distributable license for .NET
Posted by news.microsoft.com at 6/16/2006 12:09:45 PM
Hello, where clearly and explicity says that .NET Framwork Redistributable is free??? Thanks in advance, Néstor Sánchez A. ...more >>

Printed version of framework 2.0 reference?
Posted by svierregger NO[at]SPAM gmail.com at 6/16/2006 11:59:30 AM
I can't find a printed version of the .Net Framework 2.0 Class Library Reference anywhere. Microsoft published a boxed set for version 1.1. Is a printed version available or going to be available for 2.0? ...more >>

"Not CLS Compliant" Warning in a Hello World example!
Posted by Chad at 6/16/2006 10:45:16 AM
Why am I getting the following warning? Note the example is complete. = Both projects were created as Class Libraries. Note that adding a Public Sub in RpClass1 does not remove the error. Warning 3 'DalTest' is not CLS-compliant because it derives from = 'RpClass1', which is not CLS-compliant....more >>

app.config
Posted by chris.m.oswald NO[at]SPAM gmail.com at 6/16/2006 10:43:16 AM
Is there a way to load a config file from outside the project? I am using .Net 2.0 and love being able to use My.Settings. I know you can load user.configs from the applicationdata folder, but this is for a Windows Service. Hence there are no users and you don't even have to be logged in for ...more >>

Loader Lock in MFC mixed application
Posted by Luis F. Rodas at 6/16/2006 8:56:14 AM
When I use the debugger in Microsoft Visual Studio 2005 to debug my Microsoft Foundation Classes (MFC) class library application, I receive an error message: "Managed Debugging Assistant 'LoaderLock' has detected a problem in <filename.exe>. Additional Information: Attempting managed executio...more >>

Install .NET Framework 1.1 on Itanium
Posted by Lester Cavey at 6/16/2006 7:46:02 AM
We are trying to install .NET Framework 1.1 on our Itanium 2, which uses Windows Server 2003 Enterprise Edition. However, running dotnetfx.exe results in the error message "Microsoft .NET Framework Setup failed. If this problem continues, contact Product Support Services.". Any ideas on why...more >>

Instaling Windows Service without using InstallUtil.exe
Posted by Sachin Vaishnav at 6/16/2006 5:44:02 AM
Hi Guys, I have created a windows service which now I want to install / uninstall without using InstallUtil.exe. I am already having another setup program which now needs to install this service. How do I do this? Please help. Thanks Regards, Sachin ...more >>

browse files on Share point server
Posted by Miro at 6/16/2006 1:41:01 AM
Hello! I need to write a simple application that lists all files in a folder on a Share Point Server. Can I use Directory.GetDirectories() and GetFiles() functions? The program is for my customers so I don't have the server available for tests. They can view the files in Explorer with h...more >>

2.0 Framework needed for VS2003 Application
Posted by vechoor at 6/15/2006 11:30:01 PM
Is it possible that application developing in vs2003 to utilize .netframework 2.0. Thanks...more >>

write to application Event Viewer
Posted by sk.rasheedfarhan NO[at]SPAM gmail.com at 6/15/2006 11:19:24 PM
Hi All, Please look in to this snippet. string sEvtSource = "MSSQLSERVER"; int m_nEventID = 17055; string sEvtLog = "Application"; if (!EventLog.SourceExists(sEvtSource)) EventLog.CreateEventSource(sEvtSource,sEvtLog); EventLog.WriteEntry(sEvtSource,"TESTMessage",EventLogEntryType.I...more >>

about zooming controls
Posted by # Cyrille37 # at 6/15/2006 10:39:20 PM
Hello, I'm looking for a method that can make a form zoomable : controls and texts grow with the form like a vectoriel drawing (MM Flash). I think it is not possible with dotnet... But perhaps it is ??? Thanks for your lights ! Cyrille...more >>

Keyboard shorcuts & multiple forms
Posted by Noah Stein at 6/15/2006 5:46:58 PM
I'd like to add keyboard shorcuts to my program. I'm writing an application that has many top-level forms that reside on the desktop. When the focus is one form, other forms can't respond to short cuts. Some of my shortcuts are program-wide. What are my options? I see a few: 1) Add each sho...more >>

RegularExpressions
Posted by Serge at 6/15/2006 3:07:02 PM
Hello, I have a log file that looks something like this ABCDEF ddfs adasd A BRE asdd asd dfddf EROI DFIOU eeroo B BRE errt ssdrr AAA eIR DFDF C BRE AAA asdd All lines are seperated by NEWLINE (\r\n) I want to extract lines that start with BRE all the way to the end of the line and p...more >>

Problem mit Crystal Report: neues Datenbankfeld
Posted by Peter Ramsebner at 6/15/2006 11:40:59 AM
Hallo miteinander, ich habe in meinem Projekt eine Accessdatenbank, ein DataSet und einen CrystalReport. Soweit hat alles funktioniert. Jetzt das Problem: In der Tabelle musste ich eine neue Spalte einfügen. Habe das Typisierte DS aktualisiert. Dann hatte ich Probleme das neue Feld im Rep...more >>

.net applicationcrashes. at 1.2GB
Posted by Amar at 6/15/2006 9:30:33 AM
hi. is ther a reason why a .net application crashes after using 1.2 gb of physical mrmoey.. I am using the 1.0 framework wth SP3 on windows server 2003. The application runs on a server with about 2 GB of ram, not other application on the machine. has this somthing to do with GC of 1.0, is...more >>

Launching ASP.NET from a Windows Form
Posted by Mike at 6/15/2006 8:35:02 AM
Hello, I need to start an ASP.NET 2.0 web from within a Windows Form. I also need to pass a username and password, but I would like to "hide" them so that they do not appear in the URL. Any idea how to do that? Tahnks. Mike ...more >>

Nasty IIS site compilation error / bug
Posted by Ryan at 6/15/2006 7:07:47 AM
Hi All, I have a web site that I am editing on my local machine running under IIS that compiles from Visual Studio fine and gives no errors when running the web deployment project either. If I browse the site it works, if I then edit a page (no code changes, just a visual edit) and save tha...more >>

.Net Framework 3.0 announced
Posted by Nick Malik [Microsoft] at 6/15/2006 1:35:33 AM
I didn't want folks to miss this. http://blogs.msdn.com/somasegar/archive/2006/06/09/624300.aspx -- --- Nick Malik [Microsoft] MCSD, CFPS, Certified Scrummaster http://blogs.msdn.com/nickmalik Disclaimer: Opinions expressed in this forum are my own, and not representative of...more >>

Subject: Question: Dynamically Raise Event using Reflection API
Posted by KIM at 6/15/2006 1:30:01 AM
Hi there, I tried to find a way to dynamically raise event using Reflection API. The scenario is, I have to raise a event in a class instance by using a given event name. I can use the GetEvent(...) method of the Reflection API to get the EventInfo object. However, the GetRaiseMethod of the...more >>

how to protect my codes
Posted by zeeway at 6/15/2006 12:00:00 AM
hi,every one! I have an urgent question. My codes need to be published now,but I learn programs produced with .net are very easy to be reverse-engineered. Could anyone give me some sugguestions to protect my c# codes? Crespo 2006-06-15 ...more >>


DevelopmentNow Blog