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 > april 2006

Filter by week: 1 2 3 4 5

dll/Class Required
Posted by Samuel Shulman at 4/30/2006 11:40:01 PM
Hi I use in my program the following dll: 'xMSMAPI'and declare an object of the following type:'xMAPIMessages', when I run the program the I get an error "Class not registered" (when I call the following statement:(CType(Me.MAPIMessages, System.ComponentModel.ISupportInitialize).EndInit()) D...more >>

win32 from C#
Posted by Kamil at 4/30/2006 9:02:36 PM
Hello, Maybe anyone of you know, if there is any way, other then PInvoke, to use win32 dll in C# applications. Library that I use consists of plenty of classes and it is very inconvenient to type DllImport all the time. It would be much easier to add reference and put using directive at the...more >>

Critical Services
Posted by Ashish Jindal at 4/30/2006 8:53:14 PM
Hi, How do I identify whether a service is "Critical" or not? Basically, I am writing a program to stop all non-critical service. AFAIK, the services can be found in "HKLM\CurrentControlSet\Services\<name>". I am getting the names using the ServiceController class (in System.Serv...more >>

gcnew but NO gcdelete
Posted by bern11 at 4/30/2006 3:02:10 PM
I still have a bit of problem with this one since pointer management is such a critical task in C/C++ programming. I've read it, I understand it, but I gotta ask: There is no gcdelete function for objects created with gcnew. Simple set the handle to nullptr and the system will destroy ...more >>

Desperately needing direction with EncoderParameters and saving images under different compression/quality schemes
Posted by NutsAboutVB at 4/30/2006 1:42:34 PM
Hello, I am a VB.NET programmer and I have a JPEG image file (from digital camera) of about 109 KB's in size, when I open it and save it (without making any alterations at all, just going to File --> Save) in MS Photo Editor, the file is automatically shrunk in size to 81 KB's. When doing the...more >>

Regex question
Posted by Stephan Rose at 4/29/2006 7:34:47 PM
Having some trouble with a regex that I hope someone can help me with. The data I am processing looks as follows: 15 items per dataset. Most datasets are on only 1 line of text, however on occasion a few text fields are multi-line making the dataset span more than 1 line. Each data item i...more >>

MSDN Library and VS2005
Posted by Gabriel at 4/29/2006 6:05:04 PM
Hello, I'd like buy MSDN library DVD edition. The package include MSDN library for Visual Studio 2003 or/and Visual Studio 2005 ? Anything asked or show during order process. I'd like the version for VS2005 Thanks, ...more >>

Many Version of Application - Determine .dll running
Posted by loren.reeves NO[at]SPAM gmail.com at 4/29/2006 10:27:05 AM
We have one main Application that is referenced to other Apps and there are many different versions of this Application under different User's Profiles in a Dev Enviornment. There was supposed to be a setup.exe that was running as the QA version on the DEV box for everyone to push new builds to...more >>



IPC with two .net applications
Posted by Peter Schmitz at 4/29/2006 9:20:02 AM
Hi, what's the best way to do inter- process communication between two .net applications (one of them a non-interactive .net windows service) - given that a rather high amount of data shall be transferred? Best wishes, Peter...more >>

Windows Version
Posted by gralet at 4/28/2006 3:14:02 PM
Hi Well, I need to know the version of the windows where my application will be installed. I think I'll need an api, anyway, I'll appreciate your help, tnks. -- __________________ Luis Graillet Ramos...more >>

Framework SP2
Posted by Rich at 4/28/2006 2:59:13 PM
We applied .Net framework to our dev server and now we get the compilation errors below. Has anyone come across this or know how to resolve it. Thanks. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the...more >>

Can't run DLL
Posted by tedqn NO[at]SPAM yahoo.com at 4/28/2006 12:44:46 PM
I created a DLL, reference it in namespace and didn't work so I tried a very basic one and same error. I've done this before on another machine and it was pretty plug n play. Don't know what's wrong with this win2003 server. - Indexing service is already disabled. I even manually unchecked the ...more >>

ByRef
Posted by Arne Garvander at 4/28/2006 10:51:02 AM
How do I pass a variable ByRef in C#? -- Arne Garvander Certified Geek ...more >>

UDP to Client
Posted by Tom_B at 4/28/2006 9:22:02 AM
Using VB.Net. Wanting to send a UDP message from a server to a client. The client uses a broadband connection from Comcast Cable. The computer has two IP addresses, one external and one internal. Which IP address should I be using? Neither one is working to pass the message. Thanks....more >>

NetworkStream/SslStream EndWrite problem.
Posted by Andre Azevedo at 4/28/2006 9:21:58 AM
Hi all, I'm writing an async socket server using Networkstream and SslStream. Using the Socket class, the EndSend method returns the bytes writed and you can loop until all bytes are sended. But if you using any stream (Network or Ssl) the EndWrite method doesn't return nothing. I can sol...more >>

How to recognize a JPEG or a GIF image when the file has no extension?
Posted by Clément at 4/28/2006 9:16:33 AM
Hi! I download images which have no extension, with a System.Net.WebClient. I would like to save them with a different name and with the extension ..jpg if they really are of JPEG type. Because sometimes I could receive GIF images, and I would like to do the same. I tried to look for the im...more >>

MSBuild vs Nant
Posted by jomu at 4/28/2006 8:18:50 AM
hi, i need help about wich choosing Msbuild or Nant, if it s MsBuild: i want look about performance, advantages,... Thks for help jomu ...more >>

CSS
Posted by Arne Garvander at 4/28/2006 7:45:02 AM
Is there a news group for CSS? I can set the style for INPUT but I don't have a good way of cascading a style for all my <input type=button>. I have hundreds of them. INPUT { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Arial, Verdana } INPUT button { FONT-SIZE: 11px; ...more >>

Bitmap.Save and PNG Filesize
Posted by powella NO[at]SPAM gmail.com at 4/28/2006 7:42:33 AM
hey all, Does anyone happen to know how to get .net to save a PNG with a resonable filesize The scenario... I have a 26kb 32bpp png which im loading from stream I then create a new graphics object from that image, draw a 300kb image, at 1/4 its original size, and then save the image to file...more >>

How to recover from a WSAECONNRESET (10054)
Posted by scarleton NO[at]SPAM gmail.com at 4/28/2006 6:15:56 AM
I am writing a .NET 2.0 client application uses sockets to communicate with a firmware on an instrument. The client needs to be able to recover from a lost connection to the instrument. While trying to send data to the instrument, after a disconnect/reconnect the socket throws a exception with...more >>

NumberFormatInfo - currency symbol on the left??
Posted by Sam Martin at 4/28/2006 3:48:01 AM
Hi, I've got a web app where i need to show values in specific currencies. for the session i create a Customised CultureInfo which is derived from the culture of the browser, for example, french-france (fr-FR) they display their currencies like 23,22 EUR (symbol) I have a change curren...more >>

Need help with Generic delegatges, event handlers and methods.
Posted by moondaddy at 4/27/2006 11:15:51 PM
I'm trying to learn how to use generic delegates, event handlers and methods. To do so I built a small sample Console app to see how this can work. I got it working using the EventHandler<T> from the system name space but with out using a generic method to pass into my delegate. By the wa...more >>

DLL does not load Dynamically
Posted by RSS at 4/27/2006 1:20:28 PM
Hi everyone, I have an app that uses some DLL's that are shared across couple = applications. There are reasons existing that prevent me from putting = them in to the GAC. Each of these app's at some point in time loads a DLL dynamically in = this fashion: =20 System.Reflection.Assembly ...more >>

DataSet.WriteXml()
Posted by Steve B. at 4/27/2006 12:04:59 PM
Hi, I'm using the WriteXml method of the dataset to transport data between distributed applications. I'd like to use both XmlWriteMode.DiffGram and XmlWriteMode.WriteSchema in order to package updates of rows and the schema of the dataset. However, I use something like : myDs.Write(m...more >>

New messagebox/error dialog?
Posted by Jeff Johnson at 4/27/2006 10:33:44 AM
Has anyone here used SQL Server Management Studio (2005) and seen the new messagebox that comes up when there's an error? It's really nice, with buttons along the bottom for accessing the help links and getting the extra details from an Exception. I was wondering if this was developed exclu...more >>

MsBuild & ProjectReference
Posted by jomu at 4/27/2006 10:13:15 AM
how can i create a golabel file who can execute a .csproj at different project, that what i was doing: <ItemGroup> <ProjectReference Include="..\DataAccessLayer\DataAccessLayer1.csproj" /> <ProjectReference Include=".\BusinessLayer\BusinessLayer1.csproj" /> <ProjectReference...more >>

.NET Framework in Windows XP or SP2?
Posted by Leslie at 4/27/2006 8:49:03 AM
Is any version of the .NET Framework included in Windows XP or SP2? Thanks, Leslie...more >>

Class Constructors
Posted by Samudra at 4/27/2006 8:01:02 AM
I have a class which defines multiple overloaded constructors. Within the class methods is there a elegant way to determine which constructor was used to instantiate the class (without setting flags in the constructor)?...more >>

Serialization loading problem with IE hosted control and custom class
Posted by Kristopher Wragg at 4/27/2006 2:48:54 AM
Hi, I have controls that will hold a custom PictureBox I've been working on, the picture box stores an array of a class I've made which contains an Image a few integers and a string... the controls seem to work if loaded up in Visual Studio, but when hosted in Internet Explorer I get the fo...more >>

Uploading files to two servers at same time
Posted by dilishtv NO[at]SPAM gmail.com at 4/27/2006 1:04:57 AM
Hi All, Our .Net Website is using 2 servers and the load balancer pointed to servers according to their load. Think now i m in first server and i upload a file to the server, next time i refresh it goes to the next server but the file that i uploaded is not there in this server. How can i...more >>

Why does this.Location.X = 0; generate a compile error?
Posted by Dave at 4/26/2006 8:11:46 PM
..X (.Y too) are ints with get/set methods so why does trying to set either one generate a compile error?? ...more >>

How does one disable the CrossAppDomain channel?
Posted by Eric at 4/26/2006 3:02:02 PM
Anyone writing a custom channel (which we have), needs to be able to disable the CrossAppDomain channel if they want to unit test their code on a single machine. If you don’t disable the CrossAppDomain channel, then it will take over same-machine remoting calls (after activation) effectivel...more >>

Salamander Online Decompiler v2 available
Posted by Huihong at 4/26/2006 2:57:25 PM
http://www.remotesoft.com/salamander/ now supports .NET 2.0, freely available for online use, pls give it a try. It supports generating C#, VB.NET, and MC++. (the upload file size limit is 3MB) With about 250,000 files have neen uploaded and decompiled thus far, the online decompiler is ver...more >>

Multiple observers -- panels
Posted by Eric at 4/26/2006 2:38:03 PM
For some reason I am having a problem notifying multiple observers of an event. Here's the basic idea: MyForm contains two panels LeftPanel and RightPanel (both inherit Panel). The left one is has a treeview and the right one will have whatever depending on what is selected on the left. Both ...more >>

VB6 app with .Net 1.1 and .Net 2.0 controls?
Posted by holysmokes99 NO[at]SPAM hotmail.com at 4/26/2006 1:44:23 PM
I am working on a large project that currently is based primarily in VB6. There are a number of .Net 1.1 assemblies that are used and registered via regasm in the VB6 application. Is it possible to also use 2.0 assemblies in the same VB6 app, or can only one .Net framework be loaded at any time?...more >>

Question on ConfigurationElementCollection design
Posted by Tim Johnson at 4/26/2006 12:33:02 PM
I have 2 questions on using element collections when building a custom section handler. I'm using the "declarative" model and I can post the code if necessary. Basically I'm following the example described here: http://msdn2.microsoft.com/en-us/library/system.configuration.configurationcoll...more >>

Running .Net 2.0 Application without having .Net Framework installed
Posted by schworer NO[at]SPAM gmail.com at 4/26/2006 12:04:49 PM
I have an odd question. Is it possible to run a .Net 2.0 Applicaiton on a machine that does not have the .Net Framework installed on it? If it is, please provide details on how to accomplish this. Thanks, Andy ...more >>

Compilation error - missing assembly or reference
Posted by Varun Bansal at 4/26/2006 11:11:30 AM
Hi, I was trying to compile the following sample code from MSDN using System; using System.Collections; using System.Text; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Runspaces; namespace Microsoft.Samples.Msh.Host { ...more >>

Settings independent of assembly version
Posted by Jarod at 4/26/2006 11:04:46 AM
Hello, is there a way to save settings independent of the assembly version? ..NET always stores the file user.config below a directory that has the name of the assembly version. When the version of an application changes, the file is written to a new directory and read from there. With this b...more >>

Wrapping/Using Unmanaged Enums
Posted by bidalah NO[at]SPAM yahoo.com at 4/26/2006 9:20:37 AM
Hi, Many in this group have dealt with converting unmanaged enums to managed ones, but my problem is slightly different. I am created a wrapper for an unmanaged class that uses several enums and contains functions that take whole enums as inputs. I have wrapped the functions and recreated ...more >>

.NET encryption
Posted by Bmxpert at 4/26/2006 6:42:02 AM
Hi all I have a very specific question. Recently I've created a class that performs a basic encryption on strings passed to it. The encrypted data is returned as a string and then passed over the network via a WebService. The encryption is done trough a basic use of Memorystream, CyptoStrea...more >>

Configuration.Save Bug?
Posted by kramii at 4/26/2006 4:48:02 AM
Apparently, if I open a named file using OpenExeConfiguration, modify it and try to save the file using Configuration.Save, the framework appends ".config" onto the fileaname. Is this a bug? Here is part of my test class. There is already a file in my application's bin directory called BBB.XML...more >>

Unit Test / Config File / Logging Application Block
Posted by Dick at 4/26/2006 4:28:01 AM
I'm trying to write some unit tests to prove that I understand how the Logging Application Block works. I trying to write a test that updates the config and then writes a log. But this is failing with the message "The configuration section for Logging cannot be found in the configuration sou...more >>

Embedded apps resizing in 2.0
Posted by Dave Goldberg at 4/25/2006 7:33:01 PM
I have a no-touch application which I created in 1.1. It is embedded within IE, not a stand-alone window. I'm migrating it to 2.0 and one thing (which is a major problem) is that the <object> tag doesn't appear to resize within the browser frame any more. I tested the same code in 1.1 and 2.0 ...more >>

Deserializing "null" value into double
Posted by Michael Groeger at 4/25/2006 4:45:18 PM
Hi, we use serialization and deserialization for import/export functionality. When deserialising into a property of type double, we would like to be able to deserialise from a "null" or empty string e.g. <myDouble></myDouble>. But unfortunately a System.FormatException is thrown. Any ideas?...more >>

How to find out the "GUID" of installed assembly?
Posted by Alvaro E. Gonzalez at 4/25/2006 9:23:18 AM
Hi; How to find out the "GUID" of installed assembly? Tks. Alvaro ...more >>

Delegation fails over remoting if user is logged in for too long
Posted by Adam Hughes at 4/25/2006 8:10:02 AM
I am currently using .NET 2.0's secure TCP channel for remoting, and have run into a problem where if a user doesn't log out for a while (usually seems to be about two days), delegation fails. Having the user log off and back on fixes the problem (as does locking and unlocking the workstation...more >>

<object> usage in ASPX page after IE update
Posted by di.popa NO[at]SPAM gmail.com at 4/25/2006 6:48:18 AM
<object> usage in ASPX page after IE update I have one window form created in C#; before the security update update KB912812(Cumulative security update for Internet Explorer) I use this window form inside a ASPX page using: <object id="MyControl" height="100%" width="100%" classid="/MyWinC...more >>

CLR looking for assembly in wrong location
Posted by IP at 4/25/2006 5:24:01 AM
I am installing 2 windows services from the command line. When I go to install the first one it installs fine and starts up. The second one installs but won't start. The error message indicates that there was a failure to load an assembly. This is happenning because the GAC seems to be looking...more >>

Adding reference System.Configuration to a web project: not possible! Why?
Posted by Roland_Müller at 4/25/2006 12:00:00 AM
Hi, the warning in VS2005 says: System.Configuration.ConfigurationSettings.AppSettings is obsolete, use System.Configuration.ConfigurationManager.AppSettings instead. Ok, i wanted the change this, knowing the ConfigurationManager is located in the assembly System.Configuration.dll. I g...more >>


DevelopmentNow Blog