all groups > dotnet framework > march 2007
Filter by week: 1 2 3 4 5
Windows Service Memory Usage.
Posted by Greg at 3/31/2007 6:58:13 PM
Hi,
I previously posted this in the performance newsgroup but thought I
might get some better exposure here.
I have a windows service thats sole purpose is to cache a large set
of
data from a web service. The service writes the data to cache and
makes it available to all clients. I have ... more >>
Is CaseInsensitiveComparer Obsolete??
Posted by DXRick at 3/30/2007 8:20:01 PM
I am reading the MCTS Exam 70-536 book by Nortrop and Wildermuth. Chapter 4
discusses the IEQualityComparer interface, and shows how to use it for a
HashTable. The August06 MSDN docs also show a similar example. In these
examples the class used for the IEQualityComparer has a
CaseInsensit... more >>
Older versions of .NET
Posted by iamleppert NO[at]SPAM gmail.com at 3/30/2007 6:38:09 PM
I have some systems that have older versions of .NET framework
installed. The company I am contracting with refuses to update the
framework installed on their machines. Is there any way to switch the
version of .NET you can "compile" in? I have Visual Studio 2005.
The versions they have instal... more >>
log4net or enterprise library log?
Posted by nkw at 3/30/2007 11:48:02 AM
it sounds log4net is not updated since 2003?... more >>
x64 or x86
Posted by Q. John Chen at 3/30/2007 9:19:25 AM
I got a new machine. It is AMD Athlon 64 processor. OS is XP
Professional.
I am trying to install .NET 2.0 framework.
I downloaded NetFx64.exe (ver 2.0.50727.42). Double clicked on it and
it gave me:
Error creating process <C:\ .......\Install.exe>. Reason:C:\WINDOWS
\system32\advpack.dll.... more >>
migrating from .net 2.0 to WPF
Posted by praveen at 3/30/2007 3:31:46 AM
Hi,
Is it possible to use WPF in the existing .net 2.0 application.
any clarification/suggestions are appreciated
Thanks in advance,
Praveen
... more >>
Where the native code store for second time execution
Posted by Umeshnath at 3/30/2007 2:58:00 AM
Where the native code store for second time execution. When it will clear or
how long it will be there ?... more >>
.NET version selection
Posted by Z at 3/30/2007 12:00:01 AM
Hi,
I am running VStudio 2003. I also have multiple versions of .NET installed.
How do I select in VStudio which version to use to build my projects?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to search for a keyword in a StringBuilder?
Posted by Laser Lu at 3/30/2007 12:00:00 AM
Sometimes, I need to do some time-consuming operations based on whether a
specific keyword was contained in a lengthy string. Then, for a better
performance, I wrapped that lengthy string into a StringBuilder.
But after doing that, it seems there's no proper methods defined in
StringBuilder f... more >>
"aspnet_state.exe- Application Error" message
Posted by PCulley at 3/29/2007 6:42:00 PM
I have updated .NET Framework 1.1 to 2.0 and I get this error-
"aspnet_state.exe- Application Error" right before my computer turns off when
I shutdown the computer. Version 1.1 appears to have been working fine and I
did not receive any error messages from it. When I uninstall version 2.0, ... more >>
Mixed 1.1 with 2.0
Posted by tcw at 3/29/2007 4:08:12 PM
Is it safe to use a third party's C# library which was built with .NET 1.1
in my .NET 2.0 projecct? Thank you in advance.
-tcw
... more >>
Reload Configuration values
Posted by Hey it's Filippo at 3/29/2007 9:37:57 AM
Hi there,
I have an Windows application that on the maintenaince form allows the user
to chose certain values that I store on the app.config.
These values are stored on the
<appSettings>
<connectionSettings>
Currently when the user changes any of those values, I call
Application... more >>
Stupid Sorting!
Posted by Cliff at 3/29/2007 5:38:22 AM
in the table:
dt.Columns.Add("Session Duration Seconds",
System.Type.GetType("System.Int32"));
---------------
then the following code to try and sort the table based on that colum
-------------
dv = new DataView(ds.Tables["vpninfo"]);
dv.Sort = "Session Duration Seconds";
fore... more >>
Can any one provide latest dump for MCSD.NET 2005
Posted by Umeshnath at 3/29/2007 2:36:03 AM
Hi,
It would be grateful if any one can provide latest dump for MCSD.NET 2005.
Either you can share a url or send to me @ umesh.nath@gmail.com... more >>
SQL Server does not allow remote connections
Posted by Gudni G. Sigurdsson at 3/29/2007 2:20:03 AM
Hi.
I recently had to remove SQL Server 2005 and SQL Server 2005 Express from my
system. Then, I reinstalled the express edition. This works locally, but
when I try to connect to a database on this computer from another computer on
my local network, I get the message:
System.Data.SqlClie... more >>
How can I speed up ToString of decimal and double?
Posted by ThunderMusic at 3/28/2007 7:58:42 PM
Hi,
We have a part of our application that deals with millions of records and do
some processing of them. We've achieved a pretty good performance gain by
developping a custom DateTime.ToString and a custom int.ToString, but we
can't find any clue on doing for decimal and double, which would ... more >>
.Net 1.1 versus .Net 2.0
Posted by RobinS at 3/28/2007 10:11:07 AM
I am working at a company that is going to publish a product on the market.
The code is currently in .Net 1.1. The developers would like to migrate it
to .Net 2.0.
Management has concerns about users having to install the .Net framework
before using the product. They want to "minimize any... more >>
Can we do this quick?
Posted by Andrew at 3/28/2007 7:52:01 AM
Hello, friends,
I defined an enum like the follows:
public enum OrderStatus
{
new,
paid,
processing,
shipped
}
In database, we save 0 for new, 1 for paid, etc.
However, when we display to users, we need to show new, paid, etc., i.e.,
the meaningful words, not numb... more >>
Workflow, fire a EventDrivenActivity from a StateInitializationAct
Posted by _keith at 3/27/2007 6:55:42 PM
Full question: From within a StateInitializationActivity can I fire an
EventDrivenActivity that lives in that state?
The goal is to automatically progressing from one state to the next without
the actual events being pushed in from outside, if there is an error in the
transactions a user w... more >>
Question about Inheritance
Posted by Sridhar at 3/27/2007 6:46:32 PM
Hi,
I have a web application which accesses the data base. So I created a
dataaccesslayer project which has a separate class for each table. I have
also created a business layer to access these classes so that I can only
refer to the business layer from web project. I used inheritance in... more >>
bug in the automatic updates
Posted by jmorg at 3/27/2007 6:42:23 PM
I am reinstalling windows xp home edition on my laptop computer. The
original windows on this maching did not come with SP2. I went to the
updates site for windows xp and downloaded SP2 which works fine. The problem
is that the update site now wants me to install auto update file 3.1. The ... more >>
Call DTS using C#
Posted by Chris F at 3/27/2007 6:10:16 PM
I am trying to call a DTS package in C# for the first time. I get the below
compilation error related to the using Microsoft.SqlServer.DTSPkg80. I am
still on SQL Server 2000 and am only using SDK v1.1.4322. Visual Studio is
not installed. Do I need to do something special to clear the ass... more >>
Outlook 2007 Email problem
Posted by Michael Miller at 3/27/2007 5:53:07 PM
Hi,
I'm pretty sure many are experiencing the same or similar problem but I
don't seem to find any satisfying solutions!!
On Outlook 2002, some emails content won't show up after I used &
uninstalled Outlook 2007 beta 2.
Now that I installed Outlook 2007 60 day trial, I found these ema... more >>
Globalization question.
Posted by Alexander Kolev at 3/27/2007 3:58:07 PM
I create a class library. Then I add default resource file to support
globalization and add strings. I want to use these resource strings outside
of this assembly, but I see that the generator makes all strings as internal
static properties.
Is there any way to make them public, so I can use ... more >>
Problem with (string, string) constructor when extending the Uri class
Posted by Jan Aagaard at 3/27/2007 1:51:56 PM
I have the following rather simple code, where I want to extend the
Uri class in order to add a couple of handy methods.
public class Uri2 : Uri
{
public Uri2(string baseUri, string relativeUri)
: base(baseUri, relativeUri)
{ }
}
But I get the following error when compili... more >>
RegEx and Vb.net /// "Unrecognized escape sequence"
Posted by sloan at 3/27/2007 12:13:54 PM
I have a fairly simple RegEx code below.
I am given a file name, (which I don't control) , and need to change a
folder name in it.
The code below is choking on the filename not being escaped.
"Unrecognized escape sequence"
While I can escape the findValue and replaceValue,
I do... more >>
Debugging
Posted by Zachary Turner at 3/27/2007 12:12:44 PM
I have a situation with an apparent deadlock. I have two threads
which are blocked on the statement "lock(_SyncRoot)", where _SyncRoot
is my own private object. However, I've examined all the other
threads in my application and walked up their callstacks, and none of
them seem to be holding a... more >>
Windows Workflow Visual Designer
Posted by yy at 3/27/2007 11:55:19 AM
Is possible to use the Visual Designer of WWF to replace my Flowchart
Editor/Container application? what i mean is that i just need to use
the Visual Designer to replace my MFC-based Flowchart Editor since i
already have a Container to contain the flowchart-object(s) in my
Flowchart Editor.
... more >>
Console application will only run on machine where application was compiled
Posted by rlemon27 NO[at]SPAM gmail.com at 3/27/2007 10:08:45 AM
I have written a simple console application that will only run on my
machine. I can run the application outside of the IDE, but on other
units I get a message that the system cannot execute the command.
I installed VS 2005 on another computer to see if there was some kind
of dependency problem... more >>
The generic type 'System.Collections.ObjectModel.Collection`1' was used with the wrong number of generic arguments in assembly 'mscorlib'
Posted by svkuery NO[at]SPAM gmail.com at 3/27/2007 6:39:36 AM
Has there been any resolution to this?
I am seeing the same problem.
The code seems to run ok but while I am stepping through it while
debugging VS shows the value of count in my watch window as this
error:
{"The generic type 'System.Collections.ObjectModel.Collection`1' was
used with th... more >>
xxxx.dll.config file for what? (Setting for DLL)
Posted by mtczx232 NO[at]SPAM yahoo.com at 3/26/2007 1:29:56 PM
VS2005
I have Class library that serve as COM. I put some setting to the
My.Setting, the compile create file with name: xxxx.dll.config
Now I read that config not work with DLL, I try that, and it's seem
that true, this is not working. this is true? and why the compiler
create this file on ... more >>
Rich test box in DataGridView Control
Posted by Kapil Shah at 3/26/2007 12:15:04 PM
Hello Everybody,
I am trying to implement RichText box control into DataGridView Control.
Would be greatful if anyone guides me how to implement it.
Thanks,
Kapil
From http://www.developmentnow.com/g/6_2006_5_15_0_0/dotnet-framework.htm
Posted via DevelopmentNow.com Groups
http://www.de... more >>
Enterprise Library 2.0 configuration error
Posted by dick69anderson NO[at]SPAM yahoo.com at 3/26/2007 11:34:47 AM
It is my intent to utilize the Enterprise Library Application Blocks.
I am new to dotNet. I have downloaded the 'Enterprise Library -
January 2006' version. The solution built successfully and I can
execute the 'Hands on Labs' for logging. To transition to my code
base, I did the following:
... more >>
Reflection and Inheritance question.
Posted by Frank O'Hara at 3/26/2007 1:50:25 AM
I'm new to reflection and would like to know if what I want to do is
possible. So far I haven't seem much value to reflection (for my
needs) but that could be the result of not using it properly, or
perhaps my architecture is inherently flawed.
I have the following:
class baseClass
{
pr... more >>
IO.Filestream: write single byte (.Net 1.1)
Posted by Armin Zingler at 3/25/2007 8:35:56 PM
Hi,
I use an IO.Filestream to write a single byte close to the end of a huge
file (120 GB) by setting the Position property and calling the WriteByte
method. This takes 40 minutes because all the bytes before the byte
to be written seems to be written. But I only want to write a single byte... more >>
UDPClient Broadcast Receive Error with PPPOE
Posted by greenxiar at 3/24/2007 8:50:01 PM
My Computer is Win2K3 R2, Code is:
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace TechUDPBroadcast {
class Program {
static void Main(string[] args) {
const string addr = "224.1.3.99";
const int prt = 12799... more >>
gc.KeepAlive - is this the reality of garbage collection
Posted by Rolf Welskes at 3/24/2007 1:00:12 PM
Hello,
I have a problem with garbage collection.
An msdn example says generally the following:
I have a class TestCls.
With a Property MyProp.
Then normally I would write:
void MyFunc()
{
TestCls tc = new TestCls();
int u = tc.MyProp;
.... no further use of tc ....
}... more >>
Use C# assembly in MFC - help
Posted by SJ at 3/24/2007 12:00:00 AM
Hi
I want to retrofit a C# class library assembly into legacy MFC C++
applications. The application projects are VS2005 or VS2003 projects but
are unmanaged MFC C++ apps. I believe one approach is to enable COM
interoperability in the C# assembly and use it as a COM library in the
c++ app... more >>
.NET Runtime error
Posted by James Wong at 3/23/2007 6:45:33 PM
Hi everybody,
I'm facing an unidentified problem related to .NET framework. On event
viewer, the following message is logged:
Source: .NET Runtime 2.0 Error Reporting
Category: None
Type: Error
EventID: 5000
Description: EventType clr20r3, P1 pos.exe, P2 3.3.2636.21715, P3 4600f8b6,
P... more >>
WPF FlowDocument user interaction
Posted by Jim at 3/23/2007 9:45:28 AM
Hi,
Is there any way to enable user to interact with FlowDocument like resize
and drag to change layout?
Thanks.
Jim
... more >>
How to get the folder name for the Windows recycle bin?
Posted by jjkboswell NO[at]SPAM yahoo.com at 3/23/2007 8:32:18 AM
Bearing in mind the Windows recycle bin folder has had 3 names since
Win 95 up to Vista:
x:\RECYCLED (95, 98)
x:\RECYCLER (NT, XP, 2000, 2003)
x:\$Recycle.bin (Vista)
Consider iterating through the the root folder of a drive, and
excluding the recycle bin from your results. It is unacceptab... more >>
System.Convert.ToInt64(String) method exception
Posted by David Lowe at 3/23/2007 8:22:07 AM
This statement (txtNewOdometer is a variable for an edit box):
lSN = System.Convert.ToInt64(txtNewOdometer.Text);
is causing an exception iff a zero ('0') is entered into the textbox. But
only on one user's computer; works fine on everyone elses.
The exception's Message is "Input string ... more >>
obtaining full stack trace in release mode from a thrown exception?
Posted by shelby.pereira NO[at]SPAM gmail.com at 3/23/2007 7:01:25 AM
Hello,
If I have the following code excerpt where I call m1() in release
mode. my stack trace output shows only m1 and m4 and not the
intermediate method calls.
I obtain the full information in Debug mode. However this information
is critical even in Release mode, is there away to obtain... more >>
SMTP error
Posted by lynnp at 3/23/2007 5:38:08 AM
I use Outlook 2000. I've been sending messages to a particualr address for
months all of a sudden I'm now getting the following message back.
SMTP error from remote mailer after initial connection:
They have checked their end but there is nothing coming in to their server.
I can still r... more >>
FileStream.Close() Exception - How to release the lock?
Posted by Fredrik Johansson at 3/23/2007 4:53:03 AM
Hello!
Using .NET v2.0.50727, I've attached some sample code that creates a file in
a network path (test.er-1):
- The file is created at a network path.
- The user disconnects his/her network cable.
- The file is attempted to write to.
- The user reconnects his/her network cable.
- The fi... more >>
My .NET service dows not stop in a controlled way
Posted by Stefan Soljemo at 3/23/2007 12:17:03 AM
I developing an application based on some windows services on .NET framework
1.1. Eatch service are a single process service. Each service connects to SQL
Server or Oracle database and derives an customiced TCP server class. I
notised that the SCM calls the OnShutdown method when the system sh... more >>
Windows Communication Foundation
Posted by Allen Bradley at 3/23/2007 12:00:00 AM
I need to implement a Service with CallBack Contract and setting
TransportMode in binding configuration set to Streamed.
When i try to instance ServiceHost it's throw an
System.InvalidOperationException with Message like 'Contract Require
Duplex but on Binding Configuration is not Supported... more >>
System.Transaction and MSDTC
Posted by Rasheed at 3/22/2007 7:19:03 PM
We are developing a .NET 2.0 based distributed application and use
System.Transaction namespace to handle transaction at Business Object level.
DAAB 2.0 is used at Data Access Layer level. The database is SQL server 2000
(installed in Windows 2000 server).
The .NET server components are dep... more >>
Any such thing as a single column HashTable?
Posted by Joseph Geretz at 3/22/2007 12:54:49 PM
Basically, I just need an efficient way to store and retrieve keys from a
list. I don't need key/value pairs. I've implemented this with the standard
HashTable, but the value column is a waste since every key has the same
value, "".
Thanks for your advice.
- Joe Geretz -
... more >>
Socket problem
Posted by Rob T at 3/22/2007 12:15:10 PM
I have a very simple little program that connects to our email server to
send out emails. When I compiled it with .VS2003 (net 1.1), it works fine.
with VS2005 (.net 2.0), it hangs on the last ReadInfo
Any suggestions? thanks!
Public Function send2() As String
Dim err As Stri... more >>
|