all groups > dotnet framework > april 2007
Filter by week: 1 2 3 4 5
search results dialog box
Posted by petegb at 4/30/2007 6:19:01 PM
when i open search from the start menu, i get a listing in the task bar, but
the box cannot be seen. when i click on the task bar block it appears to fly
off the screen to the upper right... more >>
The Interlocked on the Edge of Forever
Posted by Chris Mullins [MVP] at 4/30/2007 1:13:47 PM
I've got a quick question that's been bugging me for a long, long time:
Let's say I've got a member variable (in a heavily threaded app):
private int _firstTime = 0;
To make changes to this is easy enough:
InterlockedExchange(ref _firstTime, 1);
.... or I can use the InterlockedCompa... more >>
some config error happens periodically only
Posted by gsl at 4/30/2007 12:11:47 PM
Hi
we have a number of web applications
once in a while they produce an error like below
if you restart IIS - they disappear
it happens on two servers
any ideas?
Thamks
GSL
++++++++++++++++++++++++++++++++++++++++++++++++
Configuration Error
Description: An error occurred durin... more >>
Determining if two paths are the same
Posted by Mark Chambers at 4/30/2007 10:27:40 AM
Hi there,
Given two file names in relative or absolute format, I need to determine if
they point to the same file. While I can simply pass each to
"Path.GetFullPath()" and compare the results, what is the rule regarding
case. That is, how do you determine whether the local file system is
... more >>
Directory Sizes and Performance
Posted by Flinky Wisty Pomm at 4/30/2007 3:44:54 AM
Hi all,
I need to regularly traverse a large networked file system and return
a list of directories and their respective sizes. The file system is
large enough that performance is a serious concern.
As well as the recursive [File/Directory]Info solution, I've seen
reference to using the Fil... more >>
Interface & Event
Posted by hufaunder NO[at]SPAM yahoo.com at 4/29/2007 1:25:23 PM
I have an interface ITest that includes an event TestStatusChange.
There is also a class Test that implements ITest. In one of the
functions of Test I want to call the event (see code at the end) but
get the following error:
"The event 'eventTest.Test.TestStatusChanged' can only appear on the
... more >>
System.Speech
Posted by Arne Garvander at 4/29/2007 6:24:03 AM
How do I add a reference to System.Speech in Visual Studio?
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)... more >>
Any groups created for WPF / WCF ?
Posted by Jigar Mehta at 4/29/2007 12:00:00 AM
Hello,
is there any specific newsgroups created for WCF or WPF ?
I tried searching but could not find.. it would be a good idea if Microsoft
can create such newsgroups, will help people developing early applications
on these new technologies. Newsgroup on LINQ would also be a good idea.. !... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataSet fields not updating, no errors being generated
Posted by Alex at 4/28/2007 9:15:05 AM
I am using a web service to update some database fields. I used the
dataset designer to define my datatable and tableadapter. I had it
automatically create the insert, update, and delete statements.
When I run the update method, all of the fields are updated except for
four datetime fields. An... more >>
Service running Infinitely
Posted by mkashif1 NO[at]SPAM gmail.com at 4/28/2007 3:34:27 AM
Hi,
I'm developing a service that should run infinitely and should not be
stoppable. The
user (any user even admin) should not be able to stop/terminate the
service.
Is there any way? or should I go for a normal other than service?
Any recommendations are appreciated.
thanks
... more >>
Retrieving data from a Windows Service
Posted by Greg at 4/27/2007 5:54:04 PM
Hi,
I have a collection that resides in a windows service and I want to
know is remoting the best way to access this data? The collection
will change on an ongoing basis, but whenever I make a request to the
windows service I want to be able to get back the latest elements in
the collection.... more >>
deadlock on a single Select not in a transaction
Posted by ThunderMusic at 4/27/2007 3:03:08 PM
Hi,
We have a web application developped in asp.net (I think it's not relevant,
but well, it's so you know)... Yesterday, we received the following message
"Transaction (Process ID 69) was deadlocked on lock resources with another
process and has been chosen as the deadlock victim. Rerun the ... more >>
Subclassing question.
Posted by Andrew at 4/27/2007 11:06:02 AM
Hello,
I followed the MS instructions to subclass Windows using C#.net
(http://support.microsoft.com/kb/815775) as the follows. I then opened
several Excel files, and selected anyone of them as foreground window. I was
expecting to see windows message, saying WM_ACTIVATE, or something like... more >>
why use .net?
Posted by brazen at 4/27/2007 12:00:00 AM
Hi there,
We need to retrospectively justify our choice in using .NET framework for
developing our site. Our techie isnt here so we cant run it past him. Can
some kind, helpful person run their eye over it and tell me if I'm tellling
porkies, or if there is anything I should add?
Why sho... more >>
Custom control loading order
Posted by devtotal NO[at]SPAM com.com at 4/27/2007 12:00:00 AM
Hi, I have a custom control which loads data, with some critera from a
property of the hosting UserControl.
I try to get the property value on BindingChanged in my custom control,
but, at that time, host UserControl is not completly loaded, so my
property is NULL.
I can't call a custom c... more >>
how to avoid inlining?
Posted by Lloyd Dupont at 4/27/2007 12:00:00 AM
I have some code which looks like that:
[DefaultValue(CornerStyle.Rounded)]
public CornerStyle RectCornerMode
{
get { return this["RectCornerMode"].GetValue<CornerStyle>(); }
set { this["RectCornerMode"].SetValue<CornerStyle>(value); }
}
in this[string] I get the attribute... more >>
Build "Release" for asp.net website
Posted by isamusetu at 4/26/2007 5:42:02 PM
I build a website solution by using visual studio 2005, how can I build the
"release" version, because I just find the "debug" in the IDE and it seems
it's necessary to append the configuration manually.
--
ISAMUSETU... more >>
What can we do in C#.net with a given window handle?
Posted by Andrew at 4/26/2007 2:42:03 PM
Hello, friends,
What can we do in C#.net with a given window handle? For example, can we
activate or close this window? How? Any reference papers?
Thanks a lot.... more >>
"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel"
Posted by Brenton Unger - MCSD.NET at 4/26/2007 2:35:41 PM
Alright Googler Groupers!
I've searched high and low and tried everything I care to, so I'll see
what the masses can conclude! I'm making both UPS and PayPal calls and
both of them *occaisionally* throw this error. Please help!
The error I receive is :
"The underlying connection was close... more >>
Custom app and Korean
Posted by Michael Jackson at 4/26/2007 2:14:45 PM
I have an application written in .NET, running under Windows XP SP2 and
Windows Server 2003 with SQL Server 2000 as the backend. This app basically
indexes documents to allow keyword searching.
We now need to load and index Korean language documents, but I have
absolutely no idea what would... more >>
managed API equivilent to WNetAddConnection
Posted by Kristofor at 4/26/2007 11:18:03 AM
Hi,
I'm wondering if there is a managed class/method that is equivilent to the
WNetAddConnection API. I am writing an app that is required to connect to
various network resources without knowing whether those resources are
connected before hand. I also need the functionality of being able... more >>
Invert of background color
Posted by Mahesh Nimbalkar at 4/26/2007 10:38:03 AM
Hi,
I have color as System.Drawing.Color c1 object as background color. Now I
would like to get another System.Drawing.Color c2 object which is invert of
c1 color to be used as foreground color.
e.g if I have c1 as black and I should get c2 as white.
Thanks,
Mahesh... more >>
Dotnet framework 3.0 questions
Posted by Preeti at 4/26/2007 10:07:22 AM
Hi check this for your questions on dot net framework 3.0
http://dotnetintervies.blogspot.com
Preeti
... more >>
Doing "using" with CodeDom?
Posted by Kevin Burton at 4/26/2007 9:18:02 AM
Is there any way to do "using" with the CodeDom?
using(SqlConnection connnection = new SqlConnection("..."))
{
}
Kevin... more >>
XmlNode.InnerXml and Xml Readers / XmlDocument
Posted by Hermit Dave at 4/26/2007 5:20:05 AM
Hi,
I am currently working on xml files and i am trying to ensure that my code
handles any encoded chars (like > < & ' stored as < > " ' )
I am currently using XmlValidatingReader.ReadInnerXml() but i have noticed
the behavior with XmlDocument too.
assume that i am trying to rea... more >>
int.Parse and NumberStyles.AllowParentheses
Posted by bernhard at 4/26/2007 4:46:01 AM
Hi,
Just a quick question: How come that using int.Parse("(20),
NumberStyles.AllowParenthesis" ); returns a negative value?
I would definetly expect that call to return something positive.
Thanks, Bernhard.... more >>
Apps From Network Drive Problem
Posted by d.hamer NO[at]SPAM blackburn.ac.uk at 4/26/2007 3:54:24 AM
Firstly Im writing not as a programmer, but a a network admin.
We are having a problem where students cannot run applications in
VB.net from their home area (a network drive). However the same app
works fine from a local drive or pen drive.
Does anyone know of any active directory restrictio... more >>
Which .NET Framework version on Windows 2003 Server
Posted by Philip at 4/26/2007 2:44:05 AM
Hi,
Can anyone tell me which version of .NET Framework is installed with Windows
Server 2003 and what updates are made by Service Packs
thanks
Philip
... more >>
Control the CPU Utilization during Application Execution written C#.Net
Posted by apondu at 4/26/2007 12:22:15 AM
Hi,
This is Govardhan, i am working on C#.Net.
I have a problem and i am sure most of them would have come across
this
problem. I have written a application in C#.Net. It does lot of work
so i know
it'll take time for the execution. But my problem is it starts
utilizing 98 to
100% ... more >>
Invoking WCF client from Excel VBA
Posted by Arun at 4/25/2007 4:26:50 PM
Has anybody try to invoke a WCF (.NET 3.0) web service client
from unmanaged code (and especially from Excel VBA) ?
When I tried it I got:
--cut here--
An error occured creating the configuration section handler for
system.serviceModel/client: That assembly does not allow partially
tru... more >>
HTML Validation SUDDENLY Problematic
Posted by ujjc001 NO[at]SPAM gmail.com at 4/25/2007 11:45:39 AM
2.0 aspx page:
So- today I open a project I worked on probably last wednesday and I
now can't get into design view.
For example, the following page give the following error:
Cannot switch views: Validation (Internet Explorer 6): Element 'style'
cannot be nested within element 'td'.
I'v... more >>
Basis question to cardSpace and PDA
Posted by scotty at 4/25/2007 4:29:08 AM
Hi,
i have some questions: Can I install CardSpac on a PDA? If It's
possible, how can I realize this?
Can I implement CardSpace using C++?
Hope someone could help me.
br,
Scott
... more >>
Flag enums with multiple zero values...
Posted by Nathan Baulch at 4/25/2007 12:28:28 AM
I'm having issues working with some legacy enums that have multiple zero
values.
Whenever I try to call ToString() on one of the non-zero values, all but the
first zero value is included.
Is there any way to get the non-zero value name without resorting to string
manipulation or manually ite... more >>
Opening Mailclient with MAPI
Posted by Christof Nordiek at 4/24/2007 3:41:32 PM
From my application, informations can be sendt by the user. Until now I'm
using
Process.Start("mailto:....)
This works very fine, but I get problems, when the preset content is to
much, because the length of the URL is restricted.
IIRC this also can be solved by MAPI, but I can't find any exa... more >>
Interrupted FtpWebRequest upload stream
Posted by Dean J. at 4/24/2007 3:18:01 PM
VS 2005 Team Dev. SP1
When an upload using ftpWebRequest fails because of a lost connection, I
want to be able to use GetSize and then reposition the source file stream and
try again where it left off using the "Append" this time.
The problem is the crazy connection is left open to the FTP... more >>
Request for principal permission failed
Posted by Bruce Parker at 4/24/2007 11:48:01 AM
I have an issue that is making no sense. I have code that sets up code
access security. In my Windows Form application, I am able to do to create
an instance of the user control "Requisition" with no exceptions if the user
has the proper role:
<Security.Permissions.PrincipalPermissionAttri... more >>
Cannot Install .net Framework 1.1 - RegSvcs.exe - Common Language Runtime Debugging Services
Posted by darmin.memisevic NO[at]SPAM gmail.com at 4/24/2007 7:03:53 AM
Hello,
I am trying to isntall .net Framework 1.1 that I'm getting from
Microsofts website...
When I run the settup file I get an error message:
RegSvcs.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Process id =0xb18... more >>
Re: framework 1.1 & Queue class
Posted by Brian Gideon at 4/24/2007 6:30:50 AM
On Apr 24, 2:59 am, "oscar.acostamonte...@googlemail.com"
<oscar.acostamonte...@googlemail.com> wrote:
> Hello:
> Also you can use a sync object, and place queue acces code in a lock
> statement.
> object o = new object();
> lock(o){
> //Queue operations...}
>
> Best regards.
> Oscar Aco... more >>
Re: framework 1.1 & Queue class
Posted by Brian Gideon at 4/24/2007 6:24:56 AM
On Apr 24, 5:35 am, Rory Becker <RoryBec...@newsgroup.nospam> wrote:
> I would like to tak an extra question on to this one.
>
> I am interested in using a HashTable in a similar fashion.
>
> I was wondering is the "local sychronized wrapper" technique applicable here?
>
Yes, it works in a ... more >>
Application Design Question
Posted by dfa_geko at 4/24/2007 12:00:00 AM
Hi Everyone,
This is just a simple application design question. I was just wondering how
different people would approach this problem.
Suppose you had to design a form where you edit a record and in the form
there is a list box. You can select multiple items in the list box that are
tie... more >>
cannot access web browser from office program
Posted by ohnoproblems at 4/23/2007 11:22:02 PM
when i try to go online using an office program such as word, excel, access,
or publisher i get an error message saying error launching browser---can
someone please advise as how to fix---i tried repairing the install of office
pro 2007---but that didn't fix the problem---i didn't use the inst... more >>
to veiw data in datagrid
Posted by lijin at 4/23/2007 10:46:02 PM
its a vb.net code .....im doing a data base
> application.....the datbase is ms sql server...in my
> front end form there is a datagrid where i have
> displayed the details from the database by dragging
> it into a dataset.....after words i have created a
> test box where i enter some selective... more >>
FtpWebRequest with X.509 Authentication
Posted by Digineer at 4/23/2007 10:06:00 PM
I have been very confused about the purpose of ClientCertificates on
FtpWebRequest. What I need to do is authenticate to an FTP server using ONLY
an X.509 certificate, no username or password. Is there any way to do this
with .NET 2/3? Internet Explorer does it just fine...... more >>
Reading DBF files in C#
Posted by Hilton at 4/23/2007 7:10:20 PM
Hi,
What is the easiest way to read DBF files in C#? This is a preprocessing
step and performance is a very low priority. I don't need to process
indices etc, just read each record, grab text data out of a few fields and
move to the next record.
Thanks,
Hilton
... more >>
framework 1.1 & Queue class
Posted by Hermit Dave at 4/23/2007 9:02:00 AM
Hi,
I am in need to a Queue class for a high speed read write operation where i
do not have to look the object / collection in order to add / remove items. I
had a look at System.Collections.Queue class and i need some clarification:
msdn documentation says that instance methods are not thr... more >>
reading files
Posted by AVL at 4/23/2007 8:32:00 AM
Hi,
Need some info....
I want to read all the folders and files present in my C drive..in .net 2.0
how to we acheive it?
Mu purpose is to display all teh files ina given drive...any good samples.....
... more >>
Assembly Resolve Anomaly-Please Help
Posted by Mads Nielsen at 4/23/2007 3:52:02 AM
Hi,
We've run into a problem that have stumped us, and was wondering if anyone
else has encountered this.
We have a product (Windows Service) that supports a plugin architecture.
Assemblies are loaded from disk at startup. This works fine normally, but for
one of the plugins on a few mac... more >>
how to HTTP post multiple files and key-value pairs?
Posted by Lloyd Dupont at 4/23/2007 12:00:00 AM
Hi!
I am a bit lost. I want to upload multiple files and key-value pairs via
HTTP post.
A single file and a single collection of key-value pairs is easy. You just
have to use the System.Net.WebClient class and its UploadFile, UploadValues
method.
Can anyone explain to me how to post ... more >>
singleton
Posted by Nick C at 4/23/2007 12:00:00 AM
Hi
I would like to implement a Systemwide singleton in .net. Is it sensible to
use a mutex for this? The application only can be run by one user at the
time. Does anyone have any articles/samples that can help me with this
problem?
thanks
N
... more >>
singleton
Posted by Nick C at 4/23/2007 12:00:00 AM
Hi
I would like to implement a singleton in .net. The application only can be
run by one user at the time. Does anyone have any articles/samples that can
help me with this problem? thanks
N
... more >>
|