Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score Logic
John Bailo - 31 Dec 2005 7:12 PM - 11 messages
If I code my app in c#, I can port it to mono and use it in Linux. If I code my app in java, I can use it in Linux or windows. If I use Windows to code my app in c#, and use VS.NET, it costs money but is ...
Score I have 2 versions of .NET, which is being used
Dave - 31 Dec 2005 4:27 PM - 68 messages
I am developing .NET apps using Visual Studio.NET 2003, which, if I have inderstood correctly, uses .NET framework V1.1. During a recent session on Windows Update I was offered, and installed, an upgrade to .NET Framework 2.0. If I now look in Add And Remove Programs I see I have both frameworks ...
Score problem with asc function
guoqi zheng - 31 Dec 2005 2:37 PM - 6 messages
Dear sir, I am writting a binary newsgroup yEnc file decoder, I need to change character back to a byte. When I am doing this, I always get an error of: "Arithmetic operation resulted in an overflow." I did a little test code with the ASC function, I got exactly the same error. ...
Score Stuck up in printing my reports...
MAHERNOZ - 31 Dec 2005 6:12 AM - 2 messages
Hi, Happy new year to all of you, at present i am stuck up in printing. I am using ASP.net v1.1 and CR XI, i export my reports to pdf (which is saved on the server side). I don't want to save my pdf on the client ...
Score .NET Framwork Basics
intermediate - 30 Dec 2005 11:44 PM - 4 messages
What is the good online for .NET Framework basics other than msdn? ...
Score Event Driven socket programming
Michael D. Ober - 30 Dec 2005 8:55 PM - 5 messages
In VB 6 and MFC, the socket classes support event driven architectures such that when data arrives, the data arrival event is fired and you can process the code.  Is there a similar method in VB 2005 or the .NET Framework 2.0? ...
Score How to redirect o/p from onw application into another using Appdomain
ohmp05 - 30 Dec 2005 7:51 PM - 1 message
Hi All,   I am executing one application from another application using AppDomain. Is there any way to get O/p of that application to display into current application like Process? How Can I get o/p of another application to display into current application? ...
Score Notepad.exe within Windows Service ?
Zeeshan Gulzar - 30 Dec 2005 3:13 PM - 6 messages
This application is sort of remote execution. I use C#.NET I have created a windows service listening a port say 4000. When client connected to the listener; send a special packet containing executable file name with command line arguments, server start this exe at own machine(server ...
Score Problem with GPS Api
Trapulo - 30 Dec 2005 2:55 PM - 2 messages
I'm trying to develop a "location tracker" using compact .NET 2.0 compact, on win mobile 5. It seems working (it collects data every one second), but data are not "fluid" or "regular": they change with a "zig-zag", and don't draw a line. ...
Score Config in 2.0
Arne - 30 Dec 2005 2:26 PM - 3 messages
When I move an app to production I always have to change my config file. In the 2.0 framework I suddenly have two config files: SearchEngine.exe.config SearchEngine.vshost.exe.config What is the vshost file for? ...
Score TableAdapter Performance
Programatix - 30 Dec 2005 8:41 AM - 7 messages
Hi, Have anyone ever benchmark the TableAdapter performance compared to DataTable's Load method? I found out that the DataTable's Load method is about 10x faster than TableAdapter's Fill method. I used the same SELECT query and DataSet (predefined), for both test. ...
Score Problem in Signing Application DLL
Usman - 30 Dec 2005 7:26 AM - 2 messages
Hi!    In my application, i am using some interop dll's so when i went for compiling using my own strong name, it generates an error complaining that included assembly is not having a strong name, can any body suggest ...
Score acmStreamOpen always fails with MMSYSERR_INVALFLAG Why?
ThunderMusic - 30 Dec 2005 3:33 AM - 15 messages
Hi, I'm trying to use the acm APIs in VB.NET. acmStreamOpen always returns MMSYSERR_INVALFLAG. Here's how I use it : declaration is : Declare Auto Function acmStreamOpen Lib "MsAcm32.dll" (ByRef phas As IntPtr, ByVal had As Long, ByRef pwfxSrc As MPEGLAYER3WAVEFORMAT, ByRef pm_wfxDst As ...
Score How is IAsyncResult returned from HttpWebRequest.BeginGetResponse supposed to be used?
Brad Wood - 30 Dec 2005 12:04 AM - 7 messages
The sample code on MSDN for BeginGetResponse uses a ManualResetEvent.WaitOne() for detecting when the asynchronous call is finished.  This works fine, but I'd like to make multiple calls. Before delving into the complexities of ManualResetEvent.WaitAll(), I ...
Score 'System.Web.Mail.SmtpMail' is obsolete
Michelle - 29 Dec 2005 11:25 PM - 2 messages
Hi... I'm trying to convert a 1.1 application to 2.0.  Trying to send email using code like this: Dim strTo As String = "eM***@server.com" Dim strFrom As String = "infoRequ***@server.com" Dim strSubject As String = "An information request from" & _ClientName ...
Score Missing X509Certificate2UI class
Rich Schaefer - 29 Dec 2005 10:59 PM - 2 messages
I can not seem to find the X509Certificate2UI class. I have read: [link] I can not find the methods to display a certificate in the OLD locations either. ...
Score Receiving Encoding Chunked with Sockets Class
mwieder - 29 Dec 2005 6:21 PM - 11 messages
Hi - I am using the .NET sockets class to build a web client. Normally, to receive, I have the following code: Byte[] RecvBytes = new Byte[16368]; Int32 bytes; do {     bytes = m_sock.Receive(RecvBytes, RecvBytes.Length, 0); } while (bytes > 0); ...
Score Client Socket Info
gralet - 29 Dec 2005 5:58 PM - 2 messages
Hi, I want to retrive information from a System.Net.Sockets.Socket object client, like the ip address or the name of the client; how can I do that??? thanks. ...
Score Impersonation with .NET and problems with LSASS.exe eating CPU
Clifford R. Tillman, Jr. - 29 Dec 2005 5:55 PM - 1 message
Hello everybody.... I've got an interesting issue that is popping up...  We require our SQL server to be as secure as possible and therefore we have it set to mixed security.  We have 1 user that is a SQL user with one extremely complicated ...
Score A socket operation was attempted to an unreachable host ...
sme@nospam.nospam - 29 Dec 2005 5:01 PM - 1 message
I have a customer where our application is installed. The Application consists of two parts the client and the server. Both are 100% managed applications that communicate via TCP/IP, binary formatter and .NET Remoting. The main object of the server is a Session object that is configured as ...
Score multi-line button text
Ian Lazarus - 29 Dec 2005 4:49 PM - 4 messages
Hello, I have button text which I would like to have displayed on several lines, with the line break occuring in a specific place. How can this be done? The C control charactes "\n\r" are simply displayed as normal text. ...
Score C++ sytnax for thread locking
bill - 29 Dec 2005 4:12 PM - 4 messages
All, I have a WindowsForm app and am happily getting data from my DLL which is on a different thread than my UI. I have now arrived at the situation where I need to lock the data that is being communicated. ...
Score Console Writes from Multiple Threads
Michael D. Ober - 29 Dec 2005 3:27 PM - 3 messages
In a VB 2005 Console Application, can multiple threads write to the console without causing problems?  I know this is a quick way to destabilize a Windows Forms application. Mike Ober. ...
Score self contained database?
guoqi zheng - 29 Dec 2005 3:18 PM - 7 messages
I am writting a Asp.NET custom control in which I need to use some data storage where people can add/modify. I am using SQL database, but it sounds like not very nice because if I want to move that control to other location, ...
Score Closing a window
csshelton70 - 29 Dec 2005 2:45 PM - 5 messages
Hopefully, someone can help out: I'm working on a program to close a specific application after X minutes of inactivity.  I have all of the code working to identify the main window and close it, but I'm having an issue identifying when any ...
Score Assembly serialization
V&G - 29 Dec 2005 1:30 PM - 3 messages
There is many topics about the subj but no one answering the question... Is there any way to serialize an assembly? The case of reading from disk as stream seems like bad solution because there are problems to process such assembly (see ...
Score Error 193: 0cx1 when running .net windows service
Supriya - 29 Dec 2005 12:02 PM - 3 messages
Hi, I ran a windows service from a non-primary partition and got the following exception: Error 192: 0cx1. I understand this error number indicates that the exe is corrupt. I have all files related to my application, i.e. all dlls on which this windows service ...
Score Assembly.Load() cause BadImageFormatException
V&G - 29 Dec 2005 11:27 AM - 8 messages
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);             Byte[] body = new Byte[(int)fs.Length];             fs.Read(buffer, 0, buffer.Length); ...
Score Software management
Paul Aspinall - 29 Dec 2005 9:19 AM - 7 messages
Hi Does anyone know of a piece of software which can be used to keep track of software sales, customers license keys, e-mailing current customers and potential users etc.... Basically, some software to help a small developer to manage sales etc.. ...
Score Assembly.Load(Byte[] buffer) creates duplicity
V&G - 29 Dec 2005 7:23 AM - 2 messages
Hello all, I'm trying to load in run-time some assembly with its referenced assemblies. If i calling to Assembly.LoadFrom() function all works clear. The problems start when I use buffering. If I read assembly's file to Byte[] array and then call to ...
Score Connectiing to WebService problem
Sergey Poberezovskiy - 29 Dec 2005 3:52 AM - 3 messages
Hi, My VB.Net (1.1) application connects to ASP.Net (1.1) WebService that resides on ISP Server. My client successfully runs this application from 4 out of their 5 PCs. On that one PC I receive the following error whenever I ...
Score compiling web reference to x64 Release Failed
Liz Matyas - 28 Dec 2005 9:33 PM - 1 message
Hi All, When I'm trying to compile a class library with no web reference to x64 Release - I Succeed. When trying to compile a class library with web reference to x64 Debug - I Succeed. When trying to compile a class library with web reference to x64 Release - ...
Score Codedom Optional Parameter Decleration
Melih SARICA - 28 Dec 2005 9:09 PM - 1 message
I can Easly  create a Parameter for a membermethod decleration with CodeParameterDeclarationExpression .. But is there a way to create this parameter Optional ? ...
Score Login Control used with existing SQL DB
paulmac106 - 28 Dec 2005 7:57 PM - 2 messages
Hi, I'm creating my first 2.0 web application. I want to use the login control to validate users using my existing SQL 2000 database (using email address and password) I can't find a tutuorial to do this...they always seem to want me to ...
Score How can I "script" changes to .net trust levels?
hayesgitsupport - 28 Dec 2005 6:54 PM - 3 messages
I am trying to "fix" a program for a friend of mine.  He has an applet that starts a TWAIN scanner through a web interface.  Problem is, for some reason, his software will only work if the .NET security for "my computer", "local ...
Score ADO.NET on x64 error: Unable to find the requested .Net Framework Data Provider. It may not be inst
John Yung - 28 Dec 2005 6:47 PM - 7 messages
All, I am running a middle tier component (MarshalByRefObject) as a Windows Service (the Windows Service starts a Console Application which hosts the Middle Tier component). When the services is running under a non-64bit machine, it runs without any problems (accepts client connections and API calls). ...
Score The parameter is incorrect error
radha0809 - 28 Dec 2005 5:47 PM - 3 messages
I have a VB6 COM object. The COM object is working fine when I use it in VB.net. But when I use the same code in ASP.net 1.1 I am getting "The parameter is incorrect" error. I have the AspCompat="True" on my web page. Any help on this would be ...
Score Is there an Event when 'Suggest' item in combobox is changed?
stoneyowl - 28 Dec 2005 5:00 PM - 1 message
I need to display some ancilliary information for each item in a combobox, as the user scrolls through the items.  When the 'AutoCompleteMode' is set, is there any way to detect the value of a selection in the suggeest dropdown? ...
Score Where can I locate DLLs so other s/w picks them up
Valerie Hough - 28 Dec 2005 4:16 PM - 4 messages
Hi, I have several .NET applications developed with c# that require some Crystal Reports runtime DLLs like: CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, etc. etc Currently I have just placed these DLLs in the same directory as my application EXEs and DLLs, which works, but I would rather put them ...
Score trying to extract .exe from resource
Nige - 28 Dec 2005 1:05 PM - 2 messages
I have an exe embedded in my vb.net application and I'm trying to extract it at runtime, so i can execute it and then remove it. my code is below strm always is Nothing any ideas. thanks in advance ...
Score Web Service
Web Services - 28 Dec 2005 10:07 AM - 2 messages
wheneve i open ASP.Net Webservice template it gives me error message that V.S. has ditected that the specified Web server is not running ASP.NET version 1.1 you will be unable to run ASP.NET Web Applications or servies. so ...
Score Help needed on implementing timer functionality in web application
AVL - 28 Dec 2005 5:09 AM - 3 messages
Hi, I'm developing an online fun game called tambola... The requirement is as follows Each logged user will have a ticket generated for him.. The system should display the numbers from 1 to 99 after every 10 secs.... Presently, I've used a timer control to display the numbers after every 10 ...
Score DataGridView (.NET 2.0 Control) question about formatting
g - 28 Dec 2005 1:59 AM - 5 messages
Hi, I have what I think should be a simple question about formatting a column in my datagridview control as currency. I used Visual Studio 2005 to add a column to my DataGridView control named "Price".  I set the DefaultCellStyle.Format value to "C2" indicating that I ...
Score Open a port for local access only
Gunnar Liljas - 28 Dec 2005 12:18 AM - 3 messages
Hi! I want to create an application with a small embedded web server, to serve web pages (HTML, perhaps even using ASP.NET). Creating the server part itself is not a problem (System.Web.Hosting + sockets etc), but... 1. The server should only be available for localhost. No external access ...
Score Last effort to solve threading issue
Brad Wood - 28 Dec 2005 12:10 AM - 9 messages
Been working off and on with this for quite some time with no luck. Last request before scrapping it. Using a web service running framework 1.1 I'm creating threads and making http calls within them. The problem I'm having is that I get 2 exceptions (can't narrow down to ...
Score Relocated solution to new PC, Assembly missing error
Michael Jackson - 27 Dec 2005 10:21 PM - 1 message
I've relocated my .NET 2003 solution to a new machine. After resolving missing references, I built the solution. Everything compiled fine. When I run the app, I immediately get an error "File not Found error". It says the Assembly "LicenseUtilities" or some of its dependents cannot be found. ...
Score Appearance/Font category
Steamboat - 27 Dec 2005 9:33 PM - 3 messages
In VS 2005, I want to categorize a property (e.g. VerticalTextSpacing) under the Text category, which is a category under Appearance.  I can easily put a property in the Appearance category by adding the following attribute:  Category("Appearance").  But, how would I go one level deeper?  ...
Score Web Exceptions
Prasad Dannani - 27 Dec 2005 9:32 PM - 2 messages
Hi,     I was written a component which will connect to the secured sites and retreive the info required. I am using this component with all windows&web applications and in windows&web services.      For every 100 connections 40-80 % of connections are getting failed by ...
Score Having framework 1.1 and 2.0 on the same machine.
UJ - 27 Dec 2005 7:51 PM - 3 messages
I just want to make sure that I can have both 1.1 and 2.0 on the same machine and continue to develop in 1.1. I'm using VS.Net 2003 and SQL Server 2000. I want to load the client tools for SQL Server 2005 and it says it ...
Score Denied Acces to HKEY_CLASSES_ROOT\Record when Regasming
richard.Anaya - 27 Dec 2005 6:00 PM - 2 messages
I require some help with an issue with Microsoft .NET.  Some users experience a problem with their installation of our product and the registration of some classes with regasm (so COM can have access to them).  They get the error message: ...
Score Activedirectory - get objectschemas?
Peter Widmer - 27 Dec 2005 3:19 PM - 1 message
Hi all, I'm writing a usermanagement for active directory. Now I'm wondering if it is possible to retrieve the schemas of user, group and the other types? I need this to get the types of the attributes... Thank you alot! ...
Score Regarding usercontrol in .NET
sonali_reddy123 - 27 Dec 2005 3:02 PM - 1 message
Hi all, I have a problem regarding use of a usercontrol in .NET. My usercontrol consists of two listviews which I say as source and destination lisviews which contains the files and folders. I select files from source view and transfer it to the destination ...
Score Byte Array from DateTime Array
Daniel - 27 Dec 2005 2:19 PM - 5 messages
I'm trying to serialize a DateTime [] into a Byte []. Buffer.BlockCopy doesn-t work because DateTime is not a primitive type. Is there a way to cast from DateTime [] to Byte [] in the "safe" world? ...
Score how do I search inherit generic Class?
ken - 27 Dec 2005 8:19 AM - 2 messages
hellow , all I want  list of Generic inherited Type in DesignTime It is as follows to try. ----------------------------------------------------------------------------------------------- I made two of the following. public interface ITest<T> public class TestImplement : ITest<Somthing> I wrote following Code in TypeConverter Class ...
Score CodeDom in 2.0 and Asymmetric Access Modifiers
joao - 27 Dec 2005 2:52 AM - 1 message
I'm trying to generate the following in CodeDom but can't figure out how: public Class Class1 {      internal string m_Name;      public string Name      {           get { ...
Score DNS reverse lookpup in asp.net
shen.chang.cs - 26 Dec 2005 5:22 PM - 3 messages
Hi all Anyone knows how to do a DNS reverse lookup by C# .NET code behind? thanks ...
Score System.Timers.Timer
shayke - 26 Dec 2005 4:33 PM - 5 messages
Hi all Is it true that System.Timers.Timer runs on a seperate thread, using the thread pool. if so, it means that the elapsed callback will never be on the context that the timer was created in. What do i have to do to achieve that : receive the elapsed event handler in ...
Score FileNotFoundException when porting from Dev 2003 to Dev 2005
Barakme - 26 Dec 2005 2:56 PM - 5 messages
Hello, I developed an application using Remoting in Dev 2003 using the security sample code from Microsoft samples to add SSPI functionality and secure my messages. When the .NET framework 2.0 was released I have learned that now securing ...
Score Error occured while initializing fusion.
Erencans - 26 Dec 2005 2:34 PM - 1 message
Hi to all. I need help pls. I  use XP Pro OS. I could want to load new version of .NET 2005. But when i uninstall old version i did a mistake that i've forgotten MSDN for .NET 2005. ...
Score Create remote object to run in stathread apartment
sanjeev - 26 Dec 2005 1:38 PM - 5 messages
We are attempting to the following - Create an activex control in a remote object and call methods in the control. The only way I can get the activex control instantiated is by spawning a new worker thread, setting its ApartmentState to stathread ...
Score How to delete all the files in the specified folder?
Ivan Abramov - 26 Dec 2005 11:55 AM - 4 messages
by meanse of System.IO namespace? (The task is being doing easily by screepting runtime.) Thanks in advance. ...
Score Choosing the right Oracle Client
Bora - 26 Dec 2005 11:49 AM - 5 messages
Hi, There are two different Oracle Client installed on my computer. And i'have an application that have to access Oracle. But it chooses the wrong Oracle Client while it's executing. How can i set the right Oracle Client for .Net Framework. ...
Score Problem writing an UTF-8 file
Jaime Stuardo - 26 Dec 2005 11:42 AM - 2 messages
Hi all... I need to create a CSV file from an application. That file has latin characters such as á, í, ñ and so on. The separator character of the CSV is a semi-colon (;) When I create the file using: ...
Score Is it possible to have Visual Studio Team System working with .NET
Pravin - 26 Dec 2005 5:46 AM - 5 messages
Is it possible to have Visual Studio Team System working with .NET 1.1 instead of .NET framework 2.0? ...
Score Regarding threading -ManualResetEvents
sonali_reddy123 - 25 Dec 2005 1:24 PM - 1 message
Hi all, I have a problem regarding  use of manualreset events in .net. I have a developed a sample appliation in which entries from the listview which I say is a queue for my processes.I want to schedule ...
Score Configuration settings and resulting error message
GW - 25 Dec 2005 11:40 AM - 5 messages
Hi all, I just would like other users out there to help me confirm some behaviors with the following configuration file layout: <configuration>    <startup>       <supportedRuntime version="v1.1.4322"/> ...
Score Hiding a dialog without closing it
Michael Wong - 25 Dec 2005 9:50 AM - 11 messages
Hi, I am desperate searching for an answer to this problem. I have shown a dialog (using ShowDialog) in my main form. As I'm using a virtual desktop, I'm able to switch to another desktop (which will hide or show the dialog and main form, depending if we are ...
Score 2.0 v 1.1
news - 25 Dec 2005 8:40 AM - 2 messages
Is it worth upgrading to .NET 2? I have been using 1.1 with C# and XML for about 2 yrs. It all works aside from viewstate errors (after 10 mins of the Page being idle) I have not used at all 2.0. ...
Score MemCpy revisited (in Unsafe code)
Johannes Bialek - 25 Dec 2005 4:50 AM - 2 messages
Hi, Buffer.BlockCopy() and Array.Copy() seem do be fine for Arrays, but what to do about copying memory in unsafe code? The goal is simple, I just want to scroll the content of an Image vertically for some lines.. (using the CompactFramework, but seems to be of general ...
Score Earn money Online - without risk!
Earn money Online - without risk! - 25 Dec 2005 1:53 AM - 1 message
Earn money Online - without risk! For all people, who can utilize money. Are you on the search for a lucrative source of income?  Would you like to work of at home out of, without yourself you someone makes directions?  Would you yourself like to ...
Next »