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

Filter by week: 1 2 3 4 5

http error codes...
Posted by AVL at 6/30/2005 11:20:03 PM
hi, i need to write a script whcih monitors my web application.... I'm using a third party tool called NetMon .......designed by our client himself........ I need desgin a web page(.aspx) which does the monitoring functionality like chekcing connectivity to teh databsbe, to the web serv...more >>


XmlSerializer, C# , Excel, XML and SpreadsheetML
Posted by Chispa at 6/30/2005 8:30:02 PM
I am increasingly frustrated and exasperated. I am trying to generate SpreadsheetML using C#. CSV won't do because I need formatting. I have the Office 2003 XSD files but xsd.exe doesn't want to know about them. So I am trying to hand construct a basic "hello world" spreadsheet using Xml...more >>

Displaying Decimals as a string
Posted by michael_quinlivan NO[at]SPAM hotmail.com at 6/30/2005 7:29:06 PM
Hi All I have the fraction 256139/25631, which I have stored in a Decimal data types, due to it having the highest precision. When I display this using Console.Writeline, it only displays a precision of 15 digits (9.99...). I know that Decimals hold higher precisions than this, but I don't ...more >>

DEVPATH bug in a Web app (ASP.NET) ?
Posted by dan.c.roth NO[at]SPAM gmail.com at 6/30/2005 7:19:31 PM
DEVPATH bug in a Web app (ASP.NET)? Hi Has anyone got DEVPATH to work in a Web app? I have no problem for a Win app. I added <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" /> <developmentMode developerInstallation="true"/> </runtime> in C:\WINDOWS\Mi...more >>

Increase .NET stack space?
Posted by Tom at 6/30/2005 4:38:35 PM
Is there any way to increase the .NET stack space? A coworker is writing a VB.NET application that is using recursion, and it is running out of stack space. I am going to suggest that he rewrite his recursion routine to NOT use recursion, but thought I would check first to see if there were any ...more >>

DOM Issue
Posted by travisGatesMcGee NO[at]SPAM hotmail.com at 6/30/2005 4:07:02 PM
How can you load a Web Response coming from a URL into a DOM for parsing (in VB)?...more >>

SecurityException using ApplicationSettingsBase on a network share
Posted by tfmillet at 6/30/2005 2:49:05 PM
I have created an application which saves the size and location of the main form using a custom settings class derived from ApplicationSettingsBase. It runs fine locally, and saves and retrieves the settings. When I run the application from a network share, a SecurityException is thrown, ...more >>

how CanDeserialize() works?
Posted by rb531 at 6/30/2005 1:41:01 PM
Hi, I have a question regarding CanDeserialize(). How does it work? Any idea? will it parse the entire xml before deciding whether it can be deserialized? Any input is appreciated. thank you, ...more >>



