Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score using preprocessor directive for cross framework compatibility
Praveen - 18 Nov 2006 2:18 PM - 4 messages
Hello all, I have some common classes that I routinely use with all the dotnet projects that I work with. I have these classes in a separate file so that it becomes easy for me to include them into projects. ...
Score Trace.WriteLine(object value) - causes "System.InvalidOperationException: Collection was modified; e
jc - 17 Nov 2006 10:52 PM - 4 messages
For some reason I am getting the following exception when calling Trace.WriteLine(object value): "System.InvalidOperationException: Collection was modified; enumeration operation may not execute." if (Trace.Listeners.Count > 0) {   Trace.WriteLine(entry); // line 424 } - Here is the stack trace: ...
Score check caller before ServiceBase.Run?
stevenkobes@hotmail.com - 17 Nov 2006 9:31 PM - 2 messages
I have a service application in C#.  If the user double-clicks the service EXE, I want to display a form with options to install or uninstall.  In other words, I want: static void Main() {   if (invoked by user) {   // <-- how to implement this? ...
Score Raw TCP/IP library?
Massimo - 17 Nov 2006 7:09 PM - 5 messages
Hi to all :-) I need to know if there is (inside the main .NET framework or available as a library) any TCP/IP implementation which can be run over a serial line. I know the request can sound quite strange, so here are some more elements ...
Score Error 4786 with Windows Service
Eve - 17 Nov 2006 6:32 PM - 2 messages
After my Windows service runs for a few days (sometimes 5, sometimes 3), I'm getting the following exception in the Event Viewer: Event Type:    Error Event Source:    COM+ Event Category:    Unknown ...
Score Can I use WCF right now?
Mike90 - 17 Nov 2006 5:27 PM - 4 messages
Is it possible to convert my app which is in Framework 2 to 3 using VS 2005 and release it to customer? What approach must I take? ...
Score How to move from .NET Remoting to WCF
Mike90 - 17 Nov 2006 5:25 PM - 5 messages
What is the best way? Is there a good article? ...
Score Loss message in Socket Async mode
rockdale - 17 Nov 2006 2:48 PM - 3 messages
Hi, all Did not find a .Net Communication forum to post. I am soing a client/server message system and using C#.net socket and Async mode. Pretty much as described in article [link] ...
Score Problem with generic List<>
ThunderMusic - 17 Nov 2006 2:12 PM - 3 messages
Hi, I have a problem using the generic List...  in fact, it seems like a bug in the framework, but I can't find why... I have an application that runs in the tasktray (not as a service), after a ...
Score Application terminates due to access violation?
Daniel Carlson - 17 Nov 2006 11:33 AM - 4 messages
Does anyone knows the meaning with KB823140 and KB903886? These articles treat the issue of "Access Voilation" in .NET framework. I have an application developed in C# that sometimes simply dies. No messages, no error codes, no exceptions. A few days ago I got a tip that this ...
Score Socket close notification
Mubashir Khan - 17 Nov 2006 10:32 AM - 5 messages
I am so surprised to find that there is no close notification in socket class. Like OnClose in MFC CAsyncSocket. Any suggestions please ...... ...
Score Other printing problem (resolution not honored)
Lloyd Dupont - 17 Nov 2006 5:11 AM - 7 messages
Before printing I create an instance of PrintDocument as Follow (beware, pseudo code) //============================== PrinterResolution pr = new PrinterResolution(); pr.X= 600; pr.Y= 600; pr.Kind = PrinterResolutionKind.High; PrinterSettings printer = new PrinterSettings(); printer.PrinterName = "my printer"; printer.PageSettings.PrinterResolution = pr; PrintDocument pd = new MyPrintDocument(); ...
Score an existing connection was forcibly closed by the remote host
figelwump - 17 Nov 2006 2:23 AM - 3 messages
Hello, I am developing an HTTP/1.1 proxy server in c#.net.  I am encountering the following exception when I try to send the response body back to the client:  "An existing connection was forcibly closed by the remote ...
Score How can I use Regasm on server?
Bryan - 16 Nov 2006 6:52 PM - 2 messages
Hello all.  I have an assembly that needs to be registered on a server for use with SQL Server 2k.  Locally I can run Regasm from the VS.NET command window and that's that.  But how can I get the assembly registered on the (or ...
Score FileSystemWatcher help!
Phuff - 16 Nov 2006 4:52 PM - 2 messages
Okay, I am writing a service that monitors the file system on one of our servers and I can take of that in a cinch.  However, I found no properties or methods available to see who the user is that controls ...
Score IO.Compression and Encryption
AnikSol - 16 Nov 2006 4:05 PM - 4 messages
Hi, Environment: VB 2005 Professional Both ends, its the application which is doing the functionalities. At the despatch end, We have a text file which is to be compressed and encrypted and sent over to the recepient. At the recepient end, the file is decrypted and then decompressed. ...
Score combobox find item by value
Jason - 16 Nov 2006 4:01 PM - 12 messages
Is there any way in a combobox to find the index of an item or set the item in a combobox by the value?  I know there is a FindString, and a FindStringExact method in the combobox object, but is there anything simmilar ...
Score Framework files location for compile
Chuck P - 16 Nov 2006 3:37 PM - 9 messages
On our development machines I created some batch file for compiling our web apps. They make use of some environment variables and batch files that visual studio installs. if "%VS80COMNTOOLS%"=="" goto error_no_VS80COMNTOOLS rem set path of aspnet_compiler for the framework in vs80 ...
Score How do I Sleep for a specified amount of time and relinquish contr
nickdu - 16 Nov 2006 3:07 PM - 17 messages
In the docs for Thread.Sleep() it appears unless I specify 0 my thread will still use the rest of its quanta (I guess doing nothing useful) as opposed to being suspended right away to allow other runable thread to execute. ...
Score Howto Identify an Exception?
Pieter - 16 Nov 2006 2:07 PM - 7 messages
Hi, For some procedures that throws exceptions, I would like to show different messages to the user depending on what type of exception he's getting. For instance this one: when the file is locked, I want a messagebox to tell that ...
Score .Net 3.0 Administrative Setup
MichaelG - 16 Nov 2006 9:11 AM - 8 messages
..Net 3.0 deployment via Active Directory and Group Policy seems pretty broken to me.  The most up to date info I can find is in the RTM SDK under 'Microsoft .NET Framework 3.0 Administrator Deployment Guide'. The script at the bottom of that article ignores the WIC and XPS components ...
Score Can't install hotfix for KB913384
Sean Blaes - 16 Nov 2006 4:52 AM - 2 messages
Hello, I got the hotfix from customer support for KB913384.  However, when I attempt to install, it says I'm missing the required software.  IIS is installed, and I'm running Windows XP Pro SP2 and .NET 2.0.50727.0.  It ...
Score OE - nothing appears in message body
pspiel - 16 Nov 2006 2:41 AM - 5 messages
I've been using Outlook Express for my Hotmail account for a long time.  Suddenly it isn't working properly.  It downloads messages into the inbox fine, but for some reason when I open a message I get the hourglass and no ...
Score convert DataColumn.GetType() into a DbType or SqlDbType?
Chris Bordeman - 15 Nov 2006 9:32 PM - 5 messages
I have a DataColumn, want to derive the DbType.  I can do column.GetType() but that's a system type, not a db type.  How do I convert it to the corresponding type? Thanks much! Chris B. ...
Score TypeConverter and arrays
Rog - 15 Nov 2006 8:40 PM - 3 messages
Using asp.net1.1, I have a property on a control that is an enum.  I use an accessor and set it in HTML view.  So: public enum Permission { None = 0, Admin = 1, Member = 2, ... } .... public class Lock : System.Web.UI.Control ...
Score Client -Server in Windows Applns...
Raj - 15 Nov 2006 2:37 PM - 2 messages
Hi All.., I have a VB.Net Windows Application.. I need to Run this Exe From Some Other System(Client) and I need to Upload some specified files to the Server System.. Now my doubts are.. 1) Is client-Server concept is Possible in Windows Applications.. ...
Score ClickOnce Deployment on Thin Clients for ALL users
kaz1165 - 15 Nov 2006 2:14 PM - 3 messages
I am having a bit of a problem with my ClickOnce Deployment strategy for vb.net 2005 apps. I am working in a plant which has hundreds of thin clients and when I deploy an app using ClickOnce, it asks each individual user if they ...
Score Application.ThreadException not working
joseph_gallagher - 15 Nov 2006 12:08 PM - 4 messages
Hi, I have a shoddily written application that is written in 1.1 that I've ported to 2.0 and now occasionaly I get crashes which I suspect are been caused by exceptions in threads, most likely due to trying to ...
Score TimeZone.CurrentTimeZone doesn't update
Dave Kane [MVP - Outlook] - 15 Nov 2006 7:27 AM - 2 messages
I'm seeing TimeZone.CurrentTimeZone accurately reflecting the machine time zone at the point that the assembly loads, but if the user subsequently changes the Windows time zone the value of TimeZone.CurrentTimeZone doesn’t change to reflect that. ...
Score embed sqlexpress installation
raju - 15 Nov 2006 7:00 AM - 2 messages
Hello      I have an application, which is used to install sqlexpress in quit mode(no user interface). It is working properly.      In that installation time i want to show some progress bar ...
Score wsdl errors for multiple webservices with reference to same dataset
wc_chan - 15 Nov 2006 12:48 AM - 2 messages
I wrote a web service projects having 2 asmx and 1 dataset, says dsTest1. The amsx will have a parameter of the dataset as follows: in 1st asmx: <Wethod()> HelloWorld1 (byval a1 as dsTest1) as string in 2nd asmx: ...
Score Adding a Crystal Report to a VB.Net Standard edition application
ABConrad - 14 Nov 2006 3:22 PM - 2 messages
Hi all, I am working with VB.Net 2005 Standard Edition and Crystal Reports 8.5 Developer Edition.  I already have a report written in Crystal and I just want to be able to add the report to my Application.  I have ...
Score DataGridView in 2.0 Framework - Sorting
Chris Moore - 14 Nov 2006 3:21 PM - 3 messages
All, I am having a considerable amount of difficulty with what should be a very simple problem. I have a DataGridView that is bound to a collection of objects that displays (and edits) selected objects appropriately. However, I can find no way to activate sorting by ...
Score Tracking method calling
stepanfryd - 14 Nov 2006 3:17 PM - 5 messages
Hi all, I have a question about tracking of method calls. I would like to track/log methods in code during runtime. I thought that I can write custom attribute which I will use in method which call I want to log and in constructor of ...
Score Runtime bridges Ja.NET and JNBridgePro vs Web Service
johnk - 14 Nov 2006 3:02 PM - 2 messages
Hi, We are looking for arguments for using technologies that allows .NET Framework and Java to interoperate on a point to point basis. The two options are XML Web Services and .NET Remoting with using third party runtimebridges likes Ja.NET and JNBridgePro. ...
Score what is .NET
vaibhav parashar - 14 Nov 2006 11:35 AM - 8 messages
Dear all Is .NET a Technolgical Platform or is it just a Framework whats different b/w techonolgy and Framework EggHeadCafe.com - .NET Developer Portal of Choice [link] ...
Score Retrieving Data
Barry - 14 Nov 2006 10:47 AM - 2 messages
Hi I have some 10 records in a table with a DateTime field, all the records have the same data but the time of each records is different. Using a stored procedure how do i retrieve all records eg AppendParameter(cmd, "@CallDate", DbType.DateTime, dt); ...
Score Web Application and Memory
fabrice - 14 Nov 2006 10:41 AM - 3 messages
Hello I m testing my application based on the framework 1.1 with few users. I m worried about the memory of my server. I can notice a terrifying increase of memoring using by my application server. For example, before start application, the memory using is about 280mo. ...
Score How to deserialize a SettingsProperty
Serge BRIC - 14 Nov 2006 7:43 AM - 5 messages
Hi, I don't know how to retrieve the default value of user properties. For instance, I have defined 2 user properties named TheColor and TheFont, with the type System.Drawing.Color and System.Drawing.Font. I can access their current values like this: ...
Score Property label
Charles Bazi - 14 Nov 2006 6:28 AM - 3 messages
Hi, I'm using databing with some classes, and I would like to know if there's a way to define some sort of description Attribute for a property. I have this Porperty: public string ItemsInStock{     get { return _ItemsInStock;} ...
Score Transactions for File I/O?
cmay - 14 Nov 2006 4:44 AM - 3 messages
I am wrapping a bunch of DB calls into an MSDTC transaction, using the ..net 2.0 System.Transactions transactionscope. Part of the operations I need to do in this transaction include some writing to the file system (deleting a file / creating a file). ...
Score .net framework 2 Install breaks IE 6
Gale Coleman - LSND - 14 Nov 2006 3:37 AM - 6 messages
Hello all, I am using windows 2000 pro and want to install SQL express.  Before I do this, I have to install .net framework 2.  I found the download here: [link] ...
Score creating a windows desktop search ifilter in .NET?
Jeje - 14 Nov 2006 2:22 AM - 3 messages
Hi, does it possible to create an IFilter in .NET (VB.Net or C#)? I see sample in C++, but not in VB.Net any guide? thanks. Jerome. ...
Score .NET 3.0 as a setup file?
MuZZy - 14 Nov 2006 12:21 AM - 3 messages
Hi, I can't seem to find a real redistributable package with .NET 3.0 runtime. The one called "redistributable" is 2.8 MB setup file which starts downloading the whole thing. I need to install .NET 3 on 20 PC's ...
Score GetHashCode for Objects that Compare Based on Value (Not reference equality)
Matt - 13 Nov 2006 10:00 PM - 12 messages
Hello, In a few classes I have overridden Equals, ==, and != and would like to generate an optimal hash code but I am a little confused about the best approach to take. All of the classes that I am developing use a value ...
Score Exception when trying to start the windows service
Rahul - 13 Nov 2006 7:52 PM - 2 messages
Hi, We are upgrading code from 1.1 framework to 2.0 framework. we have setup new production servers for the same. We have a custom windows services that we have to install and make it start on the server. We are able to install the ...
Score .NET 3.0 rtm install fails
Pete - 13 Nov 2006 7:33 PM - 3 messages
I am getting a failure during the install of the .NET 3.0 (RTM) redistributable.  The error message is as follows: Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603 This is on a WinXP SP2 machine.  I have .NET 1.1, .NET 2.0, VS2003, VS2005, ...
Score Newbie looking for explanation of why RegisterClientScriptBlock is necessary?
kbutterly - 13 Nov 2006 7:04 PM - 6 messages
Good afternoon, all, I am a experienced Web programmer, trying to learn ASP.net 2.0 and I am stuck on the necessity of the RegisterClientScrptBlock and RegisterStartupScript methods. According to WROX's Professional ASP.NET 2.0, "the RegisterClientScriptBlock method allows you to place a Javascript ...
Score COM Interop Error on 64 bit OS
ANeelima - 13 Nov 2006 5:56 PM - 2 messages
I have a VB6 executable that references a .NET 2.0 dll.  The .NET 2.0 dll project has 'Register for COM Interop' checked.  Thus, compiling the dll will generate the .tlb file.  This will allow early binding ...
Score assembly versions
param - 13 Nov 2006 5:21 PM - 3 messages
Hi all, Can I have 2 versions of an assembly loaded in the GAC? i.e. 1.0.0.0 and 2.0.0.0. Also, if this is possible, can I have certain web applications use the 1.0 version and certain web apps use the 2.0 version? If yes, how can I ...
Score Force install of new version within ClickOnce
Dick - 13 Nov 2006 2:56 PM - 3 messages
Within ClickOnce deployment, is it possible to prevent the prompt that tells the user there is a new version and asks them whether they wish to install it? i.e. is it possible to always force the installation of a new version? ...
Score VS2005 FormsDesigner, Framework 3.0 and XAML
Horst Klein - 13 Nov 2006 2:38 PM - 4 messages
Hi Does have someone installed FrameWork 3.0 on VS2005 und used the Formsdesigner zu build XAMLs. How does this work with the old 2.0 and new 3.0 Controls? ...
Score Verification of Assembly Strong Names
Dan - 13 Nov 2006 2:25 PM - 3 messages
currently i have program that loads .net assemblies using the Assembly.Load method from the Assembly class. the assemblies have several plug ins classes that i load. I want to make sure that the assembly that i am loading is one ...
Score Accessing value of a Variable in parent from custom control
Zahid Hayat - 13 Nov 2006 12:08 PM - 10 messages
Is it possible to access value of a variable in Parent Form within control at runtime? Please provide an example (possibly in VB). ...
Score Connecting to a VPN from a dot net 2.0 application
Alan Lambert - 13 Nov 2006 11:16 AM - 3 messages
I need to write a small application (VB.NET 2.0) that gives the user a choice of several VPN connection (these may or may not already be defined in Network Connections) and then connects them to the chosen connection. ...
Score Localization and satellite assembly problem
Dale - 13 Nov 2006 6:02 AM - 4 messages
I am having a problem localizing a .Net 2.0 class library.  This library is called in a Windows.Forms application.  My operating system language is en-US. In the class library, I have a file, Resources.resx, which is set to be ...
Score Assemblies
whytwelve13 - 13 Nov 2006 4:58 AM - 4 messages
I have three projects. Project A is a class library. Project B is a class library that uses project A. Project C is a Windows application that uses both A and B. Project B is out of my control (I don't have ...
Score file:// scheme and directories
wizofaus - 13 Nov 2006 12:23 AM - 4 messages
Under firefox, if you enter in the URL file://c:/ You'll get an HTML-ized version of the C:/ directory.  Under IE, it actually redirects to a regular Explorer window showing your c:\ folder. But if you try to use .NET WebRequest.Create("file://c:/"), at least ...
Score Trying to scrape a website in C#, but failing. Looking for assistance please
Admin.TalkPC - 12 Nov 2006 10:36 PM - 3 messages
Hi people, I have now spent far too much time on this small problem, I am hopefully going to hand it over to you guys that are cleverer than I in this respect. Problem.  I need to get all firms in a certain postal code area (say ...
Score File synchro question...
Sven Rutten - 12 Nov 2006 9:16 PM - 4 messages
Hello I am coding an application which consists of a webservice and a client application. I am comparing the files on the server and the one on the client with hash-code and dates, so I can synchronize. That is working correctly. ...
Score Properties window is not shown
Evgeny - 12 Nov 2006 5:38 PM - 3 messages
Suddenly Properties Window is disappeared in IDE of VS 2005. Click on F4 or View\Properties Window does not help. It is very annoyed. Could somebody help me? Thank you Evgeny Additional details: VS 2005 is installed on a terminal server and others ...
Score Compression namespace for Array
Fla - 12 Nov 2006 2:29 PM - 7 messages
Hi! I would like to use Compression namespace for Array, i.e. use .NET native Compression for compress a String, or an Array of Integer whose elements are returned values of AscW for each char of the String. I tried with the code available @ ...
Score Able .NET ?
StarryNight - 12 Nov 2006 1:45 PM - 3 messages
Hi to all. I would to develop a mathematical software in Visual Basic .NET. Equations, system of equation, inequalities, radical, logarithm, limits, differenzial equation ecc.... ..NET is not able in this problems. A way exists in order to expand the mathematical capacity of the .NET ? ...
Score IL differnces
Henk - 12 Nov 2006 12:41 PM - 3 messages
Hello, One simple question: is there a also something like IL (intermediate language) 1.0, 1.1 and/or 2.0, or is there just 1 version of the IL, which is used by the different framework versions? greetz, Henk ...
Score how about Express environment for .NET 3.0?
R.A.M. - 12 Nov 2006 6:41 AM - 8 messages
Hello, (Sorry for my English...) I am using .NET 2.0 (I'm rather beginner) with Visual Web Developer 2005 Express Edition, Visual C# 2005 Express Edition and Visual Basic 2005 Express Edition. I have downloaded 3.0 Framework (dotnetfx3setup.exe). Shall I use 2005 ...
Next » 2 3 4 5 6 7 8 9 10