Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > december 2005

Filter by week: 1 2 3 4 5

Logic
Posted by John Bailo at 12/31/2005 11:12:14 AM
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 efficient. If I use Linux or Windows to code my app in java, and use Eclipse, it do...more >>


problem with asc function
Posted by guoqi zheng at 12/31/2005 8:37:40 AM
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. See my c...more >>

I have 2 versions of .NET, which is being used
Posted by Dave at 12/31/2005 8:27:25 AM
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 framewor...more >>

Stuck up in printing my reports...
Posted by MAHERNOZ at 12/30/2005 10:12:33 PM
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 side (because they are a mix of windows and linux!). I did upto here. I saved my p...more >>

TableAdapter Performance
Posted by Programatix at 12/30/2005 4:41:50 PM
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. For the DataTable's Lo...more >>

Problem with GPS Api
Posted by Trapulo at 12/30/2005 3:55:12 PM
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. It seems that my application bad receives updated dat...more >>

.NET Framwork Basics
Posted by intermediate at 12/30/2005 3:44:11 PM
What is the good online for .NET Framework basics other than msdn? ...more >>

Event Driven socket programming
Posted by Michael D. Ober at 12/30/2005 1:55:05 PM
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? Thanks, Mike Ober. ...more >>



Problem in Signing Application DLL
Posted by Usman at 12/30/2005 12:26:06 PM
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 me a solution...more >>

Notepad.exe within Windows Service ?
Posted by Zeeshan Gulzar at 12/30/2005 7:13:03 AM
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 itself...more >>

Config in 2.0
Posted by Arne at 12/30/2005 6:26:03 AM
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?...more >>

acmStreamOpen always fails with MMSYSERR_INVALFLAG Why?
Posted by ThunderMusic at 12/29/2005 10:33:56 PM
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 ...more >>

How is IAsyncResult returned from HttpWebRequest.BeginGetResponse supposed to be used?
Posted by Brad Wood
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 tried making use of the propertie...more >>

Missing X509Certificate2UI class
Posted by Rich Schaefer at 12/29/2005 4:59:55 PM
I can not seem to find the X509Certificate2UI class. I have read: http://download.microsoft.com/download/e/3/8/e38818ae-31e5-462b-b9ad-e6d3cd6ad7c1/Breaking%20Changes%20Beta2%20to%20RTM.doc I can not find the methods to display a certificate in the OLD locations either. I am using Visual Stu...more >>

multi-line button text
Posted by Ian Lazarus at 12/29/2005 4:49:05 PM
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. Thanks ...more >>

'System.Web.Mail.SmtpMail' is obsolete
Posted by Michelle at 12/29/2005 4:25:45 PM
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 = "eMail@server.com" Dim strFrom As String = "infoRequest@server.com" Dim strSubject As String = "An information request from" & _ClientName Dim strBodyContent As String =...more >>

Receiving Encoding Chunked with Sockets Class
Posted by mwieder NO[at]SPAM gmail.com at 12/29/2005 10:21:44 AM
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); However, if the transfer encoding of what is be...more >>

Client Socket Info
Posted by gralet at 12/29/2005 9:58:02 AM
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. -- __________________ Luis Graillet Ramos...more >>

self contained database?
Posted by guoqi zheng at 12/29/2005 9:18:37 AM
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, I have to move the SQL database as well. Is there a self contained...more >>

Console Writes from Multiple Threads
Posted by Michael D. Ober at 12/29/2005 8:27:04 AM
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. ...more >>

C++ sytnax for thread locking
Posted by bill at 12/29/2005 8:12:31 AM
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. Unhappily, again, I can find no examples using C++ to lock threads in a .NET Windows ...more >>

Closing a window
Posted by csshelton70 NO[at]SPAM gmail.com at 12/29/2005 6:45:18 AM
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 other secondary window other than the main window of t...more >>

Assembly serialization
Posted by V&G at 12/29/2005 5:30:33 AM
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 http://groups.google.com/group/microsoft.public.dotnet.fra...more >>

Error 193: 0cx1 when running .net windows service
Posted by Supriya at 12/29/2005 4:02:02 AM
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 exe depends in the same fo...more >>