Bug: PerformanceCounterCategory.Delete removes entire registry key
Posted by Steve Townsend at 6/30/2005 12:20:02 PM
I am attempting to instrument several existing Windows service applications (written in C#) using the PerformanceCounter* classes in .Net FW 1.1 SP1. Each service must dynamically add its required counters based on configuration metadata from SQL Server using the service name as the Categor...more >>

How can I compile controls to a single DLL?
Posted by chambersdon NO[at]SPAM hotmail.com at 6/30/2005 9:28:08 AM
I have several projects that I need to compile into a single DLL. Is this possible? We have a project called 'Utilities' that includes classes to which encapsulate business logic. I've now created another project called 'Controls' with custom controls that can be used by all of our develope...more >>

capturing error codes in asp.net application
Posted by AVL at 6/30/2005 6:01:04 AM
hi, i need to write a script whcih monitors my web application.... can anyone let me know the way to capture the error whcih i get whenever i'm uable to connect to the server.. ...more >>

Return Strongly Typed Data Set from Web Service
Posted by HardBap at 6/30/2005 5:47:02 AM
I've created a strongly typed DataSet (Customers.xsd) using the xsd.exe tool. I want to be able to access fields using ds.Customer[0].CompanyName. The problem is when I return this DataSet from a Web Service it adds another Table to the DataSet that contains the data. I have to access the dat...more >>

Finding the latest version of v2.0 framework.
Posted by Ran Davidovitz at 6/30/2005 12:57:03 AM
Hi. We have a web deployment that installs our website. In the computer that we are installing on there are 3 versions of the framework 1.0, 1.1, 2.0. I will use the aspnet_regiis.exe to register my virtual directory. My problem is that i dont know where to runthe aspnet_regiis.exe from....more >>

job scheduler in .net
Posted by AVL at 6/30/2005 12:10:02 AM
Hi, How do we schedule a job?Is there any alternative other than creating a windows service? Are there any job schedulers in .net? Any freeware? Regs Vijaya...more >>

using CryptUnprotectData api from c#
Posted by ziggy at 6/30/2005 12:00:00 AM
Hi, i'm trying to use function from crypt32.dll in dot net, and get exception: An unhandled exception of type 'System.TypeLoadException' occurred in WindowsApplication1.exe Additional information: Could not load type WinApis from assembly WindowsApplication1, Version=1.0.2006.19524, Cultu...more >>

external library and variable symbol
Posted by Lloyd Dupont at 6/30/2005 12:00:00 AM
let say I have a DLL where there is: extern __declspec(dllexport) char* SomeImportantName; let say I want to dynamically (no static linking) update this value... is it right to do as below? HMODULE h = LoadLibrary("myLibrary"); char** p_SomeImportantName = (char**) GetProcAddress("SomeImp...more >>

interop & _wputenv_s
Posted by Lloyd Dupont at 6/30/2005 12:00:00 AM
I can't find the dll in which _wputenv_s is defined... annoying when you want to interop with it..... it's defined in <stdlib.h>, I tried Kernel32 & User32 but it didn't work... :( ...more >>

Intermittent sockets performance problem with multiple remote machines
Posted by David Doran at 6/30/2005 12:00:00 AM
Hi All, I've been trying to find a reason for this for a while now and am completely sick of it. I have a test app which uses System.Net.Sockets.Socket to receive large amounts of data (2MBytes total) from serveral worker processes on remote machines. Most of the time the data is received q...more >>

Is this possible/the best way to do it?
Posted by Marek at 6/30/2005 12:00:00 AM
Hi From C#, I need to instantiate MS Excel, allowing the user to modify the workbook/sheets. The C# then has to wait for the user to close Excel down. First of all, I need to know when this happens. When I (manually) close down Excel and go back to the debugger, it appears that Excel is s...more >>

Setselected for listbox works with debug but not with Release mode
Posted by rnes1961 NO[at]SPAM hotmail.com at 6/29/2005 9:27:49 PM
I am using SetSelected to set a selected value on a listbox. .... Console.Write("Ans 1: " & IntAns lbAns1.SetSelected(IntAns, True) Console.WriteLine(" Selected: " & lbAns1.SelectedIndex) .... Where IntAns is an integer. The thing is, it works just fine if I am in debug mode with a ...more >>

clickonce using mageui.exe
Posted by Varad at 6/29/2005 8:09:21 PM
Hi, I have a requirement where in I have to use mageui tool for publishing my application on to the server and I also need to do some custom installations as part of pre-requisite on Client. I also need to look after that my future updates are published intact onto the server. Suggestion f...more >>

Dataview - Rollback changes?
Posted by David at 6/29/2005 6:26:42 PM
I am creating a DataView to display a subset of a DATASET in a DATAGRID If users make changes to the view,, then the underlying table./dataset is changed. However, I want to provide the user a way to cancel all of the changes. I can not see any rollback ALL of the changes, especially the...more >>

Determine System.Type from an array
Posted by Jeremy Chapman at 6/29/2005 1:55:44 PM
I have System.Type variable containing the value System.String[] I know that System.String[] means a list of System.String objects, but how do I programatically get a System.String value from a System.String[] value. For example, I have a function such as: public object TestType(System.Ty...more >>

Configuration Application Block config file location
Posted by Stuart Hallows at 6/29/2005 1:22:59 PM
I'm using the excellent config block, I set the location of the file holding the configuration data using the Enterprise Library Configuration tool. It's easy to set the file location to be the same location as the app, but what if I want the app to be in C:\Program Files\... - the user should n...more >>

Close web form with button
Posted by wallacefalan at 6/29/2005 1:15:04 PM
Hello everyone. Would someone please tell me the easy way to close a web page. I have a page that displays details of a selected conference room. On this page, I want to provide a "close" button or link (whatever is easier) that closes the page. For the life of me I cannot find the code ...more >>

Try...Catch across assemblies
Posted by Bryce Covert at 6/29/2005 9:22:02 AM
Hi, I have an application that loads an assembly via reflection, and then runs a single form on that form. That's basically all the application does. Enclosed in this 3-line statement is a try...catch so that if any exceptions are thrown, the application will pick them up. This works fine i...more >>

Control.Handle is this a BUG?
Posted by RichS at 6/29/2005 9:05:09 AM
Hi, [ Using C# in .Net 1.1 ]. I've been struggling with a "hang" in my application all day and I think I have just worked out why the problem occurs. Please read through and see if u think this is a bug. I have a few UI controls that are being updated on a TimerThread ( I check the "...more >>

cross reference in managed C++?
Posted by Lloyd Dupont at 6/29/2005 12:00:00 AM
is it possible, in managed C++, to have 2 class referencing each other if they are in different namespace..... I'm trying to compile a very simple sample with 2 classes which looks like that (pseudo code) public ref class CBar::Bar { public: void Dump(CFoo::Foo^ f) { C...more >>

detection of framework.net
Posted by Soussan Mikael at 6/29/2005 12:00:00 AM
Hi everybody, I want to use MSI for the install program of my application. I need to know if I have to install on target computer the Framework! Is there a script using an activex that can help me in detection of the Framework!! If the Framework isn't installed I have to launch its install! ...more >>

References problem
Posted by Michal Talaga at 6/28/2005 9:28:02 PM
Hello! In windows forms application I have an object MyObject with an event SomeEvent. I pass this object to a form to display its data. In this form I attach an event hadler for SomeEvent. Now, I close the first form and then the form goes out of scope, and pass MyObject to some other fo...more >>

Reflection implicit and explicit conversions.
Posted by Brian Stanforth at 6/28/2005 3:34:03 PM
I am trying to dynamically create web controls from a database schema and load them into the page. I am getting an error telling me "Cannot implicitly convert type 'object' to 'System.Web.UI.Control'". How can i get arround this so that my Control.Controls.Add(ctrl) will add successfully. P...more >>

Create Excel Object Problem
Posted by Marisha at 6/28/2005 11:34:03 AM
Hi Guys, I have some problem, I'm trying to create excel object ( vb.net web application using Share Point.) Using: excel_app = New Excel.Application or excel_app = CreateObject("Excel.Application") The weird thing that sometimes it works,sometimes it fails with error:"Cannot create A...more >>

DateTime & ToShortDateString
Posted by Nugnet at 6/28/2005 9:50:36 AM
Hi, I have an ASP.NET web application that I want to be locale sensitive. I set my regional options to be English (United States) and rebooted my machine (normally have English(United Kingdom setting)). I then ran the web app and on a page where I wanted to display a default date of the current...more >>

CreateTextFile with RW access for all users
Posted by troy anderson at 6/28/2005 6:17:15 AM
How do you invoke System.IO.File.CreateText such that all users may have read and write access to this file? I have tried { string RemoteConfigFile = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\Settings\\Remoting.config"; System.Security.Permissions.FileIOPermissio...more >>

System Null Exception always shows
Posted by dang.le at 6/28/2005 5:37:01 AM
When I compile and run my application, even thought a form that created by Designer, my system always shows this error: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. It always happens and I cannot debug to that code, it said the cod...more >>

custom control property reset at run time
Posted by wgillin at 6/28/2005 4:56:12 AM
I am extending a listbox and added an int property like this: public class WcgListBox : System.Windows.Forms.ListBox { private int _imageIndex = 0; //Get/Set the ImageIndex for this ListBox. public int ImageIndex { get { return _imageIndex; } set { _imageIndex = val...more >>

OLE Server in .Net
Posted by Luu Sinh Ngoc at 6/28/2005 3:36:02 AM
For example : I want to implement such feaures : User copy some objects from a C# or VB.net WinForm application and paste into a Word Document. When user double click the object in the Word Document, the application is started to show the object in application and user can manipulate that o...more >>

Socket.BeginSendTo and Socket.BeginSendFrom on a single Socket instance from multiple threads
Posted by Jonas Hei at 6/28/2005 12:00:00 AM
Is it safe to call socket.BeginSendTo and socket.BeginSendFrom on a single instance of Socket from two different threads running simultaneously? This is required because I need to listen on a certain URI [IP:Port] and I need to send outgoing messages from that local socket [IP:Port] someth...more >>

Obstruct the Developpers to Develop and Deploy a newer version
Posted by DraguVaso at 6/28/2005 12:00:00 AM
Hi, I have a, maybe strange looking, question: Is there any way to obstruct developpers to Develop and or Deploy a newer version of a VB.NET-application? Things should happen like this: - Developpers develop the application - The application is tested, and audited for the final release - Th...more >>

Issuing multiple Socket.BeginReceiveFrom() calls at one go
Posted by Jonas Hei at 6/28/2005 12:00:00 AM
In all the samples that illustrate the use of Socket.BeginReceiveFrom(), once a BeginReceiveFrom() call is issued, then we wait for an incoming message, and then (a) either another BeginReceiveFrom() is issued from the AsyncCallback or (b) in the AsyncCallback sets an event which signa...more >>

performance difference in Webservice -'Normal' way
Posted by DraguVaso at 6/28/2005 12:00:00 AM
Hi, I'm new to WebServices, and I'm doing some tests (with a small VB.NET-application) to know the performance-difference between a WebService and the 'normal'-way of getting data (just connecting directly with a SqlDataAdapter to the SQL Server). The WebMethod simply gives a DataSet back, an...more >>

Async Socket Comms + Standby/Hibernate/Turn off harddisk after x minutes of inactivity question
Posted by Jonas Hei at 6/28/2005 12:00:00 AM
I need to implement a listener that listens on a certain UDP port. I am trying to use Socket.BeginReceiveFrom for this purpose. In this scenario the remote clients (hundreds of them) send most of the UDP messages between 17:00 and 19:00 hours. Rest of the time any incoming messages are extrem...more >>

IO Problem
Posted by Rahul at 6/27/2005 3:11:40 PM
Problem Statement : I need to convert a pdf file on the file system into a filestream and then pass this stream to the calling program. Once the steam has been created I want to delete the file. The calling program then needs to use that stream and open pdf file. I know how to create the file ...more >>

TreeView flicker on changing Node.BackColor
Posted by wgillin at 6/27/2005 2:23:02 PM
Is there any way to control the flicker that occurs when an idividual node's BackColor property is changed in a treeview? It appears that the entire control is invalidated and redrawn. How can I invalidate only the node that has the background color changing?...more >>

checking for valid cast before cast is called?
Posted by wgillin at 6/27/2005 2:21:03 PM
Is there a way in .net to check the validity of a cast before the cast is actually made? My situation is I am building a ListBox that I would like to function with either my customized objects as items or the standard ListBox items. In order to draw my custom objects I need to cast them insi...more >>

System.Configuration.AppSettin­gsReader
Posted by mikeb at 6/27/2005 12:57:09 PM
Just wondering if I'm missing something completely here... The AppSettingsReader only READS information from the app.config file. MS provided no means of writing information to that file?? Use INIs Don't use INI's, use registry Don't use Registry, use .config What in the world do I use...more >>

caching objects and data
Posted by param NO[at]SPAM community.nospam at 6/27/2005 12:34:55 PM
Hi all, I am working on a component dll that could either br running in an asp.net app domain or on a regular app domain. I have a need to cache some frequently used objects and data. I know in asp.net I have access to a cache object. What can I use to cache when not running in asp.net? I am a...more >>

System.CodeDOM and Microsoft.CSharp missing
Posted by NiceGuyUK at 6/27/2005 11:18:00 AM
Hi, I've got some C# code with a using clause containing :- using System.CodeDom; using Microsoft.CSharp; but it refuses to compile, saying it cannot find them and that I'm missing a reference. Can anyone tell me what I should be referencing? On a friend's machine it seems to find ...more >>

Error using InstallUtil to add Event Sources
Posted by Chris Cichocki at 6/27/2005 10:36:04 AM
I am trying run InstallUtil against a .DLL assembly that is basically empty except for the Installer and ProjectInstaller classes which I'm trying to use to create a specific Event Source to support the application. I believe I have it set up correctly in the Visual Studio project because it ...more >>

About the Rich Edit Control
Posted by Archer at 6/27/2005 9:36:30 AM
I need a control that can help me to realize the function of numbering and table edit in dotnet framework. Is there any idea? Or is it the most costless way of inherit the Rich Text Box and realize the function by myself? ...more >>


DevelopmentNow Blog