Home All Groups Group Topic Archive Search About

General .NET discussion

microsoft.public.dotnet.general
Score What is worth logging?
Jimmy - 19 Aug 2006 3:36 PM - 4 messages
I'm working on conventions for a large e-commerce application. Sure, I can tell the R&D to "log everything" but it's unlikely to be done. Waiting to hear from your experience - what info proves worth of ...
Score Advanced message box
lcarsdata - 19 Aug 2006 2:58 PM - 2 messages
I posted this on one of the VB groups but they told me that dotnet was different, anyway. Is there a way to chose your own icon when displaying a message box. I know how to use it with one of the built in icons, however cannot work ...
Score some problems with ORM concept....what do you think?
Bruce One - 19 Aug 2006 12:41 PM - 13 messages
For all the ORM i have searched around, I have always found two big problems: 1) To update or delete a set of records you must first bring it to memory. If you are inside a loop and have to do it n times, then you have to query ...
Score translating client-server app into web app
MPA - 19 Aug 2006 6:24 AM - 2 messages
Hi, We are a small company with no experience in web development. We are considering translating our main client-server product into web application or web service using DOT.NET. Our app is basically a tree representing the employees and departments of our customers with some tabs where the ...
Score System.Runtime.Remoting.Proxies
SenthilVel - 19 Aug 2006 4:06 AM - 3 messages
Hi All i am getting an error in remoting proxies like the below : Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) ...
Score Replace All XML Data
Derek Hart - 19 Aug 2006 12:34 AM - 2 messages
For testing purposes, I need some code that will loop through all attributes and elements in an XML file, and replace the data with the element or attribute name?  Does anybody have code that will do this, looping generically through every node? VB.Net code would be appreciated so I can ...
Score How do I reference an assembly located in the GAC?
rsine - 18 Aug 2006 5:53 PM - 3 messages
I created my first shared assembly and installed it to the GAC using gacutil.  Now, I have another assembly I want to reference the shared assembly.  Adding the reference has me a bit stumped since I cannot select it from the assembly folder.  How do I go about adding a ...
Score Output parameters for dynamic SQL
Nemisis - 18 Aug 2006 12:46 PM - 2 messages
Hi everyone, I am saving a record to SQL and want to return the ID of the record added as an output parameter, can you do this in dynamic SQL, without the use of a stored procedure?? i.e. comm = new sqlcommand ...
Score How best to run periodic code on ver 2.0?
Bill - 18 Aug 2006 2:58 AM - 4 messages
I need to run a web server function every 5 minutes and am running SQL server too. What is the best approch to do this ? call the code from a SQL job Build a Windows service? Something else? or can  a .net server run code by itself without anyone logged in ...
Score Change a Windows Service Startup type
rqcoder - 18 Aug 2006 12:27 AM - 3 messages
Is there a way to change a Service's startup type somewhere in the .net framework? I've been messing around with the System.ServiceProcess namespace which allows me to start, stop and pause services however if the service's ...
Score Regex Help
Jules - 18 Aug 2006 12:03 AM - 37 messages
All, how do I describe a string consisting of any number of characters, with an optional (but unique when occuring) end-of-line expression '/'? With groups if possible, as in "(?<sentence>.*(?<eos>[^\\][\\]{1}$)?)" Say I have the phrase 'My Taylor is /' as input; I'd like 'sentence' ...
Score directx august 2006
gerry - 17 Aug 2006 8:07 PM - 11 messages
i just downloaded and installed the directx aug 2006 sdk the machine i installed it on had both vs2003 & vs2005 the visual studio extensions were installed into vs2003 but not into vs2005. does the directx sdk not integrate with vs2005 ? ...
Score The Opposite of IFormattable
Ron M. Newman - 17 Aug 2006 6:39 PM - 5 messages
Dear C# Sages, For my own persistence purposes I need to be able to load an object from some source and re-fit it with its value that's represented as a string. Many objects support "Parse" which takes a string input and sets the value ...
Score Deploying framework in deployment package
Steve Long - 17 Aug 2006 6:03 PM - 5 messages
Hello, I 'm not sure if this is the correct forum to post this question in but, I using MS' suggested method of using their setup.exe and settings.ini to deploy dotnetfx.exe with my deployment package. My question is, there are ...
Score Using C# dll as COM in an MFC application
Janiv Ratson - 17 Aug 2006 5:17 PM - 18 messages
Hello, I have written a C# dll in VS2005. One interface and class are exported using Interop Services. I want to use this c# dll in my MFC application, using VS2003. It compiles after I imported the dll to my MFC app. ...
Score Access to Port COM1 is denied
Lee - 17 Aug 2006 5:17 PM - 6 messages
I am getting this error trying to run a win forms .net app using the .net 2.0 serial port control. This occurs when the app tries to open the port. I knwo this is some type of security access problem but I have no clue where to fix ...
Score Catch bugs and generate logs
giannik - 17 Aug 2006 4:43 PM - 4 messages
Does anybody know of any tool or .net components  that can trap errors in .net applications and send error reports. I found one for delphi : [link] but I am looking for something similar  for .net apps. ...
Score How to convert asp.net control to html markup/literalControl?
gary - 17 Aug 2006 2:11 PM - 2 messages
hi guys: I want to convert asp.net control into html markup or literal control, so that I can write them into a empty aspx page. Is there any way to do it? HtmlForm.InnerHtml doesn't support converting not literal control to html ...
Score What's the "System" process doing?
Henrik - 17 Aug 2006 8:21 AM - 9 messages
Hi Is there any way to see what the System process is doing? We have developed an application running at a production site to measure and optimize the production. The application needs to be responsive at all times during production. ...
Score Providing user feedback in windows forms
Rykie - 17 Aug 2006 7:30 AM - 2 messages
I am primarily a web developer, but have to develop this windows app. It works a treat, but it has some places where it lags and some long running processes, which I want to provide user feedback to the user ...
Score saving xml file to client machine
harriegovin - 17 Aug 2006 6:44 AM - 2 messages
Hi, Here is the scenario. I have a web application written in vb.net. One of the functionalities of the application is to save the recordset in an xml format on to the client machine. The xml file needs to be saved on the client machine ...
Score PropertyGrid
a - 17 Aug 2006 4:11 AM - 2 messages
How does the WinForms ProprtyGrid work? Do they use reflection/Reflection.emit, to get the props and their values? Can someone tell me? ...
Score Downloading file program fails when IE7 installed
Glenn Graham - 16 Aug 2006 10:44 PM - 2 messages
My web download program stopped working when IE7 beta 1-3 was installed. Error when calling OpenRequest in CHttpConnection. The Error is Created by ASSERT(hFile != NULL) in mehtod CInternetFile::CInternetFile. My call //pServer = session.GetHttpConnection(strServerName, nPort);   pServer = session.GetHttpConnection(strServerName, nPort, ...
Score Random access file IO - what is wrong with this code?
Phil - 16 Aug 2006 9:23 PM - 3 messages
Problem code: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Diagnostics; namespace Streams {     class Program {         static void Main(string[] args) {             const string file = @"C:\Temp\file.txt"; ...
Score Profit for C#
Bruce One - 16 Aug 2006 6:24 PM - 8 messages
This seems to be a good tool for profiling C# code. What do people around here use to profile C# code? Ive seen Team System for Dev is coming with an own profiler, but its far from most people affordance, so having a good free option is always good.... ...
Score Help with valid XPath?
Alexander Korol - 16 Aug 2006 1:44 PM - 3 messages
Hello I am trying to parse the following xml fragment in xml file: <configuration> <runtime>     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">       ..       <probing privatePath="shared;deployed;v1compatibility" /> ...
Score Data Migration
WPedersen - 16 Aug 2006 1:22 PM - 3 messages
Hello - I'm trying to migrate data from an Access 2000 database to SQL 2005 Express.  Both databases have the same schema. Most primary keys are Auto Increment fields. I'm having the issue that even if I set primary key manually in my code, the Auto Increment rules ...
Score remote Debugging vs2005 - impossible to configure
yonialhadeff - 16 Aug 2006 12:44 PM - 3 messages
Hello, I tryed to configure remote debugging but when i go in the properties of the project the properties for debugging are missing I should have this screen [link] ...
Score Remoting - WIndows Service problem
Remy De Almeida - 16 Aug 2006 12:25 PM - 2 messages
Hi ,     Sorry i am posting this again as no one seems have taken notice of this in the distributed appln forum     I have a remote server which works fine. The Client ans server work with ...
Score OT....kinda....
smerf - 16 Aug 2006 10:11 AM - 3 messages
I could not find a more appropriate place for this post and thought that the coders here may have some ideas that would be useful. I am using a webservice via a custom VB.Net client application that requires that we register an IP address to use the service and use the service from ...
Score Deploying .Net Application in visual studio 2005
Nerd - 16 Aug 2006 6:21 AM - 4 messages
All, I am trying to deploy my .Net 2.0 web application and I am looking for the best approach. The setup and deployment project seems to copy the whole source files also. Is there a better way to do this? Or am I ...
Score gridview bombs on update - converting rowversion string to byte[]?
BenG - 15 Aug 2006 8:03 PM - 6 messages
Hi. I have a gridview control on a web form (asp.net 2.0) that's bound to a objectDataSource. The objectdatasource which is bound to a class I've written in the DAL to read and update the database. The grid contains three ...
Score Dialing a modem and playing a soundclip from c# web form code
Brent - 15 Aug 2006 7:38 PM - 6 messages
Hi, I want to recreate my own version of [link] .. So basically I want to start with a basic, make the modem dial a number and play a soundclip to the person that answers. Can someone point me in the ...
Score Cost of using web.config
John Bailo - 15 Aug 2006 7:21 PM - 5 messages
What's the cost of using a web.config key in a web method? Is the value cached at start up?   Or at first run?   Or read on each access? Is web.config always "read off the disk" or can the file be cached? ...
Score A Basic Question
sherri - 15 Aug 2006 6:20 PM - 4 messages
I was wondering what the difference was between calling a method this way: SomeMethod() and this way: this.SomeMethod(); when calling one method from another within a form. Is one preferred over the other? When should one be used over the other? ...
Score All calling methods
John Bailo - 15 Aug 2006 4:07 PM - 3 messages
It's easy to find a method in VSS.NET with the drop down. However, is there an easy way to find all places in the code where a method is called? Ordinarily I just use text search.... ...
Score vb6 to vb.net upgrade question
Eric - 15 Aug 2006 2:59 PM - 2 messages
Hi I am upgrading some vb6 code to vb.net and I am having difficulty correcting a casting error while working with a COM object. In vb6 the code is:     Dim oNewED As EmbeddedDirective     Set oNewED = oMsgServer.EmbeddedDirectives.New ...
Score How to get Team Suite cheaper?
Halimaji Nijazi - 15 Aug 2006 1:38 PM - 3 messages
Hi newsgroup We like to use the team suite in our company. The team suite costs CHF 18'000.-- per License. In our company we need 3 Licences, this will mean that we have to pay CHF 54000.--. This is to much for us, so my question is. ...
Score Click Once and the .Net framework silly question
Chris Dunaway - 15 Aug 2006 1:15 PM - 3 messages
When deploying an app using the 'Publish' feature of VS2005, does the destination web server need to have .Net framework 2.0 installed? Chris ...
Score Sending Email through VB.Net...
asad.naeem - 15 Aug 2006 1:15 PM - 2 messages
Try             Dim MMsg As MailMessage = New MailMessage             'MMsg.SubjectEncoding = Encoding.Default             MMsg.BodyEncoding = Encoding.Default ...
Score When debug, the program does not respond
shai - 15 Aug 2006 10:05 AM - 3 messages
Hi, I have a program that I did not write but I need to add it some features. The program is written in VB.NET 1.1. The program use COM Object. When I run the program it works well, but when I try to debug it with F11, ...
Score Handle Leaks
Ian - 15 Aug 2006 9:19 AM - 4 messages
Hi, Is anybody aware of problems in .NET where the handle count of an application increases over time? We have a server application that is hosted in a Windows Service and accepts socket connections from distributes processes.  Each connection then runs in ...
Score Simple inventory system
Henrik - 15 Aug 2006 8:01 AM - 4 messages
Hi all, I'm a .net developer working with developing automation equipment for the sawmill industry. The main focus of our product line is mechanical and measurement equipment but our clients start asking us for an inventory system to keep track of their produced volume. ...
Score Creating and Getting list of websites/Virtual Directories
lucky - 15 Aug 2006 7:41 AM - 3 messages
Hello Guys, after long long time. i'm back again with some questions. right now i'm developing a code that fetch the list of websites from IIS 5.0 or later and also cretes the Virtual Directory for a website in ...
Score webcasting - php vs asp.net
Deepblue - 15 Aug 2006 2:55 AM - 9 messages
I need to develop a webcasting solution. (mostly realtime broadcast) I am considering the apache/php vs iis/asp.net. I am a MSFT guy myself (vc++, vb6, asp.net) but new to multimedia(video streaming...etc). My partner likes php ...
Score Using the form handle
RichG - 14 Aug 2006 10:44 PM - 6 messages
I'm looking for a way to bring an open form to the top.  I know that is I open a form directly with form1.show() and then later, while the form is open I do another form1.show(), that I will get original form to pop to the top. ...
Score ComboBox Behavior
sherri - 14 Aug 2006 8:58 PM - 2 messages
I currently have a combo box that will jump to a selection when the user inputs some text. The problem I am having is this. The 2-digit numerical values displayed in the combo box are padded with a leading zero if the number is less than 10. The problem with this is ...
Score Why Serialization
Henry Jones - 14 Aug 2006 8:33 PM - 6 messages
I read a bit on Serialization and came up with the following definition: The System.Runtime.Serialization namespace contains classes that can be used for serializing and deserializing objects. Serialization is the process of converting an object or a graph of objects into a linear sequence of bytes ...
Score The control appereance in a Graphics or Bitmap object.
Hamed - 14 Aug 2006 8:19 PM - 16 messages
Have I posted the message to wrong newsgroup? Or Does the question is so much strage? Would someone please kindly direct me to a true newsgroup or resource? Best Regards Hamed ...
Score Difference between file version and assembly versions
Laurence - 14 Aug 2006 8:08 PM - 6 messages
In VS.2005 using VB.NET There are two versions on every project, The Assembly Version and the File Version. Why are there two different versions? As far as I can tell, there is not need for two versions. The assembly is the file, isn't it? ...
Score Newbie:How to get physical path of a virtual directory under non-default web site ?
Navin Mishra - 14 Aug 2006 7:37 PM - 3 messages
Hi,   I'm new to WMI. How I could get get physical path of a virtual directory under non-default web site and also Application Pool configured for that virtual directory ? I tried various things but no luck. Thanks in advance and regards ...
Score Unhandled exception - get local variable values
Oleg.Ogurok - 14 Aug 2006 6:55 PM - 2 messages
Hi there, Let's assume the following situation: An application is working in DEV environment but failing in production because of a specific combination of data not handled properly. Things like that are sometimes pretty hard to catch or predict since ...
Score Strange Multiplication Rounding Results in .NET 1.1
bcumminsr - 14 Aug 2006 6:45 PM - 4 messages
Hi, Does anyone have any idea why in the immediate window in Microsoft Development Environment 2003 version 7.1 that ?240*4.1 = 983.99999999999989?  I know that math.round() will correct... but these results seem crazy.  Any ideas? ...
Score Changing VB.NET 2003 connection from SQL Server 2000 to 2005 database.
leo813 - 14 Aug 2006 6:28 PM - 4 messages
I'm having a difficult time getting my current VB.NET 2003 application to point to my upgraded SQL Server 2005 database. I performed the upgrade from SQL Server 2000 to SQL Server 2005 on my local computer and when I try to reconnect my VB.NET project to SQL Server 2005, I ...
Score basic question
CSharpguy - 14 Aug 2006 5:13 PM - 5 messages
I'm not sure if this is the correct forum or not, but I have a basic question.  Currently we have are doing calculations via stored procedures and then returning the results back to the client in either a web page or a ...
Score DEVMODE Structure from C to C# something is missing
ThunderMusic - 14 Aug 2006 4:46 PM - 2 messages
Hi, I have a structure I have to use called DEVMODE for when I want to call EnumDisplaySettings. you can see the C struct at the address below : [link] ...
Score Application unhandled exception
Shehab Kamal - 14 Aug 2006 4:18 PM - 4 messages
In Main I register ThreadException to handle unhandled exceptions Application.ThreadException += new ThreadExceptionEventHandler(App_ThreadException); The method will show a MessageBox or a Form instead of .NET 2 default dialog. However I don't get the code work. What am I missing? ...
Score ASP .NET 2.0 Performance
Roman - 14 Aug 2006 3:57 PM - 5 messages
I am looking to improve the performance of my application.  The result page is 17k but it takes years to come up.   There is an underlying sql 2005 query, but results come back rather fast.  It seems to me that ...
Score silly questions for an expert in OOP
Nemisis - 14 Aug 2006 3:08 PM - 4 messages
Hi everyone,  i have currently got a classic asp web application and am wanting to upgrade it to asp.net 2.0, and also take advantage of OOP. Our current application is not using OOP so you can imagine how hard it ...
Score Application Framework based on .NET for migration of Access Contact DBs
nojetlag - 14 Aug 2006 2:50 PM - 2 messages
I was wondering if there is a general framework based on .Net that could be used for migrating Contact databases (MS Access) to a web enabled world. I was looking into a migration into CRM 3.0 however it seems still to ...
Score Another Newbie Question
sherri - 14 Aug 2006 2:23 PM - 2 messages
I need to be able to delete a tree node by clicking on the Delete key on the keyboard. (Basically, clicking on the Delete key calls a method which performs the delete.)  An explanation and/or example would be ...
Score Newbie Question
sherri - 14 Aug 2006 2:21 PM - 3 messages
I am very new to .NET / C#. What I want to do is call a method which performs a search when the ENTER button on the keyboard is pressed. The way the application currently works is that I enter text into the ...
Score Detecting keypress in console application
Ajak - 14 Aug 2006 2:12 PM - 2 messages
Hello, How do I scan for keypress in vb.net console application? E.g: A menu is presented to user where they can proceed by pressing the corresponding letter (A, B C...etc), without having to press 'Enter' key. Is this possible? ...
Score Building a solution outside of visual studio
Mani - 14 Aug 2006 2:00 PM - 4 messages
Can you build a solution from the command prompt? like so "c:\ build mysolution.sln"     or do you always have to manually open the solution in Visual Studio and click "build" Second Question is if you can build from the command prompt, can you ...
Score Linking errors after conversion from VS2003 to VS2005
Tammam - 14 Aug 2006 1:19 PM - 2 messages
Hello All, I had a solution composed of managed/unmanaged C++ , C# projects. It builds with no problem in VS2003 but after converting the solution to VS2005 i get many linking errors such as LNK2020 LNK2028. Below is a little bit of the ...
Score VS2005 IDE problem with dispatch map in mfc ocx project
Gwarg - 14 Aug 2006 12:31 PM - 4 messages
Hello I hope someone has encountered this and knows what the problem is. I've taken over an mfc ocx project and i am normally not an mfc programmer. I was trying to change settings to allow me to save the ocx in another ...
Score DB naming guidelines
Bruce One - 14 Aug 2006 11:26 AM - 2 messages
Hey, Does anyone know any place where I could find information on naming guidelines for tables, fields, PKs etc ? Ah, what do people think of a table that has 200, 300 fields in it (considering all fields do relate to the table)? Should it be "split" into 2, ...
Score Using .NET dll as COM component in MFC MSI Application
Janiv Ratson - 14 Aug 2006 10:39 AM - 4 messages
Hello, I have written a class library (dll) using csharp and VS2005. Now, I want to use this class as COM in my MFC application. I'm looking for a step-by-step information on how to do it, consiting the ...
Score How to supress deleting a Row
Hamed - 14 Aug 2006 9:34 AM - 10 messages
Hello I have a DataGrid that a is bound to a DataTable. Some of the rows in the DataTable should not be deleted. How can I prohibit deleting of some identified rows? The problem could be specified in the following format too: ...
Score Windows service suddenly stops work.
Niron kag - 14 Aug 2006 6:15 AM - 4 messages
Hi, I wrote a windows service in c# in .NET 1.1 and SQL Stored Procedures, and I run it on Microsoft windows server 2003 service pack 1. The service works every 10 minutes and pass data between SQL tables. ...
Score How do I get the a timedate value to the ws timer clock ?
Gordon - 14 Aug 2006 12:04 AM - 4 messages
Hi; I am trying to give my CPU some relief from comparing a group of values to now() while looping through an array. I tried using the windows.system.timer but i have been unable to find the correct interval that will allow a match ...
Score Exception vs Boolean
Shehab Kamal - 13 Aug 2006 1:46 PM - 44 messages
Which approach is better: 1) Use a method that returns true/false (the method will log the exception that lead to false using log4net for example) OR 2) Use a method that returns void and throws an exception in case of failure? ...
Score Custom deployment even possible?
Gene - 13 Aug 2006 1:17 PM - 2 messages
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs to prompt user to select another location to send a data ...
Next »