all groups > dotnet framework > august 2007
Filter by week: 1 2 3 4 5
Object Hash of Contents
Posted by Evan Camilleri at 8/31/2007 6:58:51 PM
What is the fastest way to get the 'hash' (or CRC32 or whatever) of the
contents of an object
i don't care what's inside, I just want the 'hash' of its contents
(not to mixed with object.GetHashCode() which gives a hash code of an
instance, I want the hash of the data contents)
Evan
... more >>
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Posted by Boris at 8/31/2007 6:05:26 PM
I have a mixed DLL (a managed DLL in C++ calling functions in other
unmanaged DLLs) which I can build successfully in Visual Studio 2005 but
can't reference as I get then immediately the error:
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Trying to find out what... more >>
Windows Service crashes in FW Ver 2.0
Posted by dlgproc at 8/31/2007 10:30:02 AM
I have a Windows Service that I created in .NET version 1.1 and it runs under
the system account.
I created a Windows XP SP2 Virtual PC (in Microsoft Virtual PC 2007) that
has the latest updates.
From this base VPC I created 2 new VPCs. One that has framework version 1.1
installed (and any... more >>
GetCharABCWidths or GetCharABCWidthsFloat analogs in .NET
Posted by Alexander Smirnov at 8/31/2007 3:06:44 AM
What methods of what classes I must use in .NET to get the info that
GetCharABCWidthsFloat gives?
Or what is a way to obtain char widths for the font in .NET ?
Thanks in advance.
... more >>
Casting when using reflection
Posted by Oldman at 8/30/2007 5:50:01 PM
I am writing a method that kind of works like the default implmentation of
the serializing logic when using the Serializable attribute.
I have a base "serializer" that is using reflection to determine what
properties to serialize out. When I am deserializing I know the name of the
property a... more >>
Time.Zone.GetDaylightChanges(2007) returning incorrect dates
Posted by Jen at 8/30/2007 5:17:43 PM
Time.Zone.GetDaylightChanges(2007) returns 4 (April) and 10 (October) for
DST begin and end dates. That is incorrect. It should be 3 and 11. My
registry is correctly updated for the 2007 rules (the TZI structure for my
time zone has 3 and 11).
Why is GetDaylightChanges() returning pre-20... more >>
TransactionScope question
Posted by Steve B. at 8/30/2007 4:37:44 PM
Hi,
I'm building an application that performs some operations of several kinds :
file copy, IIS web site creation, etc...
Since if one of this operation fails, all others have to be rollbacked, I
started to look at the transactionscope class and IEnlistmentNotification
interface.
How ... more >>
Error in Microsoft's J# implementation?
Posted by JDavis at 8/30/2007 9:26:32 AM
I copied some code from a C#.NET program into a J#.Net program:
StreamWriter sw = new StreamWriter(ThisFile);
sw.Write(msg);
sw.Write(sw.NewLine);
The compiler says: Error 1 Cannot find field 'NewLine' in type
'System.IO.StreamWriter'
But the same code runs just fine in my C# program... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to get a web server to send response using TcpClient & NetworkStream?
Posted by Ed at 8/30/2007 7:19:22 AM
Background: I'm attempting to access a web page hosted on a server
embedded in firmware on a device. I initially tried using the
HttpWebRequest (which I know is coded properly since it works with
other web servers) but the server embedded in the firmware is
returning an error and the reponse obj... more >>
substituting a framework method
Posted by lioxa at 8/30/2007 3:03:24 AM
Hi,
I need to substitute a method of a Framework built-in class with my
own. Please suggest a way how I can do this (without having to copy/
paste whole source of a particular assembly).
Reflection, probably?
Alexei.
... more >>
Not getting expected SerializationException when missing OptionalFieldAttribute
Posted by Jeff Stewart at 8/29/2007 4:07:58 PM
I'm just discovered Version-Tolerant Serialization and am synthesizing
it into an existing serialization scheme. What I read from the docs
indicates that in the example below the .Deserialize() statement
should throw a SerializationException indicating that field2 is
expected from the data stre... more >>
ASP.NET: Dealing with Session non-Stickiness
Posted by Nitin at 8/29/2007 11:38:35 AM
Hi!
I was wondering if anyone had to deal with a load balancer that didn't
provide session stickiness when using IIS. I seem to be running into a
bit of an issue with ASP.NET session state. I know it is possible to
share session state across IIS servers using SQL Server, but the
target enviro... more >>
WPF TabControl - Hiding tab buttons conditionally
Posted by drewnoakes at 8/29/2007 10:56:01 AM
In my application users generally only have one tab page and I'd like to hide
the tab page buttons (headers?) when this is the case.
I have not been able to find a way to do this. Do I need to re-apply an
entire template to the tab control to have a handle into the appropriate
object, or c... more >>
catching exceptions
Posted by bitshift at 8/29/2007 8:27:21 AM
In many asp.net pages I want to trap for errors, but I often really dont do
anything with the exception object itself, so I get annorying warning
messages when it comes time to build. So i started changing how i catch
exceptions like so:
try {
....code here
}
catch(Exception) {
//d... more >>
Oracle Client Error OCI-22053 Overflow Error
Posted by Dale at 8/29/2007 8:02:03 AM
I have a query against a database that continues to crash my app with an
Oracle CLient Error OCI-22053 Overflow Error.
The query is:
SELECT pt.adjusted_delivered_qty, pt.expected,
(CASE
WHEN pt.val2> 0
THEN pt.val1 / pt.val2
ELSE 1
... more >>
Application Hosting - Socket Application
Posted by Mark at 8/29/2007 6:06:50 AM
Hi all,
I've been doing some socket programming for a while and can get a server
with multiple clients working fine on my development machine, but what does
one need to do in order to have the server application hosted somewhere on
the internet?
These are more low-scale apps that I don't... more >>
corrupt data on cd
Posted by bazrico at 8/29/2007 2:50:02 AM
Have data on a cd when i try to open the files the all have squares and no
text how can i get the text back
please help thank you... more >>
System Centre Service Manager
Posted by Luca at 8/28/2007 9:22:10 PM
not sure where to post this question about System Center Service Manager so
maybe someone could post a link or something, but im trying to install this
software and having a bunch of trouble installing some prerequisites. These
are:
..NET Framework QFE Q925499
..NET 2.0 Hotfix 925272
..NET 2... more >>
double.ToString()
Posted by Rock2000 at 8/28/2007 7:42:01 PM
Does .NET support a way to convert a double/single to a string using a
minimum number of characters, similar to what Java does? If not, does anyone
have any links to algorithms to do this?
Thanks... more >>
how to temporailty block process death
Posted by paul moore at 8/28/2007 4:50:02 PM
I have a C# app that is doing a series of coordinated disk writes. I want to
prevent or postpone the death of my process by the user while I am in the
middle of this sequence. Can I do this?... more >>
Stop listening on a socket?
Posted by ThunderMusic at 8/28/2007 10:32:22 AM
Hi,
I'm currently working with sockets. I accept connections using
m_mySocket.Listen(BackLogCount); But when I want to stop listening, I
shutdown all my clients and call m_mySocket.Close(), but it always raise a
OnConnect event (actually, it calls the callback function as if there was a
new... more >>
B-Tree implementation
Posted by Iain at 8/28/2007 9:48:01 AM
I have a need to manage a rather large set of indexed objects. Currently I'm
doing this in memory with a Dictionary<> and persisting to a text file, but
it has an unpleasant habit of using very large amounts of memory (several GB).
So I would like to offload these objects onto disk (access t... more >>
Simulate Thread.Join
Posted by Michael D. Ober at 8/28/2007 7:06:10 AM
In the non-pooled System.Threading.Thread class, there is a Join method that
will wait until the thread is complete. How can I easily simulate this
using the thread pool. Basically, I have an application that, given it's
druthers, would generate over 300 threads, but because of resource
li... more >>
Best practice for invalid arguments
Posted by Kyle M. Burns at 8/28/2007 5:10:01 AM
What's the current recommended best practice for the exception to throw when
an argument is invalid? I could have sworn there was a general
InvalidArgumentException exposed by the framework, but if it's there I must
be blind. It seems like this is a common enough occurence that there would
... more >>
Threading and DllImport
Posted by Seth Gecko at 8/27/2007 11:23:50 PM
Hi
I am developing a complex VB.Net Windows application for an
engineering firm (don't ask me why they prefer VB.Net...). All the
engineering calculations are done in FORTRAN which is compiled to a
non COM type DLL (meaning you can't create an Interop for it). This is
called from within the .... more >>
FileNotFoundException when loading a dll I think is really there
Posted by Zachary Hilbun at 8/27/2007 9:38:27 PM
I've just converted a C# app (see my Visual Studio information below) to a
3D API (OSG) using the OsgDotNet C# to C++ wrappers. When I tried to run it
the first time I got a FileNotFoundException (see below). The exception is
thrown in main when it tries to create the first Form. I can't ... more >>
Inconsistent derivation for generic collections
Posted by Michi Henning at 8/27/2007 6:49:20 PM
Looking at List<T> and LinkedList<T>, we have:
public class List<T> : IList<T>, ICollection<T>, IEnumerable<T>,
IList, ICollection, IEnumerable
public class LinkedList<T> : ICollection<T>, IEnumerable<T>,
ICollection,
IEnumerable, ISerializable,
IDes... more >>
Income reports omit dividends
Posted by TonyB at 8/27/2007 2:54:01 PM
I'm running Money 2005 UK Standard on XP Pro SP2. I have income from various
sources including a few investments, for which I enter the dividends iin
Portfolio Manager and show them as transferred to my current bank a/c. All
entries reconcile with my downloaded bank statements.
But when I tr... more >>
C# service, performs lots of things on start, windows doesnt give it enough time!
Posted by at 8/27/2007 12:58:33 PM
Hello all,
I am developing a windows service (c#, .net 2.0, windows 2003).
When the service starts it performs several functions that depend on
an internet connection, downloading rss feed etc.
The problem is, that if the connections is very slow, it takes a long
time for the status of th... more >>
how many classes are there?
Posted by flyfisher at 8/27/2007 8:27:45 AM
Does anyone out there know how many classes there are in .NET 2.0?
Thanx,
Mike
... more >>
NT Backup Fails
Posted by Raven at 8/27/2007 6:26:00 AM
Hi all,
I am currently having a problem with NT Bkup. I have a file server and a
separate DC. Dc is running windows server 2003 R with SP2. Since yesterday
while doing a simple backup on tape, it gives me the error as below:
Backup Status
Operation: Backup
Active backup destination: Ecri... more >>
HttpWebRequest and SSL session cache
Posted by barbutz at 8/27/2007 12:52:00 AM
Hi,
Does HttpWebRequest supports SSL session cache?
That is, if i make a ssl request to a server (using HttpWebRequest ) and
close the conection will the second https request using HttpWebRequest to
the same server will require to do handshake all over again?
I know that IE and Firefox sup... more >>
I CANT FIND MY LAST POST
Posted by Tina D at 8/26/2007 2:54:02 PM
I can not find my last post, and I want the answer. I am new to forum.
Start me there - how do i find my last post ? AND How do i come back to
the same place?
--
Thanks,
Tina D... more >>
.NET Framework 3.0 "activation" ?
Posted by Tremendo at 8/26/2007 1:48:07 PM
Hi all,
Having
Visual Studio 2005
.NET Framework 2.0
Windows XP SP2
I installed .NET Framework 3.0 ("dotnetfx3".exe - 50 MB). The
installation was successful, and if I go to Settings -> Control Panel
-> Add or remove programs, I can see the "MS .NET Framework 3.0".
However, when I op... more >>
Web and Windows Application Help
Posted by Prithvi at 8/26/2007 4:04:02 AM
Hi,
I just started learing Visual C# and the .NET framework. I am thinnking of
developing a Windows application with features like Contacts, To-Do List,
etc.. Now, once I am done with this, I wish to develop a Web application with
the same functionality. Is it possible that I can do it in suc... more >>
Getting AppDomains of a specified Assembly
Posted by Anax Ender at 8/26/2007 3:40:01 AM
Is there a way to get all AppDomains of a specified Assembly?... more >>
xml serialization via a memory stream
Posted by Martin at 8/25/2007 12:00:00 AM
G'day,
I have encountered a problem with serializing a class using xml
serialization and a memory stream.
what i am attempting to do is serialize a class and the read the serialized
string into an xml document.
However when I convert the memory stream to a string the first character
shoul... more >>
Different xml representations
Posted by Martin at 8/25/2007 12:00:00 AM
Hi,
I would like to ask to ask why when I output some xml to the console window
i get different encodings.
for example, consider the following code.
XmlDocument xmldoc = new XmlDocument();
xmldoc.LoadXml(@"<?xml version=""1.0"" encoding=""utf-16""?>
<Vehicle xmlns:xsi=""http://www.w3.... more >>
Compile error when compiling with "ref" keyword
Posted by TNCoder at 8/24/2007 6:44:00 PM
I get the following error messages when compiling my code:
The best overloaded method match for 'ByteArrayToStructure(byte[], ref
object)' has some invalid arguments Form1.cs
Argument '2': cannot convert from 'ref RESPONSE_STRUCT' to 'ref object'
Form1.cs
My code is as follows:
public ... more >>
.Net Framework 2.0 breaks
Posted by bsaucer at 8/24/2007 9:00:03 AM
Every once in a while my .Net Framework 2.0 "breaks", causing applications to
fail. So I clean and reinstall it, and it fixes it. But several days later it
"breaks" again.
I'm not sure if this is related, But I have been trying to repair and
install .Net Framework 3.0, which fails every tim... more >>
Inner exception is thrown from Control.Invoke instead of "outer" Exception, framework bug?
Posted by Martin at 8/24/2007 12:00:00 AM
Hi,
I have an application that calls an async delegate from the UI thread.
The async operation throws an exception with an inner exception
attached. When I get the callback in my form class I call
this.Invoke(...) which throws an exception as expected. However, the
exception thrown is the inner... more >>
Questions about the DLR
Posted by Giulio Petrucci at 8/23/2007 4:01:47 PM
Hi there,
I need to create a desktop application using both C# and JavaScript. Is
it possible? How can I do to have a DLR "up and running" on my machine?
Which FW version shall I download and install? And which development
environent shall I use?
Thanks in advance.
Best Regards,
Giuli... more >>
Combining Select Queries
Posted by Barry at 8/23/2007 3:22:44 PM
Hi
I am intrested in combining the results of the following 2 select queries
into one to display data like this
Count1 Date1 Count2 Date2
10 1/1/2007 6 1/2/2007
SELECT Count(*) as Count1, Str(Month(User.Logged),2) + '-' +
Str(Day(User.Logged),2) + '-' + Str(Year(Us... more >>
Quotes in email addresses using System.Net.Mail.MailMessage Class
Posted by Campbell McNeill. at 8/23/2007 2:34:02 AM
Hi,
According to RFC 2822: Internet Message Format, the following should be a
valid email address:
chris.o'connell@world.com
But on using the aformentioned class, a format exception will be thrown when
creating a message.
Is there a way I can use this email address for a message crea... more >>
Backgroundworker and ConsoleApp
Posted by Vogeler, volkhard at 8/23/2007 12:48:00 AM
Hello,
i´m using the backgroundworker in an Consolenapplication. For testing i
write the current ManagedThreadid from Main, the Backgroundworker
Dowork-delegate and RunworkerCOmpleted-delegate. i expected that the ids from
Main and RunworkerCompleted are the saim - but they are not!
ca... more >>
ClickOnce application on terminal server
Posted by Lars Beyer-Olsen at 8/23/2007 12:00:00 AM
Hi,
Our company has developed a smart client application using C# and Visual
Studio 2005. We distribute the application using the ClickOnce
technology. ClickOnce works fine when the clients are desktops where the
user is an administrator, but we're experiencing problems installing the
same... more >>
Is C# written in C++ underneath?
Posted by Juan Dent at 8/22/2007 1:04:05 PM
Hi,
Very curious of the role of C++ today, was wondering if C# was actually
written in C++.
--
Thanks in advance,
Juan Dent, M.Sc.... more >>
Sharepoint Application error
Posted by Steve at 8/22/2007 11:18:05 AM
I have already posted to the Sharepoint discussion group but I think that
this is a more general dotnet.framework error than a Sharepoint error.
I am getting the following error with Windows Sharepoint Services 3.0. Does
anyone know the quickest method to correct the error described below. I ... more >>
Add Namespaces with XmlTextReader and XmltextWriter?
Posted by lucius at 8/22/2007 9:32:41 AM
Framework 1.1, I have an existing complex XML document. I need to add
some namespace information to certain elements. Can anyone illustrate
how to use and XmlTextReader and XmlTextWriter to add custom namespace
info where I want it?
Thanks.
... more >>
Starting a function on another thread
Posted by Mike Logan at 8/22/2007 6:34:03 AM
My environment: VS 2k5 Team Software developer SP1, VB.Net, Web Service
I have a web service. I also have another class file. I am trying to call
a web service operation from within my private class file on another thread.
In my class file I have this
Private Sub MyPrivateSub()
Di... more >>
|