Assembly.Load() cause BadImageFormatException
Posted by V&G at 12/29/2005 3:27:17 AM
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read); Byte[] body = new Byte[(int)fs.Length]; fs.Read(buffer, 0, buffer.Length); fs.Close(); Assembly assembly = Assembly.Load(body); This code cause BadImageFormat...more >>

Assembly.Load(Byte[] buffer) creates duplicity
Posted by V&G at 12/28/2005 11:23:15 PM
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 Assembly.Load() function then each time Load...more >>

Connectiing to WebService problem
Posted by Sergey Poberezovskiy at 12/28/2005 7:52:02 PM
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 call a method of the service: System.Net.WebException: The un...more >>

ADO.NET on x64 error: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Posted by John Yung at 12/28/2005 1:47:23 PM
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 = connection...more >>

trying to extract .exe from resource
Posted by Nige at 12/28/2005 1:05:50 PM
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 Dim asm As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAsse...more >>

Login Control used with existing SQL DB
Posted by paulmac106 at 12/28/2005 11:57:08 AM
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 create this new aspnetdb database and use roles and me...more >>

Where can I locate DLLs so other s/w picks them up
Posted by Valerie Hough at 12/28/2005 11:16:19 AM
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, b...more >>

How can I "script" changes to .net trust levels?
Posted by hayesgitsupport at 12/28/2005 10:54:33 AM
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 intranet" "internet" Trusted sites" and "untrusted sites" is set ...more >>

The parameter is incorrect error
Posted by radha0809 NO[at]SPAM gmail.com at 12/28/2005 9:47:19 AM
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 appreciated. Thanks in Advance Anu ...more >>

Web Exceptions
Posted by Prasad Dannani at 12/28/2005 3:02:23 AM
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 saying various excep...more >>

Web Service
Posted by Web Services at 12/28/2005 2:07:02 AM
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 that i again installed IIS and DotNet Famework but it again gives me sa...more >>

Open a port for local access only
Posted by Gunnar Liljas at 12/28/2005 1:18:25 AM
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 ...more >>

Help needed on implementing timer functionality in web application
Posted by AVL at 12/27/2005 9:09:04 PM
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 ...more >>

DataGridView (.NET 2.0 Control) question about formatting
Posted by g at 12/27/2005 8:59:57 PM
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 want the format of ...more >>

Last effort to solve threading issue
Posted by Brad Wood
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 a particular lin...more >>

Having framework 1.1 and 2.0 on the same machine.
Posted by UJ at 12/27/2005 2:51:23 PM
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 wants .Net 2.0. I'll still be able to compile under 1.1 right? TIA -...more >>

Appearance/Font category
Posted by Steamboat at 12/27/2005 1:33:50 PM
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? ...more >>

Denied Acces to HKEY_CLASSES_ROOT\Record when Regasming
Posted by richard.Anaya NO[at]SPAM gmail.com at 12/27/2005 10:00:34 AM
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: Additional information: Access to the registry key HKE...more >>

Byte Array from DateTime Array
Posted by Daniel at 12/27/2005 6:19:44 AM
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? ...more >>

how do I search inherit generic Class?
Posted by ken at 12/27/2005 12:19:02 AM
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>...more >>

System.Timers.Timer
Posted by shayke at 12/26/2005 6:33:01 PM
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 the thread that cr...more >>

DNS reverse lookpup in asp.net
Posted by shen.chang.cs NO[at]SPAM gmail.com at 12/26/2005 9:22:54 AM
Hi all Anyone knows how to do a DNS reverse lookup by C# .NET code behind? thanks ...more >>

FileNotFoundException when porting from Dev 2003 to Dev 2005
Posted by Barakme at 12/26/2005 6:56:03 AM
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 Remoting application is built in and has no memor...more >>

Create remote object to run in stathread apartment
Posted by sanjeev NO[at]SPAM securlinx.com at 12/26/2005 5:38:01 AM
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 and creating the activex control in this worker...more >>

How to delete all the files in the specified folder?
Posted by Ivan Abramov at 12/26/2005 3:55:02 AM
by meanse of System.IO namespace? (The task is being doing easily by screepting runtime.) Thanks in advance....more >>

Choosing the right Oracle Client
Posted by Bora at 12/26/2005 3:49:44 AM
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. Can anyone help me. Thanks. Bora ...more >>


DevelopmentNow Blog