all groups > dotnet framework > april 2008 > threads for april 8 - 14, 2008
Filter by week: 1 2 3 4 5
Is there a diff-like Method available in the .NET Framework?
Posted by Michel Bretschneider at 4/14/2008 8:09:24 PM
Hi,
I want to compare 2 text-files (e.g. .ini, .cnf, ...) and process them,
depending on their differences, like
strdiff = dotnet.diff(stream1, stream2);
So is there a build-in function to do this?
Thanks
Michel... more >>
Create TLB With Code?
Posted by coconet at 4/14/2008 3:33:58 PM
Using .NET Framework 3.5, I would like to programatically create a
..tlb (COM Type Library file) for Registration. I do not want to use
regsvcs or any other SDK or Visual Studio-related tool. I just want to
access the classes that do the work with C#.
Thanks.
... more >>
spell check tool with web app
Posted by Paul at 4/14/2008 1:36:05 PM
Hi I think I posted this before but with a search still could not find the
result. Looking for a spell check tool that integrates nicely with vs.net
2005 (web apps), already has the word library built. It does not have to be
freeware.
Thanks
--
Paul G
Software engineer.... more >>
(JSR) 168 compliant?
Posted by Chris Davoli at 4/14/2008 8:45:04 AM
Is the .Net framework Java Specification Request (JSR) 168 compliant? Does
anybody know of any information of this out there that I could read?
--
Chris Davoli
... more >>
Regex groups and captures
Posted by Erik Funkenbusch at 4/11/2008 4:39:52 PM
Can anyone explain the difference between Match.Captures and Match.Groups
in regex's?
Note: I understand how Regex works, I just don't understand what the
difference is between these two collections.
..Captures always seems to contain only one entry when I match something, no
matter if th... more >>
Threading problem
Posted by Davor Dundovic at 4/11/2008 4:25:39 PM
I'm developing one small "windows application" in C# (Visual Studio
2005) and I have a couple of questions ...
Startup form creates an instance of one of my classes. That instance
creates a new thread which has an endless loop.
1.
If I just close the form (mouse click on "X" for i... more >>
Signaling for a running application
Posted by Peter Baranyi at 4/11/2008 10:36:02 AM
Hi all,
I have a Delphi application (written by me) what I have to port to c#/.NET.
In the application all the menupoints open a form, so I tought, I will port
the forms of the original appl. by menupoints. So when the user clicks on a
menupoint, what already ready in c#, I have to signal s... more >>
Registry changes
Posted by TomM at 4/11/2008 5:40:06 AM
I need to make a change to a reistry key on about 200 XP workstations and
want to write a script to do it. Anyone know where I can find RegChg.exe?
Thank You... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML deserialisation - backwards compatability
Posted by Dylan Nicholson at 4/10/2008 10:33:05 PM
Hello,
I have an issue where I've replaced a single class field with a number
of separate fields that allow more fine control. The problem is that
my old files, saved using XmlSerialization, still have this old field
name in them, and I need to be able to read it and set the new fields
appro... more >>
ClickOnce and Firefox
Posted by Peter Carlson at 4/10/2008 5:54:16 PM
I understand that clickonce is supposed to be fixed in 2008 for Firefox.
Is this true? Do I need to create a new application? I tried just
rebuilding an existing project and opened the resulting publish.htm file
in FF and it just prompted me to save the .application file and not open
i... more >>
can not get AJAX to work on server, please help
Posted by simon at 4/10/2008 5:17:22 PM
hello,
I have a server set up on my local (home) network and can not get an
ajax application to run on the box. it works fine on our
developement server and also works fine locally.
I copied the application to the server, setup the website, installed
the ajax extensions, also loaded/enabl... more >>
.NET 3.5 application crashing machine
Posted by Debbie.Croft@nospamforme.com at 4/10/2008 3:47:22 PM
We've got a .NET 3.5 app that seems to be crashing a client machine
(periodically). Does the .NET Framework keep any logs that may help us track
down the problem? If so, where are they held?
... more >>
GAC Installation for ServicedComponents?
Posted by coconet at 4/10/2008 2:48:29 PM
I have installed my .NET assembly and components into a COM+ server
application. To make it accessible to .NET apps, I need to now get it
in the GAC, correct? Should I install into the GAC first or COM+
first? If I install it into the GAC first, how can I install it into
COM+ since I don't know ... more >>
Intersect two colections with .Net 2.0
Posted by Arne Garvander at 4/10/2008 12:42:02 PM
How can I compute the intersection of two sets of data, if the two sets are
in memory? I am using .Net 2.0.
I need to find the numbers that are found in both collections. Is that
called an intersect?
Maybe this would be an argument for getting Visual Studio 2008 and .Net 3.5.
--
Arne G... more >>
WCF and MessageQueue
Posted by Peter Larsen [CPH] at 4/10/2008 11:04:59 AM
Hi,
How do i send MSMQ messages using the old way
(System.Messaging.MessageQueue) to a host that use WCF ??
Messages sent through WCF are much bigger than messages created/sent through
MessageQueue.
Is there a way to exchange messages between the two systems ??
BR
Peter
... more >>
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!!
Posted by DR at 4/9/2008 10:23:14 PM
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!!
If I run PerformanceCounterCategory.Create() on my development machine it
only takes a
few seconds. But on remotely monitored machines it takes 3 minutes! Is this
because the
other machines are remotely monitored? S... more >>
How quickly check the directory on the emptiness?
Posted by Alexander Vasilevsky at 4/9/2008 7:34:17 PM
How quickly check the directory on the emptiness?
Faster than System.IO.Directory.GetFiles().
http://www.alvas.net - Audio tools for C# and VB.Net developers
... more >>
unable to install ANY .net frameworks to xp professional sp2
Posted by sickfoxskater@yahoo.com at 4/9/2008 3:37:29 PM
I have tried installing any of the .net frameworks to windows xp
professional sp2, I have even gone so far as to edit the registry.
This is the list of my most recent failures error codes.
[04/05/08,21:03:08] Microsoft .NET Framework 2.0: [2] Error:
Installation failed for component Microsoft ... more >>
Diagnosing unexpected process termination
Posted by n8allan@gmail.com at 4/9/2008 3:08:46 PM
I have a managed application running as a service at several hundred
sites. The application has logging code throughout, so it is clear
when the application shuts down normally. Several times a week, the
application will terminate unexpectedly at various sites; that is, the
logging just ends, ... more >>
System.Collections.Generic.List<int> myList = new System.Collections.Generic.List<int>(100);
Posted by DR at 4/9/2008 12:05:01 PM
System.Collections.Generic.List<int> myList = new
System.Collections.Generic.List<int>(100);
Does this preallocate 100 integers?
Also, is there any way to preallocate an array of objects all at once?
MyOb[] al= new MyOb[100];
for (int z = 0; z < nCount; z++)
{
al[z] = new MyO... more >>
certain unicode characters seem to freak out IndexOf
Posted by Mark at 4/9/2008 10:40:01 AM
Hi...
One of my coworkers recently discovered that the presence of certain unicode
characters in a string seems to freak out String.IndexOf() and was wondering
why that is. He wrote a little tester program that tested a big chunk of the
range and found some 4000 of them, but I'll just post... more >>
MSBuildBinPath for 3.5
Posted by Chuck P at 4/9/2008 10:24:00 AM
I have a web deployment project with the following msbuild code.
<Target Name="AfterBuild">
<Exec WorkingDirectory="$(OutputPath)"
Command="$(MSBuildBinPath)\aspnet_regiis.exe -pef connectionStrings
$(OutputPath) -prov HrCustomProvider" />
<RemoveDir Directories="$(OutputPath)/ConfigFi... more >>
How to the override web reference in class library
Posted by CraigHB at 4/9/2008 8:49:04 AM
I have a Visual Studio 2005 solution that contains a website and a class
library. The class library has a web reference to a web service. I want to be
able to override the URL used by the class library for its web reference,
ideally by just changing a value in the website's web.config.
Is ... more >>
BindingList.ListChanged event not firing
Posted by Zoodor at 4/9/2008 2:46:06 AM
I have some code, in .NET 2.0 that is making use of the BindingList<T> class.
When an item is added to the list, the ListChanged event is fired as
expected. However, if I change the value of one of the properties of an item
in the list, the ListChanged event is not raised. I am sure I must be ... more >>
WPF Checkbox issue
Posted by Dave Weeden at 4/9/2008 12:30:01 AM
Hi everyone,
I've run into a strange problem when prompting the user to confirm whether
they want to clear a checkbox.
It seems that showing a MessageBox during a PreviewMouseLeftButtonDown event
seems to disrupt normal operation of a checkbox in that it will no longer
uncheck itself.
... more >>
Is there any way to list which apps use .NET services? (XP)
Posted by adykes@panix.com at 4/8/2008 8:58:33 PM
Can find out which apps call .NET and, even which version of .NET each
calls?
Thanks
--
Al Dykes
News is something someone wants to suppress, everything else is advertising.
- Lord Northcliffe, publisher of the Daily Mail
... more >>
Unhandled Exception in Console Application
Posted by AG at 4/8/2008 4:34:30 PM
Can anyone point me to an example or info on handling unhandled exceptions
in a console application?
Preferrably VB.
Thanks,
--
AG
Email: discussATadhdataDOTcom
... more >>
Problem saving XML Data
Posted by barry at 4/8/2008 3:13:47 PM
Hello
Will modifying and saving XML data the copyright character has a additional
character © , my client class it a weired character.
i tried to save the file StreamWriter("xxx.xml", false, Encoding.UTF7 or
UTF8 or ASCII) nothing seems to elimnate the weired character.
can someone hel... more >>
retaining info after postback
Posted by Gabriel Pineda at 4/8/2008 1:29:46 PM
hi, i'm creating a table with rows on runtime.
the rows are added through some option on the page (not from db).
but when i do a postback a miss the info.
how could i retain that info?
please help!
... more >>
Load-balancing / routing with WCF
Posted by msdotnetclr@gmail.com at 4/8/2008 11:18:09 AM
I'm not sure if it is a good place to ask this question since there is
not microsoft.public.dotnet.framework.wcf group.
I just get started on WCF programming. The question I have is how to
do load-balancing / routing with WCF.
For example, I have 3 application servers running my services bas... more >>
LINQ Conditional Where
Posted by coconet at 4/8/2008 10:32:25 AM
I am trying to use LINQ to select some things from a tab-delimited
string. I have a "where" clause but I want to put some if.. logic
inside it. Right now I have this:
MyClassList =
from line in myReader.GetLines()
let lineItems = line.Split( '\t' )
where line.StartsWith( "#" ... more >>
Serialize/Deserialize
Posted by Roy at 4/8/2008 5:57:00 AM
I have a C# class generated by xsd.exe from the xsd file. I also have an xml
file defined by xsd and the root looks like:
<MyNickname:MyObject xmlns:MyNickname="..." xmlns:xsi="..."
xsi:schemaLocation="...">
....
However, these attributes in the root are lost when I deserialize the xm... more >>
Circual Dependencies problems
Posted by Troy at 4/8/2008 3:28:01 AM
Hi,
I have some circular dependencies that confuses me. I have 2 interfaces that
uses each others interface. When they are compile within the same assembly
there is no problem(?), but when they are in 2 different assemblies i get the
circular dependency problem (When adding reference!)...
... more >>
WaitForExit() times out when I try to capture multi-line Stdout
Posted by jbrock@panix.com at 4/8/2008 3:26:17 AM
I have written a short VB.NET function (see below) which captures
StandardOutput from a particular Windows program (myProgram.exe).
The problem is this: if myProgram.exe returns more than a single
line of text then WaitForExit() always times out! The function
works fine if myProgram.exe retur... more >>
nettiers and gridview
Posted by Gabriel Pineda at 4/8/2008 12:45:29 AM
hi, i have already binded a gridview and the data.
in my aspx i have something like that:
<asp:TemplateField><HeaderTemplate>Select</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink id="SelectLink" runat="server" NavigateUrl='<%#
"~/patientBook_step2.aspx?idtreatment=" + Eval("IDTreatment") +... more >>
|