all groups > dotnet framework > july 2006 > threads for july 15 - 21, 2006
Filter by week: 1 2 3 4 5
Imgaes from Icon
Posted by Angelina at 7/21/2006 3:11:46 PM
Do any one knows how can we extract all size of icons fron a icon into
images int .NET
e.g. a icon may contain three image type
1.16x16, 256 color
2. 24x24, 256 color
3. 32x32, 256 color
Now how can I get all of
- Angelina
... more >>
Security Permissions with embedded Winforms App
Posted by Jeremy at 7/21/2006 9:34:02 AM
I've got a .net 2.0 winforms app that is embedded in an IE page. When I try
to move this to a Windows server 2003 machine with IIS 6 I get a security
exception:
System.IO.FileLoadException: Could not load file or assembly xxxxxxx.Common,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=nu... more >>
ThreadPool queue size
Posted by yofnik NO[at]SPAM comcast.net at 7/21/2006 9:32:01 AM
Hello,
Does anyone know if there is a way to check the size of the ThreadPool
wait queue should the number of available threads become busy?
Thanks
... more >>
Compiler error
Posted by gopal.panda NO[at]SPAM gmail.com at 7/21/2006 6:50:16 AM
When ever i am trying to complie any program under VS.NET2005 editor i
get this error
" fatal error CS0014: Required file 'alink.dll' could not be found " ,
if anyone has the solution do let me know.
... more >>
System.net.mail
Posted by langhera NO[at]SPAM egaspari.net at 7/21/2006 5:24:02 AM
How can i send a mail message, using System.net.mail, with a recived confirm?
(like outlook)
Many thank's... more >>
Waiting for incoming data on multiple sockets
Posted by Markus Ewald at 7/21/2006 12:00:00 AM
Hi!
Using the System.Net.Sockets.Socket class, how am I supposed to wait for
incoming data?
If, for example, I've got a large number of connections that all need to
be monitored for incoming data, do I have to call BeginReceive() for
each socket (possibly producing 50 background threads ... more >>
System.DirectoryServices
Posted by Trevor Lawrence at 7/21/2006 12:00:00 AM
Having connected to a domain object, I want to read the minPwdAge and
maxPwdAge properties. These, however, are of type "Large Integer/Interval"
and there doesn't seem to be marsalling support for these. They come across
as System.__ComObject, and I can't do much with that.
Any ideas how ... more >>
msi .NET dependency
Posted by GraemeE at 7/21/2006 12:00:00 AM
Hi,
I've created setup and custom installer(C#) projects using VS2003 to package
and deploy an application to a device, but some users are reporting that
unless they have .NET 1.1 installed, when they open the msi, they get the
following message:-
"This setup requires the .NET Framework ve... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Determine culture of string
Posted by md_rogers NO[at]SPAM yahoo.com at 7/20/2006 8:07:09 PM
How do I determine the culture/language of a specific string?
Dim s As String = "some text"
How do I determine for instance, if s is Arabic text or not?
... more >>
Xml Serialization
Posted by Roy at 7/20/2006 7:50:02 PM
I have a class derived from System.Collections.CollectionBase. How do I do
serialization for it?
If two or more instances of class A share an instance of class B in my
object hierachy, how do I serialize them so that the instance of class B just
be serialized once? How do de-serialize it ba... more >>
Replace registry data with app.config
Posted by newscorrespondent NO[at]SPAM charter.net at 7/20/2006 3:19:38 PM
Is there an MSDN article that I can't find on replacing the registry calls
(Registrykey.GetValue, Registrykey.SetValue) with the calls to get and put
the same data in app.config?
Thanks
Tom... more >>
Assembly reported as built without debug info - that is not true
Posted by Juan Dent at 7/20/2006 2:50:02 PM
Hi,
I have copied and registered to the GAC an assembly from my main machine to
another one. When I try to remotely debug the application that loads that
assembly, I get an error that does not make any sense (since I can perfectly
debug it in my own machine):
-----------
The following m... more >>
Strange Socket 10061 Error
Posted by Ken Haynes at 7/20/2006 1:22:01 PM
I'm trying to get the motion detector sample code running from Scott
Hanselman's "Some Assembly Required" entry here:
http://msdn.microsoft.com/coding4fun/someassemblyrequired/babies/default.aspx.
Very cool stuff, by the way.
I'm using Visual C# 2005 Express Edition to build the applicatio... more >>
Is it possible to dynamically set DataGrid Column Styles
Posted by Guy Thornton at 7/20/2006 1:15:02 PM
Hello everyone,
I am really stumped about how to accomplish this and I am looking for
suggestions, and opinions on the best way to handle this scenario:
I am writing a Questionnaire application in VS 2005, using .NET 2.0.
The form uses a datagrid to display questions and answers on it. I... more >>
Text File Manipulation
Posted by Frank at 7/20/2006 9:21:02 AM
Not Sure if this is the correct category, but here goes.
I would like to open up certain text files in a folder. I would then like to
change
a particular string to something else. Is there a way to update a record while
reading through the text file, or, can I issue a REPLACE command to the
e... more >>
Error: memory at "0x00000003"
Posted by ciccio erisud at 7/20/2006 7:29:02 AM
Hi all,
I recived the following error:
The instruction at "0x00000003" referenced memory at "0x00000003".
The memory could not be "read"
Click on OK to terminate the program
How can I fix it ?
Could you say me somethings ?
Thanks in advance.
//Luca... more >>
problem de-serializing binary data stored in db
Posted by Econnolly at 7/20/2006 7:24:02 AM
In .Net Framework 2.0 (VS2005) I'm having problems deserializing binary data
that was serialized and stored in a mysql 5.0 longblob field (stored via the
mysql data connector datareader object). I have modified the code to try
various suggestions I've seen in the forums, but no luck so far. Th... more >>
Generic controls
Posted by Romain TAILLANDIER at 7/20/2006 2:30:36 AM
Hi group
I have created a generic control (winform) which is like a ComboBox,
displaying a ListView instead of a ListBox, and allow to select a
strongly type item. All the items are of the same type, and the
datasource is a List<> of that type.
public class Selector<E> : Control where E : ... more >>
Reflection questions
Posted by Martin Bischoff at 7/20/2006 12:00:00 AM
Hi,
if I have two classes, ClassA and ClassB, and ClassA has a member of
type ClassB, is it possible from within ClassB to find out that the
current instance is a member of ClassA?
Example:
class ClassA
{
private ClassB _myClassB = new ClassB();
}
class ClassB
{
public void Fi... more >>
MS Enterprise Library ib VB.NET
Posted by Chad at 7/19/2006 5:45:38 PM
Not sure where to post this one to..
Is it only available in C#?
Thx
... more >>
Need architecture suggestion
Posted by Steve B. at 7/19/2006 5:21:51 PM
Hi,
I'm planning to build a small application that can manage and share
favorites as a self learing app. I'd like your inputs to help me correctly
design the application.
The goal of the app is to help the user to keep its favorite, and share
favorites between other users (corporate favo... more >>
System.Diagnostic.Process
Posted by Guest at 7/19/2006 4:11:01 PM
Does anyone know the best way to interact with a command application using
System.Diagnostic.Process if the command application never exits?
In other words, The OnOutputRecieved event doesn't fire until the app
exists, which is not too helpful because I want to interact with the app
while i... more >>
Enterprise Library and PostgreSQL (Npgsql)
Posted by Bradley Plett at 7/19/2006 2:59:53 PM
I have two questions that I hope I'm posting in the right area. I've
posted in the pgFoundry forums as well, in hopes that someone can
answer these.
I'm using the Npgsql .Net data provider for PostgreSQL
(http://pgfoundry.org/projects/npgsql/).
1) Has anyone already added support for this ... more >>
Serialization and parameterized constructor
Posted by Stan at 7/19/2006 1:46:28 PM
Although this issue came up in the web service, I believe it is related to
serialization in general.
This is my web service interface definition:
========
public class HistoryAttribute
{
private int key;
private string value;
public HistoryAttribute()
... more >>
Rebuilding dll without any changes and binary differences
Posted by Peri at 7/19/2006 1:28:04 PM
I build dll and change it's name.
Than I build it again without any changes (neither in code nor dll
version).
Than I run binary compare on this two dll's and they differ. Why?
--
Piotr... more >>
Different between operator comparision and '.Equals(x)'
Posted by Anthony at 7/19/2006 1:12:01 PM
Hi All,
I would like to know what is the differnet between operator comparision
and '.Equals(x)'
Anthony
... more >>
How to create and delete file on PC File Share from Windows Mobile
Posted by billyste at 7/19/2006 11:38:01 AM
Has anyone be able to create or delete a file located in a PC File Share
folder? I keep getting a "UnauthorizedAccessException". I need to be able to
delete the file on the PC after the mobile device grabs a copy of the file.
The copy is working so I know I have a connection. I've opened all
... more >>
exposing an object serviced by a window service program to .NET cl
Posted by Benny at 7/19/2006 10:32:02 AM
I have a window service in .NET and would like to expose an object
(serverobj) for other .NET clients to call. When the clients connects to
serverobj, I need the instance of the object provided by the window service
instances.
I created a client and add a referenct to the service program... more >>
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same
Posted by Walo at 7/19/2006 9:00:46 AM
I searched in the internet and there was no solution that worked for
me. The funny thing is, that the same application work fine on a
different server.
Thanks for every help!
Here is the complete Error-Code:
Validation of viewstate MAC failed. If this application is hosted by a
Web Farm ... more >>
Cannot access a necessary file "msvcr80.dll
Posted by Jeffery at 7/19/2006 8:52:02 AM
I have a question....
Several Microsoft.net\Framework .exe files cannot access msvcr80.dll. I am
not sure how to fix that. I am not sure I even have a msvcr80.dll as I see
reading around that 70 was that last one. Anyway, any help in directing me
to where I can get this file would be great... more >>
Serialization takes to long. Any suggestions?
Posted by E at 7/19/2006 8:28:02 AM
I have binary datafiles that I read and write from a stream that is created
through Serialization/DeSerialization. These data files are very large and
it's taking to much time to deserialize the stream.
I have already implemented the SerializationInfo/StreamingContext
Constructors and ... more >>
Working with a plugin architecture (binary references)
Posted by Dan Dorey at 7/19/2006 8:17:31 AM
I'm in the midst of creating a plugin framework with the goal of making
it as easy as possible for myself and other developers to both create
new plugins and work with existing ones.
Each plugin has a seperate sub-dir for each plugin with all external
dependencies located in this directory. ... more >>
DeclaringType vs. ReflectedType
Posted by Sathyaish at 7/19/2006 7:38:10 AM
The documentation says:
System.Type.DeclaringType
~~~~~~~~~~~~~~~~~~~~~~~~~~
public override System.Type DeclaringType [ get]
Member of System.Type
Summary:
Gets the class that declares this member.
System.Type.ReflectedType
~~~~~~~~~~~~~~~~~~~~~~~~~~
public override System.Typ... more >>
ISO 3166 numeric code
Posted by Steve Wilkinson at 7/19/2006 3:54:01 AM
Using RegionInfo its possible to get the 3 letter ISO currency code, however
I cannot find any method to obtain the 3 digit ISO currency code.
For example:
GBP (3 letter ISO currency code) = 826 (3 digit ISO currency code)
Is there any support in .NET 1.1 for this or do I have to write a... more >>
how to get instance id of runtime objects in .NET?
Posted by lyubomirskiy NO[at]SPAM gmail.com at 7/18/2006 11:52:50 PM
Hi,
I was wondering if it is possible to obtain instance id of any random
instantiated object during execution of a C# program. I am guessing
that System.Runtime namespace might be used for this, but I have no
clue as to the specifics. I cannot just insert the id field into the
class declarat... more >>
tools...
Posted by Ginny at 7/18/2006 11:09:19 PM
are there any good tools that can show us the loading time of an
application, etc?? in case when we use jit or ngen.exe??
--
Regards
Ginny
... more >>
type safe...
Posted by Ginny at 7/18/2006 11:04:32 PM
hi,
what exactly is code being type safe??
the documentation says...
------------------------------
As part of compiling MSIL to native code, code must pass a verification
process unless an administrator has established a security policy that
allows code to bypass verification. Verificat... more >>
econo jit
Posted by Ginny at 7/18/2006 10:58:38 PM
there are three types of jit?? can anyone elaborate on that?? what is econo
jit? is there an option of compiling our code using econo jit?? is it
available now?? how can we use it ??
--
Regards
ginny
... more >>
Events in C#
Posted by pSm at 7/18/2006 10:21:01 PM
When I override the 'add' and 'remove' methods for an event, why can't I
invoke it ? The sample code is provided below - I have two events - 'my' and
'ev' - while invoking, my() works but ev() does not ! The compiler complains
that : The event "'Blog.EventsvsDelegates.Form1.ev' can only appear... more >>
Datagrid caption missing?
Posted by billmiami2 NO[at]SPAM netscape.net at 7/18/2006 6:07:52 PM
I can't compile an existing ASP.NET project on one of my machines
because of the following error:
"System.Web.UI.WebControls.DataGrid does not contain a definition for
Caption"
It compiles fine on another machine. The documentation shows that
Caption is a property of a datagrid. Is there ... more >>
Framework version question
Posted by Murray jack at 7/18/2006 11:58:34 AM
Apollogies if this is in the wrong group
I am looking for a way to compile an assembly in VS2005 under framework 2
and then force it to run under framework 1.1 - is this possible?
I have created a simple console application which returns me the framework
version using the following code
Con... more >>
Prob: New Programs Use Older Framework
Posted by Phil Galey at 7/18/2006 9:26:14 AM
I'm developing in VB.NET on Windows 2000 Professional. I have two versions
of.Net Framework installed: 1.03.3705 and 1.1
The software I create, when it is installed onto a target machine, it wants
to run the older version of the framework, not the newer version. It also
blows up before the p... more >>
SerialPort component problem while ReadLine()
Posted by korayk NO[at]SPAM gmail.com at 7/18/2006 7:20:53 AM
i am trying to use this SerialPort component of .NET 2.0 framework in a
very simple windows application and i am getting following exceptions:
A first chance exception of type 'System.ArgumentOutOfRangeException'
occurred in System.dll
A first chance exception of type 'System.IO.IOException' o... more >>
I set my Web application in offline mode ,but I still can not reopen this application without active network link.Who can give me any advice about it
Posted by msvs NO[at]SPAM newhua.com at 7/18/2006 4:33:43 AM
Could anyone know how to make a web application been manipulated in
offline mode without active network link ? Does offline web project is
really work while I want to work on my web project when not connecting
to web server ?
... more >>
Windows control in .ASPX page
Posted by Karthikeyan.T.S at 7/18/2006 3:13:01 AM
I have an .ASPX page in which a DLL (WindowsControlLibrary) has been embedded
through the <OBJECT> tag. I am able to get the control visually by calling it
in the JavaScript.But I am unable to access the Public property/methods from
that WindowsControl.I am using .NET Framework 2.0.
What woul... more >>
Windows service timeout
Posted by oscar.acostamontesde NO[at]SPAM googlemail.com at 7/18/2006 2:49:37 AM
Hello everybody. I'm currently developing a windows service. In OnStart
a launch two threads that carry on some work while the service is
running. My problem comes from the fact that once the service is
installed, it just time out at system startup and don't start. But i'm
able to start it manua... more >>
DateTime.Now.ToString("t") not printing what I expect
Posted by Eric Renken at 7/17/2006 7:29:55 PM
In my code I want to just display the time so I use the text formater "t" to
display the short time format.
I have my computer setup to display time in 24 hour format; however this
still displays time as "7:14 PM", and I would expect it to display "19:14".
My reginal settings, "Standards a... more >>
assembly merging
Posted by Martin at 7/17/2006 5:46:50 PM
hello,
today I read an article about the tool smartassembly. with that tool you are
able to merge assemblies. do you know the theory how to merge assemblies?
thx
... more >>
Installing .net with sql server 2005
Posted by Bis at 7/17/2006 5:25:34 PM
Hi Guys,
I am very poor in installation..
I was trying to install dotnet framework (the latest edition) in to my
computer.
In order to study , I have two computers at my home. One windowsXP(
lets call Computer1) and one Windows 2003 server(Computer 2) . My
intention is to save the SQL server 2... more >>
Framework versions
Posted by Malek at 7/17/2006 1:09:55 PM
Hi,
my applications are running on the old framework 1.0.2914.
Now I need the new framework:
Must I update the framework or can I install and run both of them?
Does the old application run in the new framework?
What is the best approch?
Thank you very much.
... more >>
Deploy multiple .Net web services?
Posted by Fan at 7/17/2006 10:46:07 AM
Dear all,
Now I am experiencing problems in deploying .Net web services to
production servers. We have multiple web services which share some of
the common libraries (.Net assemblies and .Net COM objects). These
common assemblies are put in "Common" directory. The structure looks
like:
... more >>
Assembly.Load from byte[]
Posted by buttslapper NO[at]SPAM gmail.com at 7/17/2006 10:16:27 AM
Hi,
Is it possible to load an assembly from a byte[] and make the framework
use this assembly instead of trying to locate them on disk..
Example :
My projet has a reference to the ESI.Framework assembly.
Assembly.Load(EmbeddedData.ESI.Framework);
ESI.Framework.Console c = new ESI.Framewo... more >>
Sending mail to exchange users using partial mail name
Posted by The Man From SQL at 7/17/2006 8:57:01 AM
I'm hoping there's an elegant solution to this problem.
I have a 1.1 desktop application with a custom security table that
authenticates and authorizes users based on Windows login. Recently I found
the need to be able to send these users an email at certain points, and the
assumption I wa... more >>
ToFileTime vs ToFileTimeUtc issues
Posted by philibertperusse at 7/17/2006 7:28:52 AM
I have stumble on problems with ToFileTime and ToFileTimeUtc.... No
matter what I try, I always get the same value out of both of them! You
can see that below:
Anyone has an idea why the following code:
class Program
{
static void CompareDateTime(DateTime dt, DateTime dtUtc)
... more >>
Sort
Posted by Milos at 7/17/2006 6:17:01 AM
would like to sort some objects (have some properties like ObjectName,
ValidFrom, ValidTo, Code,..) I would like sort this items via specific order,
for example:
I have a collection of object with Code N, V, C, S, Ts, Tv, B and need o
sort in this order V, N, C, Ts, Tv, B, S.
Is this possib... more >>
Bug in C# compiler
Posted by Vivek Thakur at 7/17/2006 3:15:02 AM
Hi,
I think there is a bug in VS 2003 as well as VS 2005 C# compiler. Let me
explain:
I have created 3 projects in my solution:
ClassLibrary1, ClassLibrary2 and ClassLibrary3.
Now each of these libraries has a single public class in it (classes r named
as A, B and C respectively) an... more >>
Query on the SMTPClient class
Posted by james at 7/17/2006 12:00:00 AM
Hi,
Does anyone know if it is possible to connect to an SMTP server without
actually sending a mail (specifically to retrieve the mail server "welcome"
response)?
I am looking to basically pick up the same as you would see if you did a
"telnet <mailserver> 25" from a command prompt.
Tha... more >>
Activator.GetObject Method (Type, String)
Posted by newscorrespondent NO[at]SPAM charter.net at 7/16/2006 6:52:36 PM
This method does not fail if the site is not running! Is there a way to
check the proxy for failure?
Thanks
Tom... more >>
regsvcs no longer works in .NET 2: "You must have administrative credentials to perform this task"
Posted by Meron Lavie at 7/16/2006 3:57:37 PM
I have written an application in .NET 2 (I also have .NET 1 installed).
Until a few days ago, I could use regsvcs without any problem in order to
installed my serviced assemblies in COM+. All of a sudden, when I tried it
today, I got "You must have administrative credentials to perform this
... more >>
Redistributing .Net 2.0 framework
Posted by Matthew Copeland at 7/16/2006 2:06:51 PM
Hi,
I am thinking about writing an app in C# 2.0 and starting to look into
distribution strategies.
Is it possible to distribute a setup program (VS, Installshield, Wise,
etc.) which dynamically determines if the 2.0 runtime is installed, and
if it is not it installs it from the internet fr... more >>
Button in DataViewGrid not displaying text... bug?
Posted by Raeldor at 7/16/2006 1:17:01 PM
Hi,
I have an unbound button in a dataview grid control, and it's not displaying
the text on the button correctly. I set both the Text and the
UseColumnTextForButtonValue properties, but the button is blank. I also used
the code directly from the 'How to: Add an Unbound Column to a Data-B... more >>
Singleton
Posted by Sathyaish at 7/16/2006 6:33:32 AM
OK, shame on me, I can't even do a singleton properly. I have
implemented this a thousand dozen times, but I guess I've now been
awake too long.
Here's the relevant snippet. When I compile, it rightly points out that
the member _plain, in the method GetPlain(int, int) requires an object
refer... more >>
Nested Iterators & C# 3.0 yeilds problems?
Posted by Andrew Matthews at 7/16/2006 12:00:00 AM
Hi All,
I have the following little class of iterators that allow me to iterate over
elements in the file system. I have nested some of them, and then added Func<FileInfo,
bool> delegates to filter out unwanted files. I get an InvalidProgramException
and haven't (yet) been able to find out wh... more >>
maintain string reference
Posted by Michael Wong at 7/15/2006 10:08:01 PM
Hi,
I would like to have a string point to another one.
What I mean is I want the pointing to change value whenever the pointed
one is changed. How can I do it?
Example:
string orgString = "Original string";
string ptrString = orgString;
orgString = "New string";
// Now, we have p... more >>
3rd party controls - from 2003 to 2005
Posted by yanivpr at 7/15/2006 5:48:53 AM
Hi,
My (C#) VS2003 solution includes some 3rd party controls.
I want to move to VS2005, but those controls just don't work. They were
made for Framework 1.1, and are not suitable for 2.0.
Is there any tool, or some kind of magic to make this compatible?
Thx!
... more >>
Load assembly .net
Posted by daniele.cerra.it NO[at]SPAM gmail.com at 7/15/2006 3:22:10 AM
Hi to all,
i need to know how the .net runtime load assembly, i.e. how the runtime
locate the assembly and how it is loaded, verified, etc...
I look on the web, but i find just how the runtime locate the assembly.
Any help would be appreciated.
Thanks
Daniele
... more >>
.NET one way Remoting
Posted by newscorrespondent NO[at]SPAM charter.net at 7/15/2006 2:13:56 AM
As a client I am sending data using a OneWay method to a server.
What happens if the client is sending messages faster than the server can
consume them?
Who is responsible for holding the queue?
If the object sending is a WellKnownObjectMode.Singleton what happens if I
send another mess... more >>
StackFrame debug information
Posted by newscorrespondent NO[at]SPAM charter.net at 7/15/2006 12:00:00 AM
I have compiled in DEBUG mode but don't get the debug information from
StackFrame class. Is there a specific setting I need to use so that
information is included for a debug build.
Thanks
Tom... more >>
|