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 > july 2006 > threads for july 8 - 14, 2006

Filter by week: 1 2 3 4 5

Help publishing a VS2005 Web App...
Posted by LilMoke at 7/14/2006 8:37:53 PM
Hello, I am using Microsoft Visual Stuido 2005. When I publish my web project, this version seems to delete all the folder/files in the directory before it publishes. I need to have a folder that does not get deleted when I publish. It contains some large files that I do not need as part ...more >>


sending mail via System.Net.Mail.SmtpClient
Posted by Bill H at 7/14/2006 3:08:09 PM
I am able to send an thru our mail server using the old 1.1 System.Web.Mail.SmtpMail class. When I try sending an email using the new System.Net.Mail.SmtpClient, I get a #5.5.1 unimplemented error: Command Not Implemented The code is nearly identical and the server is the same. Any idea...more >>

call exported dll method in signed assembly from win32 app
Posted by Stefan at 7/14/2006 2:04:53 PM
hi, i have a old win32 application (SiCtrl.exe written in Delphi) and a ..net 2.0 dll Win Control Library (B.dll) implementing some WinForms dialogs. the requirement is that SICtrl.exe can show a Form from B.dll. (unmanaged->managed). my research showed that there are 2 possible solitions...more >>

StringBuilder AppendFormat()
Posted by Bill at 7/14/2006 1:49:02 PM
Ok, so we have the following code and it produces the result seen immediately following the function. public string BugOrFeature() { StringBuilder sb1 = new StringBuilder(); StringBuilder sb2 = new StringBuilder(); StringBuilder sb3 = new StringBuilder(); char[] cTxtSeg =...more >>

Checking Folder Access Permissions
Posted by Jeff Gaines at 7/14/2006 1:43:24 PM
I am working on a File Manager app and would like to know the permissions on a folder before I attempt to open it in the app. I have been going through the help and Google this afternoon but am feeling a bit confused. Is there a way that I can check whether I/the user has access to a folder ...more >>

Why Does GetBaseException Ignore InnerException's GetBaseException
Posted by JohnDeHope3 at 7/14/2006 12:20:01 PM
First let me say that I understand that Asp.Net wraps my exception in an HttpUnhandledException. I have found a lot of discussion about that on the web, which was informative, but not helpful. Let me explain how my question is different. Second, let me say that I have two questions. One is ...more >>

Working with VS 2005, How do I Target Framework 1.1+ ?
Posted by Joseph Geretz at 7/14/2006 11:12:40 AM
I'm developing a solution using Visual Studio 2005. Where can I specifiy the versions of the Framework I'd like my executable to be able to run in? Thanks! - Joe Geretz - ...more >>

Assembly.GetExecutingAssembly
Posted by Bruce at 7/14/2006 8:32:02 AM
Assembly.GetExecutingAssembly returns a Reflection.Assembly Is it possible to save that to disk as a dll or exe, so I can load it later? ...more >>



Addition error in DotNet 2.0
Posted by Owen at 7/14/2006 4:25:02 AM
Hi all, Wondering if someone can help me with this: when i'm in Visual Studio 2005 I get a wierd addition error when adding 0.1+0.2 (both as doubles) the result that comes back is 0.30000000000000004 not 0.3 as expected. Any ideas what's causing this or what's wrong? A few results: 0...more >>

Registry entries, Licence Page in VS 2003 Setup Project
Posted by JM at 7/14/2006 3:45:53 AM
Hi, I have created a windows application in .NET. For this application I have created a Setup Project using Visual Studio .NET 2003. But I want to do some customisation to this basic setup program as follow: 1. My program requires to enter 1 entry in registry during Setup and deleting that ...more >>

Formatting text in stringbuilder
Posted by Judy at 7/14/2006 2:51:20 AM
Hi all, I'm writing the result, returned by an sql query, to stringbuilder. But first i want to format the text. I want to make the column heading bold. Because I'm passing the stringbuilder to Excel using response object and while passing, i can't set anything, right? Please can anyone help ...more >>

Program Failing to Run
Posted by Eric Renken at 7/13/2006 10:21:17 PM
When a user launches ANY .net application on this computer I get the error: --------------------------- TimeSummit.exe - Application Error --------------------------- The application failed to initialize properly (0xc0000005). Click on OK to terminate the application. ----------------------...more >>

KB917283 Update Failed
Posted by Jim Wood at 7/13/2006 6:01:02 PM
You know, I'm not even sure what this dot-net-framework business is all about. I do know that I had to download and install it before I could run a third-party program, but I haven't a clue as to what this .NET program does. Now, having said that, I do subscribe-to and install all Automatic ...more >>

error in webservice response
Posted by Scott Emick at 7/13/2006 3:30:01 PM
I'm using VB .Net 2003. When using a webservice, if I have any parameters wrong or missing in a method call I'm doing, the remote server is returning something, but all I see is 'System.Xml.XmlException' occurred in system.xml.dll The root element is missing. Is there a way I can captu...more >>

Install SQL Server Express with application
Posted by Michael Jackson at 7/13/2006 3:15:51 PM
Using VS2005/Frameowork 2.0, I have been asked create a setup which will install my app, SQL Server 2005 Express and possibly .NET Framework 2.0. This will be a downloaded or CD based install, not ClickOnce. Could anyone point me to a difinitive guide, hopefully with examples, on how to acc...more >>

Writing Performance Counters
Posted by rlrcstr at 7/13/2006 12:16:02 PM
Can someone point me to a decent tutorial type article on writing performance counters in .Net? Thanks. Jerry...more >>

Which operating System on Development client?
Posted by Heinz K at 7/13/2006 11:55:47 AM
Hi all, which Operating System do you use on your development client? As XP shipüs with IIS 5.1 while Windows 2003 Server has IIS 6.0 onboard, we are thinking about removing XP and instead installing Windows 2003 Server on our clients. Anyone ever thought of this and maybe uses it this wa...more >>

Limit to range of colors displayed by Label control?
Posted by Evan Stone at 7/13/2006 10:37:21 AM
Hi, I was just curious to know if there was a limit to the range of colors a label control can display. For instance if I set a label control's ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, whic...more >>

TLB using problem
Posted by vul at 7/13/2006 9:42:54 AM
I created very simple Class Library in VB 2005 (let's call it COMInterop). I set Register For COM Interop property to true to make it accessible by VB6 program. After I compiled it, I got COMInterop.dll and COMInterop.tlb files, I have no problem with using both of them on the machine where the...more >>

Upgrading to later version of .NET Framework 2.0
Posted by MJC at 7/13/2006 9:42:19 AM
My computer has .NET Framework v 2.0.50215 installed. A program says I need to install .NET Framework v 2.0.50727. I went to Windows Update and selected the .NET Framework, but Windows Update would not install it -- it gave reference to KB829019, but that article doesn't explain what's wron...more >>

Reflection and Nullable
Posted by Joe Bloggs at 7/13/2006 9:00:57 AM
Hi, Can someone please kindly show me how to determine if a type (read value type) is Nullable. MSDN has this KB: How to: Identify a Nullable Type (C# Programming Guide) http://msdn2.microsoft.com/en-us/library/ms366789.aspx however, using their code snippet, I couldn't get it to work: ...more >>

Detecting if a NTAccount is user or a group
Posted by Roshan at 7/13/2006 8:13:27 AM
Hi, I wanted a reliable way of detecting if a given NTAccount object represents a user account or group account. I was using SecurityIdentifier.IsAccountSid() method but this doesn't work as I expected. It returns true for user accounts and also for groups created by administrator. Right now ...more >>

Accessing a dll in the GAC
Posted by cashdeskmac at 7/13/2006 5:24:02 AM
Having created my dll, I have installed it into the GAC. All fine, no problems. The trouble starts when I try to access this dll. How do I tell my program to look in the GAC for the dll? Does it do this automatically? Do I have to specify it in the app.config file? Also, if I want to re...more >>

Current naming convention of abstract classes - BaseFoo vs. FooBase?
Posted by Keith Patrick at 7/12/2006 8:26:48 PM
This is probably a question for someone at MS, although I haven't found anything in FxCop or definitive in the newsgroups regarding this, but what is the current, if any, naming standard regarding base classes? A lot of the older classes are Base<classname> (i.e BaseValidator), and some newer...more >>

Debug conditional code in class that implements an interface... does it work?
Posted by hellosticky NO[at]SPAM gmail.com at 7/12/2006 6:49:53 PM
I'm creating some logging code, and each one of my classes has an internal static readonly instance of the logger which various methods use, e.g.: interface ILogger { void LogDebug(...); void LogInfo(...); void LogError(...); ... } What I did was to create two classes, one in t...more >>

Conversion from 1.1 to 2.0 and Warnings
Posted by Michael Jackson at 7/12/2006 5:56:27 PM
I've converted a large .NET 1.1 app to .NET 2.0. I allowed the IDE to to the conversion, and had basically no problems at all. However, the VB.NET compiler give me several hundred Warnings, and most refer to a variable being used before it is assigned a value. I have tons of subs and function...more >>

Fixed String Size.
Posted by Ken Varn at 7/12/2006 5:34:17 PM
I want to be able to set a fixed length of a string in my class so that if a smaller string is copied into it, then the string is padded with blanks. If a larger string is copied into it, I want the string to be truncated. Is there some neat .NET shortcut to doing this or do I have to put code ...more >>

Connection timeout when using transactions
Posted by Natan Vivo at 7/12/2006 12:05:06 PM
I'm getting a timeout error while trying to select data from SQL server 2005 after opening a transaction in asn asp.net application. It goes like this: SqlConnection conn1 = new SqlConnection(...); conn1.Open(); SqlTransaction trans = conn1.Open(); // do some inserts and updates using t...more >>

Installing an assembly in GAC without strong name
Posted by Prateek at 7/12/2006 9:39:58 AM
Hi, Is it possbile to install the assembly in GAC without signing it and creating the strong name? If i direclty register an assembly using gacutil /i <assembly>, it give me an error saying cannot install the assembly as it is not given a strong name. attempting to install with no stron...more >>

Data Reader Problem
Posted by Nalin at 7/12/2006 5:06:00 AM
Hello guys, Please, anyone already see this problem ? [NullReferenceException: Object reference not set to an instance of an object.] System.Data.SqlClient.SqlDataReader.PrepareSQLRecord(Int32 i) +159 System.Data.SqlClient.SqlDataReader.GetSqlString(Int32 i) +20 System.Data.SqlC...more >>

trying to compile a C file in a C++ CLR project
Posted by Lloyd Dupont at 7/12/2006 12:00:00 AM
Give me this error: Error 1 Command line error D8045 : cannot compile C file '..\..\..\..\Dev\API_C++\cutil.c' with the /clr option cl But it's a very ordinary C file! no special function like setjmp just malloc/free and some pointers Any idea? ...more >>

Graph
Posted by Goh at 7/11/2006 11:33:32 PM
Hi, Any suggestion for Graph Component? I need Window From Graph Component. Any free third party component ? Thank for inform me. with regards, Goh ...more >>

Reading Application Settings using C# VS 2005
Posted by Jim Rand at 7/11/2006 6:41:59 PM
In Properties / Settings, I've got a setting (say "ExportPath") with a value (say "C:\\Tmp"). Using C#, how do you get the setting value? string settingValue = SomeNETWhatever["ExportPath"]; ...more >>

Custom error message
Posted by Andrey Dzizenko at 7/11/2006 4:50:36 PM
Hi all! I have a singleton-class with private constructor and Instance property. It's clear that access to this class should be got by using this property. "new Class()" construction is incorrect and throws an error "can't access due to its protection level". Is there any opportunity ...more >>

Using WMI to start Remote Command File
Posted by itsomel at 7/11/2006 2:41:02 PM
I am trying to use the System.Mangement class within a c-sharp application for the purpose of starting a simple batch file on a remote machine. The error I receive is this: 1) Exception Information ********************************************* Exception Type: System.InvalidCastException M...more >>

Assembly initializer.
Posted by Ken Varn at 7/11/2006 10:42:34 AM
Is there anyway to write an assembly DLL that has an initializer that is automatically called before any other methods in the assembly? I am thinking along the lines of a DllMain similar to that which is in standard C++ DLLs. -- ----------------------------------- Ken Varn Senior Softwa...more >>

Install dotnetfx 2.0 with no reboot
Posted by zolof at 7/11/2006 9:17:02 AM
If want to do a basic install of .NET framework 2.0 on customers machines with no reboot at end. How can I do that ?...more >>

Multiple DLL exists after installation
Posted by Prateek at 7/11/2006 7:49:43 AM
Hi, I have one question related to installation of the assembly. I have created 2 dlls, say a.dll and b.dll I have created one exe which refers to both the dlls i.e. a.dll & b.dll I have created another exe which referes to just one dlls i.e. a.dll created 2 different setup for both the e...more >>

Versions of .net + visual studio
Posted by swas at 7/11/2006 6:35:02 AM
Hi, I have vs2003 + framework v1.1. I would like to use the new serialport class that comes with v2.0 but just can't find a definitive explanation of visual studio and .net versions. Can I install v2.0 for use with my vs2003 or must I / should I upgrade to vs2005? Do all versions nee...more >>

Application Monitor in .NET
Posted by Prateek at 7/11/2006 6:06:27 AM
Hi, I am developing a Application Monitor in .NET but it seems it is not working. Pls guid me if anything is wrong. Here is the design of this server. 1 - I have created a dll which exposes an interface INotify which will be implemented by all my custom application . 2 - this dll is expo...more >>

Find no if weekend days from 2 given dates..
Posted by velu at 7/11/2006 5:59:02 AM
i am trying to create a function that take 2 SelectedDate from a Calendar and calculates the no. of days between 2 dates and also calculates the no of weekends (sundays and saturdays) and at last it gives the difference between total days minus weekdays.. when i run this script the loop is ...more >>

XmlDocument
Posted by Roy at 7/11/2006 5:38:02 AM
I am using an XmlDocument to save an data object hirachy to an Xml file. When I rebuild the data object hirachy, I walk through the xml node in XmlDocument and recreate the objects. How do I know the original data types for each node. Can XmlDocument associates with a schema so that I can look...more >>

Explain Patterns in DOTNET
Posted by JaiPrakash Sharma at 7/11/2006 4:56:01 AM
Hi, I am very confused regarding patterns in DOTNET. Please provide me details and types of patterns in dotnet as well as usages of it in general senarios. JP Sharma...more >>

Knowing DLL Debug/release
Posted by kishor at 7/11/2006 3:04:02 AM
Hi, I am loading DLL dynamically. I have no issues with that. I have one small problem. How do I know dll is compiled in Debug/Realse mode ? I want to load only a release mode DLL. Please let me know is this possible ? Kishor ...more >>

Identify Mouse Button Clicks on controls
Posted by James at 7/11/2006 1:58:31 AM
hi all when we click on Control, Both Left as well as Right Mouse Button Click gives the same functionality. Is there any solution to filter that only Left mouse clicks allowed. Actually I have more than one clikable controls on my UserControl giving the same functionality. Any better ideas ...more >>

Deploy crystal report
Posted by Goh at 7/11/2006 12:00:00 AM
Hi guy, When I deploy system that has use crystal report viewer what component that I need to install others then .net framework 2.0? It seen that .net framework 2.0 does not work by default with crystal report viewer. I think need to install some crystal report component in product...more >>

Question about Value Types
Posted by Zachary Turner at 7/10/2006 9:02:00 PM
Suppose I have a Value Type, implemented as a struct. Example: struct MyValueType { int Field1; int Field2; } Now, this Value Type is a member variable of a reference type with a property get accessor. Example: class MyClass { private MyValueType m_ValueType; public My...more >>

Get Icon from CallingAssembly (or ...)
Posted by Pieter at 7/10/2006 3:59:43 PM
Hi, I have a Control Library which shows a Form, and i would like to hev the icon of the CallingAssembly to be shown on this Form. Does anybody knows how to do this? I can't be able to get this Icon... Even worse, I don't find how to get it in the application itself :-) Does anybody has a...more >>

.net, COM+, and SecurityCallContext
Posted by David at 7/10/2006 3:41:24 PM
I am attempting to write a small COM+ app for practice for an MCAD exam. I am using the "SecurityCallContext.CurrentCall" command but when I invoke it I receive the error " No security context is available." Is the SecurityCallContext only applicable for specific environments? Thanks ...more >>

NT User created programatically, authenticating with IIS fails
Posted by enantiomer at 7/10/2006 3:41:08 PM
For my IIS application, I have set the directory security for Basic Authentication. I have given permissions on the directory to a group that I created called appUsers. My problem is when I create a user manually through Computer Management and add the user to the group, it all works fine, al...more >>

CPU by thread
Posted by newscorrespondent NO[at]SPAM charter.net at 7/10/2006 2:18:42 PM
There are many examples of how to get the elapsed time for a method but I can't find any example of how to measure the amount of CPU consumed by my thread in a method. Elapsed time in a multithreaded application particularly on a single processor CPU is not very useful. Is there a way to mea...more >>

SignedXml CheckSignature()
Posted by Ash at 7/10/2006 10:09:02 AM
Hi, Can some one verify that .net 2.0 Signatures can not be verified by .net 1.1? I have been trying for about 2 months now and can not get it to work. When verify the signature that i created with .net 2.0 it returns true. but the the one generated by 1.1 returns false. On the 1.1 machine ...more >>

Security Exception with DataSet.ReadXML
Posted by Sreppohcdoow at 7/10/2006 7:58:32 AM
When I try to System.Data.DataSet.ReadXML(myPath) I get a System.UnauthorizedAccessException: Access to the path is denied. This is because the file is apparently open/locked by another application. I need to be able to read this file, even when the other application 'owns' the file. A...more >>

Protecting application code written in .NET
Posted by JM at 7/10/2006 7:51:43 AM
Hi, I have written a small windows application in .NET and I want to distribute it for free. But I want to protect my code to maximum level so that no body should be able to disassemble the code. The application has been developed in C# using VS 2003. Can anyone guide me what is the best o...more >>

Distributing components with application
Posted by ramesh at 7/10/2006 7:46:32 AM
Hi all, Could any one help me out that how can I ship additional components with my .net 1.1 windows application. The components will only be installed if they are not installed already. The setup MSI has to be initiated only once and all prerequisite should be installed. I want to ship .Ne...more >>

Calling FileStream.Create after File.Move gets old file handle
Posted by C# Dev at 7/10/2006 7:43:01 AM
Greetings all, Have a question regarding File.Move / FileStreams My steps, 1. Create file1 demo.log [FileMode.CreateNew] 2. Move file to demo1.log 3. Create file2 with same name as in #1: demo.log [FileMode.CreateNew] Now, problem is that the filehandle in #1 and #3 are the same. Are...more >>

Converting HTML page to PDF in .NET
Posted by JM at 7/10/2006 6:21:20 AM
Hi, I want to convert html page to pdf in .Net.By HTML to PDF, I mean the complete page, say - yahoodotcom should be printed as pdf. I want to see the yahoo page in PDF as I see it in browser. Basically I want to achieve similar to abcPDF component: http://www.websupergoo.com/abcpdf-1.htm w...more >>

Mixed Mode Dll C++
Posted by Ash at 7/10/2006 2:01:01 AM
Hi, I am trying to create a mixed mode C++ dll in Visual Studio 2005. I am looking to create a wrapper for a .net 2.0 c# dll because i need to access it from C. Is this possible? I was told that i might only be able to use Visual Studio 2003. Which therefore means that I cant use .net 2....more >>

what is assemebly's partialname?
Posted by fumade at 7/10/2006 12:00:00 AM
thanks ...more >>

WebBrowser object and redirects
Posted by ewahl NO[at]SPAM nextmillenniumweb.com at 7/9/2006 9:09:30 PM
Hi folks, I have searched for an answer to this question on the internet, but been unable to find it so far. I am hoping somebody can help me out. When you are using a WebBrowser object in .Net 2.0, is there any way that you can intercept when the server you are pointing to issues a Response....more >>

Is this a value variable?
Posted by LonelywolF at 7/9/2006 9:25:01 AM
Hi , I have a doubt. Let's say I define the following structure: structure strTest dim value_1 as decimal dim value_2 as decimal end structure As the definition, each instance of this structure will take 16+16=32 bytes space, which is conflicting with the value varible definiti...more >>

hello
Posted by Ravindra at 7/8/2006 12:00:00 AM
Hi all, I have to create a toolbar for IE and firefox.dont know where to start from. Can anyone help in this... -- Regards, Ravindra P.N ...more >>


DevelopmentNow Blog