|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET Frameworkmicrosoft.public.dotnet.framework
Windows XP and HP all in 1 printer problems
mollybean -
10 Feb 2007 11:18 PM - 2 messages
I just bought a 7310 HP all in one and the software didn't install all the way and the computer is not communicating with the printer for the scan and fax modes but will communicate to print. The process of installation stops at ...
windows service and exe
Jeff -
10 Feb 2007 7:16 PM - 2 messages
I need to start an executable program from a web service. Then I need to monitor it and ensure that it is still running. If it stops running, I need to re-start it. Any thoughts, and especially code examples would be great. ...
Windows XP games to Windows Server 2003
klingstin -
10 Feb 2007 2:27 PM - 2 messages
Can I download the games that come with Win XP OS to Win Server 2003 Enterprise? If so where can I get the games file? I have Win XP Disc but no access to load games. I'm getting bored!!!!!!! ...
String to byte[] reloaded
nano2k -
10 Feb 2007 2:14 PM - 4 messages
Hi I need an efficient method to convert a string object to it's byte[] equivalent. I know there are LOTS of methods, but they lack in efficiency. All methods allocate new memory to create the byte[] array. Of course, ...
DataGridViewCheckBoxColumn null/default value
juhimg -
10 Feb 2007 6:28 AM - 3 messages
Hi, I'm using a DataGridView with some checkboxes (DataGridViewCheckBoxColumn). It seems that the check box is initialized to null. I set the TrueValue, FalseValue, and IndeterminateValue to the appropriate values (true/false). But I haven't found any property that sets the null value to false. As a ...
Windows DST patch causes DateTime.IsDaylightSavingTime() to be incorrect for dates in past years
Wayne -
10 Feb 2007 1:18 AM - 6 messages
An interesting problem has arisen concerning the new Windows DST patches. The rules seem to apply without regard to year. For example, run the following C# code (assume you're running in the US Eastern time zone): DateTime d = new DateTime(2006, 11, 1); ...
Outlook Express message rules
ikerdt -
9 Feb 2007 7:50 PM - 3 messages
How do I set up rule so that messages from parties who are not in my approved sender list go to a special folder? ...
Size of an object
ThunderMusic -
9 Feb 2007 7:28 PM - 3 messages
Hi, is there an easy way to know how much memory an instance of an object takes? I mean, there is the sizeof(type), but this is not what I want... the sizeof(type) returns the size of all the members of the class, but if the ...
Temp Folder
MLM450 -
9 Feb 2007 2:06 PM - 3 messages
I am trying to find something I swear I stumbled upon a few weeks ago. I thought I saw something in the framework that provided the path to the "...\Local Settings\Temp" folder. It also had a function for creating a new folder within it. Can someone point me to this, or am I ...
.NET Framework 1.1 and .NET Framework 1.1 Hotfix (KB886903)?
Brian McCullough -
9 Feb 2007 1:53 PM - 1 message
Hello, I have a development machine (Windows XP SP2, all security updates/fixes, 20GB C partition, 60GB D partition) with Visual Studio 2003 and 2005 installed (I do dev work in both). I already have SP1 for .NET 1.1 and ...
.NEt 2.0 : Threading questions
Steve B. -
9 Feb 2007 10:04 AM - 5 messages
Hi, I'd like to know what is the difference between the class AutoResetEvent and ManualResetEvent. Actually, I want to use the WebClient.DownloadString method to download 8 files simultaneously in order to concatenate the content of the 8 files (no ...
How to protect package before unauthorized use
Nick -
9 Feb 2007 8:49 AM - 1 message
1. I'm searching information about indemnifying package before unauthorized use. 2. How can i compare packages if are signed 2 same certificate and public keys Regards, Nick ...
Question about Assembly.CreateInstance()
Brad Figler -
9 Feb 2007 3:30 AM - 3 messages
Here is my setup: I want a plugin interface for my application. I have my main app named App.exe I have a plugin interface assembly named PluginInterface.dll (defines IPluginInterface) I have a plugin implementation named PluginTest.dll (defines TestClass) ...
Interop and Constants Problem
Giovanni -
8 Feb 2007 10:14 PM - 3 messages
Hi, I have built a VB.NET, VS 2005 class library that is exposed to VB6/COM clients. Everything works as expected except for the fact that Constants (Const) are NOT being exported to the VB6/COM type library; they are not ...
CGI problem
alabrada -
8 Feb 2007 9:09 PM - 2 messages
Hi, i'm doing a console application, is a CGI program, every thing is OK, but, when I add a Web Reference to a XML Web Service and try to use a function from the Web Services the answer is always ...
how to specify private key to generate signature
Benny -
8 Feb 2007 7:20 PM - 4 messages
Problem domain: I need to generate a digitial signature for a file using a private key. The receipient would have a public key, the generated digital signature and the file to verify that the file has not been tamper with. ...
Running Applications
Roman Benko -
8 Feb 2007 7:04 PM - 4 messages
Is there a way using .Net to determine which applications are currently running? For example, in Windows, if you press Alt-Tab, you will see a list of applications currently running. I have looked at process.getprocesses, but that returns all running processes instead of just applications. I would ...
Reading an XMLFile
Jon -
8 Feb 2007 5:29 PM - 2 messages
Hello all, In the below XML: - <comment_list description="Comment list"> - <comment description="Comment" item_no="1"> <date description="Date">2006-09-27</date> <author description="Author">HKGE0406505.001</author> ...
How to pass global parms to web service???
JP -
8 Feb 2007 5:24 PM - 2 messages
I have a web service with several methods in it. When the user creates an instance of this WS, I want to pass parameters to the instance: localhost.WSdemographics myClass= new localhost.WSdemographics(string Username, string Password); Once the user creates this instance, then they can use the actual methods in ...
Wanting to read XML blob from configuration
nickdu -
8 Feb 2007 5:02 PM - 8 messages
I'm probably missing something because the .NET configuration model seems pretty screwed up. Since the configuration file is an XML file it would seem to make sense, at least to me, to have the reading/writing of configuration ...
ClickOnce and proxy 407 error
Patrick31 -
8 Feb 2007 4:37 PM - 1 message
Hello, In our company, we would like to use ClickOnce which seems to be a very efficient way to deploy application. So we made some small tests and we quickly found the problem of the proxy 407 Error. We looked for any solution on the internet but we only found that we have to ...
Controlling Windows Firewall from .Net
Stuart Parker -
8 Feb 2007 11:36 AM - 11 messages
Hi, I have written a service which listens on a particular port (using remoting). The service runs under a user account with local admin rights. This service will run on XP/Server 2003/Vista. I need to either open the required port, or register my app with the Windows ...
How to decrypt a string?
Ralph Moritz -
8 Feb 2007 9:01 AM - 8 messages
Hi group, I'm trying to encrypt & then decrypt a string using symmetric encryption. The encryption seems to work fine, but when trying to decrypt, I get a System.IndexOutOfRangeException. Please would someone be kind enough to point out my mistake? Please see my code (C++/CLI) ...
Is there a Generic Collection with events?
Lee Grissom -
8 Feb 2007 1:04 AM - 4 messages
There's Collection<T>, but it doesn't have event hooks for items added or removed. I was going to create a descendent that does just that, but before I do, I want to make sure there isn't already something that exists in the ...
Deadlock in XmlSerializer when using RedirectStandardInput
MinerDev -
7 Feb 2007 9:16 PM - 1 message
Problem I have encountered a situation where a thread (say, thread-1) blocks for 10 minutes in the XmlSerializer constructor. This occurs when another thread (say, thread-2) is blocked in a call to Console.ReadLine and the process was ...
.Net runtime 2.0 error, Event id: 5000
kimtherkelsen@gmail.com -
7 Feb 2007 8:42 PM - 2 messages
Hi, I have made some software that uses one of the COM ports to communicate with an external device. The software is written in C# and uses the new SerialPort class in .Net 2.0. It works perfectly when I use the COM ports that are integrated in my ...
Very long COM initialization within .NET application
CarlosSanchezJr@gmail.com -
7 Feb 2007 8:22 PM - 1 message
I have an odd problem with a COM DLL included in my .NET application. Just a quick piece of background: - We have a scanning feature in the application. - We take the scans and convert them to PDF, saving them in a database ...
Clear Keyboard Buffer
Mike -
7 Feb 2007 8:15 PM - 2 messages
Does anyone have a simple function to clear the keyboard buffer? I need to make sure and clear any keystrokes before I exit my application. Thanks, Mike ...
COM Object Dropout
bern11 -
7 Feb 2007 8:08 PM - 1 message
I'm writing a front-end for an application using COM to control it through simple dialog boxes. So far - awesome. But, one question: How can I detect that the application fired-up through COM has not crashed ...
Net.Mail attachments
Arne -
7 Feb 2007 7:36 PM - 4 messages
I need to attach a file to an email. This is the file: HttpPostedFile f = ResumeUpload.PostedFile; Stream i = f.InputStream; string buf = i.EndRead(); How can I attach this file directly from memory without writing it to disk first? ...
MSMQ Distributed Transaction Coordinator
Andy Furnival -
7 Feb 2007 5:55 PM - 1 message
Hi clever people, Does anyone know whether or not when using Transaction with MSMQ, does it use DTC within the Windows API (not within the Managed .Net Framework) or its own internal transaction management. The reason I ask is that I built a MSMQ distribution service that ...
generating multipart/alternative mails with system.net.mail, "double encapsulation issue"
pehelce -
7 Feb 2007 5:25 PM - 2 messages
Hi, I' m currently migrating some tools from .NET1 to .NET2. in the previous version we used a component called FreeSMTP to generate and send the mails. Now we use the System.net.mail component. My problem is that although I enforce the correct encoding ...
Outlook 2003
DarraghB -
7 Feb 2007 4:10 PM - 2 messages
Mail is arriving in my inbox, I am being pinged to alert me and when I open Outlook, the mail either disappears after a nanosecond or is not there at all. It is not in my spam filtre or junk mail. ...
Compact Framework, Windows CE 4.2
Brian -
7 Feb 2007 3:24 PM - 1 message
Hi, I have created an application in vb.net 2003 for an Intermec CK30 handheld computer running windows ce 4.2. The question I have is, is it possible to make windows CE preform a file backup, so it writes away updated files to it's flash memory, or is it ...
Alternative to Enum.IsDefined()
Rasmus -
7 Feb 2007 3:03 PM - 3 messages
Due to the poor performance Enum.IsDefined producesi’m looking for an alternative to this utility method: Note: the enums passed to the method will not change during runtime. public static object EnumTranslate(Type enumType, object enumValue) { if (!Enum.IsDefined(enumType, enumValue)) { ...
Com Com error
kathpatt -
7 Feb 2007 2:14 PM - 2 messages
Command Complex Library Error! I recently installed drivers for my Canon MP C530 Printer which is an upgrade for XP. The printer was designed to work with Win 98. Since then, not only does the printer still not work but I am receiving the above ComCom ...
Changind TimeZone and notification without application restart
Peri -
7 Feb 2007 1:55 PM - 3 messages
My app reads serialized DataTable containing DateTime columns. The file = = can be moved between machines with different Time Zones. When I read = serialized DataTable on machine with different Time Zone (machine B) tha= n = machine the DataTable was serialized on (machine A) I have to switch = ...
ArgumentNullException went passing remoted ManualResetEvent to WaitAny
Lee Chapman -
7 Feb 2007 1:46 PM - 3 messages
Hi, I'm creating a ManualResetEvent in one AppDomain and then passing it to a second AppDomain. (WaitHandle derives from MarshalByRefObject.) If I call WaitOne() on my wait handle's remoting proxy, it works just fine. If I pass the proxy to WaitHandle.WaitAny(), however, I get an ...
Net Framework 3.0 documentation?
Stan B -
7 Feb 2007 1:11 PM - 8 messages
Is Net 3.0 framework documentation a part of SDK? I would like to have this locally [link] I have WF extensions to VS.NET running, but no local documentation... ...
Ngen.Exe and building setup.
trialproduct2004 -
7 Feb 2007 11:57 AM - 1 message
Hi all, I am having one setup project wherein in global assembly cache folder i am adding one dll. So that is getting installed into gac but when i am uninstalling my application that is also getting uninstall which i don't want. ...
Calling another application from mine
GeezerButler -
7 Feb 2007 10:09 AM - 3 messages
I need to call a console application from my code. How can i do that? Thanks, Aiman Ashraf ...
Runtime error when setup .net framework 1.1
b -
7 Feb 2007 9:16 AM - 6 messages
Dears, When i install .net framework 1.1, it show this error. How to fix it? Thanks J.F. [attached file: runtime_error.GIF] ...
The "ResolveNativeReference" task failed unexpectedly.
Hans -
7 Feb 2007 7:35 AM - 1 message
Hi! I have a c/c++ module, wrapped by a managed c++ class in a C# application. This has been working in .NET1.1 for some years now. After updating to .NET2.0, the module can neither be loaded dynamically nor ...
Enumerate File Handles for a Given Process
Demetri -
7 Feb 2007 2:38 AM - 2 messages
The short question I have here is how would one enumerate file handles for a given process in C#? I know p/invoke is needed. Sysinternals uses NtQuerySystemInformation and NtQueryObject. However, my knowledge of how to uses these are pretty limited ...
HTTP 401 error accessing a web service method using InvokeMember
James -
7 Feb 2007 2:19 AM - 2 messages
I am trying to dynamically load a DLL that makes a call to a web service method. If I link the DLL statically and make the call, it succeeds. But when I create the object using Activator.CreateInstance and then use the ...
Conversion from string "0" to type 'Integer' is not valid
SFry -
7 Feb 2007 1:15 AM - 7 messages
Hi all, I'm looking for a little help in determining what's causing this exception. I'm getting it when running VB.NET apps developed in VS 2005 (.NET 2.0). It doesn't appear to matter under what context the conversion takes place - ...
Help with Regex.replace
maheshvd -
7 Feb 2007 12:21 AM - 8 messages
Hi Group, I've a HTML document with all sorts of HTML tags. I nned to provide search and replace feature for text in the HTML documents. User can enter any phrase to search and any phrase to replace it with. While ...
Web App 1.1 to 2.0 Conversion
Mike -
6 Feb 2007 10:28 PM - 2 messages
Hi... I'm in the process of converting a 1.1 web application to 2.0. The automatic conversion failed, so I was forced to create a new web project. After copying my aspx, ascx, and vb files into the new project, I'm getting ...
Embed .Net UserControl in IE page running locally
Stuart Parker -
6 Feb 2007 9:36 PM - 1 message
Hi I've read about how to embed a .Net UserControl into an HTML page so that it can be used in IE by using the ClassID= http:xxx#yyy format I'm looking at using an HTML page which will be loaded locally from a client ...
Load .NET 2.0 DLL IN VS2003
Neil Wilson -
6 Feb 2007 7:40 PM - 2 messages
Hi Everyone, Is it possible to have a .NET1.1 application load an object contained in a dll that is built on .NET2.0? Specifically I have two 3rd party files... the first is a hosting user control that loads a dll written in VS2005. However, when I load the DLL I ...
Re: .Net 2.0, PerformanceCounter.NextValue() exceptions
Joe K -
6 Feb 2007 6:33 PM - 1 message
To see whether the issue was somehow related to the underlying state of the PerformanceCounter object, I caught the three exceptions and: 1) closed the existing PerformanceCounter object 2) created a new PerformanceCounter object 3) called NextValue() again Even with a new object, the calls to NextValue still regularly fails with ...
Microsoft.JScript
Giulio Petrucci -
6 Feb 2007 4:15 PM - 1 message
Hi there, as I need to share a .NET context with a JavaScript context and I can't re-write Rhino in C# ;-) I'trying to understand something about the Microsoft.JScript namespace, but - really - I'm getting in *deep* ...
FileLogTraceListener crashes my app when I change system date
Kunal -
6 Feb 2007 3:26 PM - 1 message
Hi Friends, I've been using FileLogTraceListener to log some messages to text files in my application. The application is basically a server which runs 24/7. Every other moment there are some or the other messages to be logged. ...
organaize music libary in vista media center....
רן -
6 Feb 2007 1:46 PM - 2 messages
Hi ... I have vista media center and i want the songs and albums to be displayed the same as in my hard drive but the media center organaize it not as i want. Is anyone know how i can change the way the songs presented in the music ...
Profile .NET runtime startup
Markus Eßmayr -
6 Feb 2007 12:53 PM - 1 message
Hello! We are currently analyzing our application performances to find performance issues. There are pure .NET applications but also unmanaged ones that consume COM objects written in .NET. One of the questions I've been asked was, "How long does it take for the ...
local access
Lily -
6 Feb 2007 11:26 AM - 7 messages
Dear all, hope everything is fine :) can anyone tell me how can i connect to the localhost from a windows application?? i need to refrence the server installed locally from a windows application, is it possible and how?? i'm using c#, VS 2003 and need to connect to IIS 6.0 ...
need the difference
AVL -
6 Feb 2007 9:50 AM - 2 messages
Which one of the following two ways of concatenating a string is more efficient? “String†+ “sâ€; “String†+‘s’; ...
xml serialization of IDictionary
Nadav Popplewell -
6 Feb 2007 8:13 AM - 6 messages
Hi everybody, Can sombody explain to me why the dotnet framework does not automatically serialize objects implementing IDictionary as array of DictionaryEntry? I know how to work around this limitation, but having to write wrappers for every class/property that implement IDictionary gets old really quick :) ...
[VS2005, C#, MSMQ] TypeLoadException driving me insane
Jeff Johnson -
5 Feb 2007 10:06 PM - 5 messages
I'm not sure what's causing this, hence the cross-post. I have an assembly, let's call it Classes.dll, which contains a few classes that are used by other assemblies. I have a WinForms program with a UI, business, and data layer (i.e., an .EXE ...
Why does the generic constraint new() use Activator<T>.CreateInstance instead of new T()?
mjduncan -
5 Feb 2007 7:30 PM - 5 messages
Why does the generic constraint new() use Activator<T>.CreateInstance instead of new T()? An example public class Foo<T> : where T : class, new() { T objectValue = new T(); public foo() {} ...
WebResponse.GetResponseStream() exception
Rob Snodgrass -
5 Feb 2007 4:02 PM - 4 messages
I have been working on a solution where we pull content using the WebRequest/WebResponse request HTTP content and store it in a string. For some pages, I reliably get an IOException however the pages work perfectly fine in web browsers and 3rd party utilities. ...
BulkCopy or Insert ignoring Primary key
arnoled -
5 Feb 2007 3:55 PM - 2 messages
I want to make a bulkcopy (or insertcommand if this can't be acomplished with bulk copy) to a table. But if there are rows that are already in the table, just ignore them (don't do the insert on that ...
SMTP Failure with Large Attachments
mfr -
5 Feb 2007 3:47 PM - 5 messages
Hi, I have created a website using C# ASP.NET 2.0. Users of the website are able to generate reports and email them from the website using SMTP mail configured under IIS 6.0. Although this works most of the time, messages greater than 2MB are bouncing ...
Get size of instance
news.microsoft.com -
5 Feb 2007 3:08 PM - 3 messages
Hi all, I would like to know the size of a dataset I have loaded in memory to decide how to process some data in it, but it seems that I cannot use sizeof for that.... Any other function which I might have missed? ...
Crystal Report View Object Model - CrystalReportViewer
Paul -
5 Feb 2007 3:01 PM - 1 message
I have an VB.NET aspx page. I have connected an existing Crystal Report to it using the CrystalReportViewer. I have 2 parameters in the report. I am trying to get the object syntax to extract the values of each ...
a strange exception
Developer.Man4 -
5 Feb 2007 2:41 PM - 2 messages
when i try using HttpContext.Current.Server.MapPath(path) from a desktop application built using c# i get a System.NullReferenceException can anyone tell me why and what to do?? m using VS2003 and i have iis 6 installed thanks for time and for ur fast reply ...
How to get the application path :S
Developer.Man4 -
5 Feb 2007 12:56 PM - 6 messages
Dear friends :) i need a hand guys i'm implementing a small program to list all virtual directories to the user and give him some facilities to move or delete these files, fine?? i can easily retrieve the list of all virtual directories using the ...
very very simple question
xxxx -
5 Feb 2007 12:08 PM - 2 messages
hi, i was wondering if u can help with the following how can i figure out that a given path, represents a file or folder ...
How to set focus to a new popup dialog?
joan -
5 Feb 2007 8:43 AM - 2 messages
Hi, I am new to vc.net. I want to double click an item of ctreectrl in a dialog and then get a new popup dialog, but the new one can't get the focus. The focus is still the ...
updates keep updating
mikeo -
5 Feb 2007 7:17 AM - 4 messages
Hi, we have XP SP2, and find that each time I use my laptop I get a message telling me to instal security updates MSXML 925672 and KB 927978...these are downloaded and installed each day and a search of the pc shows that they are ...
Getting MS.Net assembly PDB symbol information from an external .Net application
paulkohler -
5 Feb 2007 3:21 AM - 1 message
Hi all, I know how to get filename/line numbers etc via the StackTrace class etc but what I need to do is interrogate the filename and method line numbers from a DLL (via the PDB file I assume). I am making the call ...
fflush equivalent in c#
vijlak -
5 Feb 2007 1:13 AM - 2 messages
Hi All, I am really stuck here. I have to read an in input ( I am writing a console app in C# ) and it doesnt wait for the user input. Instead it's taking the value of the carriage return (13) from user's previous ...
Does Microframework have WPF?
DA_teng -
4 Feb 2007 11:07 PM - 2 messages
Can I use Windows presentation foundation or WPF with microframework, also I use platform builder to add alphablend in Ce 5.0, can i use in microframework? truely, Teng ...
Does Microframework have WPF?
DA_teng -
4 Feb 2007 11:07 PM - 1 message
Can I use Windows presentation foundation or WPF with microframework, also I use platform builder to add alphablend in Ce 5.0, can i use in microframework? truely, Teng ...
takes forever to download something....
milly -
4 Feb 2007 10:35 PM - 2 messages
how come when i try to download a video with music, from you tube or ect. it takes for ever to download and buffers it very slowly?can someone please help me? ...
Cyrillic characters in VS2005
Laurent Bugnion [MVP] -
4 Feb 2007 1:28 PM - 13 messages
Hi, Not totally on topic for this group, but... A colleague of mine wants to have the HTML editor in VS2005 display cyrillic characters. While setting the encoding using a META tag works fine (and the encoding is also displayed accordingly in the document ...
i cannot send attachments with my outlook express.
Daniel Lineberry -
4 Feb 2007 1:15 PM - 2 messages
I have had many problems since outlook express updated. I can send regular emails but no attachments. I have removed and tried other virus security programs all to no avail. McAfee and my isp both say the problem is not with ...
DTDs for machine.config, web.config, security.config available ?
Paul Kennedy -
4 Feb 2007 9:25 AM - 2 messages
Does Microsoft publish DTDs for web.config, security.config or machine.config ? If they do, pointers to them would be much appreicated. ...
|
|||||||||||||||||||||||