all groups > dotnet framework > july 2006 > threads for july 1 - 7, 2006
Filter by week: 1 2 3 4 5
Overriding non-virtual methods using IL and Reflection.Emit
Posted by rfuller987 NO[at]SPAM hotmail.com at 7/7/2006 10:48:32 AM
Is it possible to override non-virtual methods using Reflection.Emit.
I'm creating dynamic proxy classes at runtime and I want to be able to
proxy all public methods on an object, regardless of whether the object
author happened to mark them as virtual or not. Is this possible?
-rfuller987
r... more >>
Limit bandwith of my application
Posted by DCaballero at 7/7/2006 8:22:44 AM
Hi, I've seen on some applications like emule, options on limiting the
amount of outgoing and incoming bandwith the application uses. How can
I incorporate this into my application?
Is this done with the .NET network classes, or do I have to go to C++
or can I use some third party library?
... more >>
Assembly.LoadFrom failing in .NET 2.0
Posted by John H at 7/7/2006 8:18:15 AM
Hi,
We have an application that generates .NET assembly DLLs at runtime and
executes them. It normally generates the assembly DLL once per user
task and any time the same user task is done again it simply loads the
already existing DLL and executes it.
We are using the .NET Code DOM to comp... more >>
webclient class usage
Posted by FutDev at 7/7/2006 7:24:01 AM
Hello,
I'm trying to input data into a web page and read the response page. This is
easy enough with the webbrowser class but I cant get it to work with the
webclient class. I've tried all the UploadValues, UploadData methods etc but
they all seem to just reload the input page. How do I get... more >>
Inductive UI
Posted by Peter Morris [Droopy eyes software] at 7/6/2006 9:50:16 PM
I have read a little about this. It is the new UI approach in Longhorn, but
will it be part of Windows or will it be part of dotnet X?
I want to take this kind of approach but I don't want to have a requirement
of my users to upgrade Windows to use my apps.
Thanks
Pete
... more >>
Shell, executes but no GUI is displayed .NET 2.0?
Posted by Rob R. Ainscough at 7/6/2006 9:50:06 PM
Situation:
..NET 2.0 based Windows Service
Have a timer event in the service
Private WithEvents ServiceTimer As New System.Timers.Timer(30000)
Private Sub Check_Updates(ByVal sender As Object, _
ByVal e As System.Timers.ElapsedEventArgs)
Handles Ser... more >>
Windows authentication over remoting... possible?
Posted by ThunderMusic at 7/6/2006 3:48:20 PM
Hi,
I have to develop an application that will consist of a service and a
windows forms application... the service could be on a distant server but I
need to authenticate the user as being part of the same domain. so when the
application starts, I can send something to the remote service a... more >>
strong name error
Posted by Tom at 7/6/2006 12:26:01 PM
Going through the upgrade process from VS.Net 2003 to 2005. Receiving the
following error (which I see reported by others):
Use command line option '/keyfile' or appropriate project settings instead
of 'AssemblyKeyFile'
For my purposes, strong names in released apps is required as the ass... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
NotifyIcon Close Events
Posted by Mark Ehrhardt at 7/6/2006 12:22:37 PM
When a user clicks on a balloon created by the Framework's NotifyIcon
class there seems no way to tell the difference between a user clicking
on the X close button and clicking anywhere on the balloon.
When the user clicks on the X close button no click event is generated.
Only the BalloonTipCl... more >>
XML Deserialization problem
Posted by zemnon NO[at]SPAM gmail.com at 7/6/2006 11:45:10 AM
Hello guys,
Here is a part of XML I am getting from a huge XML file:
<Task xmlns="http://al-lighting.com/alcheck/Namespace/AL">
<Name>String</Name>
<Script>
<ScriptFilename>String</ScriptFilename>
<ResultFilename>String</ResultFilename>
<Reportstyles>
<Name>String</... more >>
WebBrowser: detecting/controlling Word Docs, PDFs, etc.
Posted by Tom at 7/6/2006 11:38:28 AM
I'm using a WebBrowser control in my .NET application to display Word
documents, PDF's, etc... which I want to be able to simply Print (on
request) and Close when finished with (otherwise Word holds control of the
document, even when the WebBrowser object is closed).
(I'm developing in VB.NET... more >>
specfying units in cm
Posted by madhur at 7/6/2006 11:35:17 AM
Hello
I want to specify the units of my controls in cm. I have looked the
Unit class , it doesn support cm. However the UnitType enumeration has
cm in it.
I looked the UnitConverter class but Couldn find the way to specify my
units in cm.
Any Ideas? I am using .NET 2.0
Madhur
... more >>
The type initializer for "HeaderEncoding" threw an exception
Posted by TopBanana at 7/6/2006 10:57:27 AM
Hi
I wonder if anyone has seen this before?
I have two machines running exactly the same code. On the first, it
works perfectly, on the second I get the TypeInitializationException
'The type initializer for "HeaderEncoding" threw an exception'.
I am using an HttpWebRequest, and the excep... more >>
Exception using SmtpMail.Send method
Posted by olrt at 7/6/2006 10:14:39 AM
Hello, I checked the SmtpMail.SmtpServer
I checked the recipients address of the message
I checked the sender address
But still have the following exception when SmtpMail.Send :-( ::
-----------------------------------
Failed to send message : System.Web.HttpException: Unable to create
obj... more >>
What is the best way
Posted by l.costa NO[at]SPAM go2myplace.com at 7/6/2006 1:37:51 AM
Hi all
thanks to give me you point of view regarding this question.
I have a portal www.website.com with some sub domain like job.website.com event.website.com etc…
I would like when a user is authentified, in one of this portal, I would like to re-use is Session for all portal I have (No... more >>
CRT version mismatch
Posted by wanzelbin at 7/5/2006 4:26:01 PM
A dll I've written in umanaged C++ on VS 2005 pro has an automatically
generated, embedded manifest that refers to version 8.0.50608.0 of the CRT
(msvcr80.dll).
Looking through WinSxS on the same machine, there's only a version
8.0.50727.42 listed, and needless to say my dll won't run.
Any ... more >>
.net 1.1 broken on win 2k3 - help urgent please
Posted by OliviuG at 7/5/2006 4:14:02 PM
..net 1.1 installed by default
2.0 was installed on top
I need to un-install 2.0 and after running the MSI for our project I am
getting this in the MSI log:
1: {E03A155E-F6DB-450A-98E9-C43119FC93B0} 2:
{579DA152-0514-42C0-9B63-04B556478E2A} 3:
<\interop.dsMQTandem,Version="1.2.0.0",Pu... more >>
Windows Service using System.Threading.Timer and Windows AutoUpdate (XP)
Posted by Brent Dunham at 7/5/2006 11:17:54 AM
Hello,
I've written a C# Windows service that starts a System.Threading.Timer that
should fire every minute. It has been working perfectly until Windows Update
applied some updates. Once this happened (on all machines running this
service) the timer stops firing. This has cuased some issues w... more >>
minimum installation
Posted by Nalaka at 7/5/2006 10:29:46 AM
Hi,
I have visual studio professional edition (2.0).
Boss asked to install the minimum required to run asp.net 2.0 on the server.
I have a xcopy type installtion (where I copy my source files to the server)
Question is...
What is the minimum .net, that I can install on the server (to run a ... more >>
TextChanged fires twice.
Posted by Eric at 7/5/2006 8:56:32 AM
I'm a bit new to this Windows Forms thing and a bit lost on this one.
This app I'm on has a TextCell class (inheriting from something called
TableCell, which in turn inherits from Panel) with a TextBox. This
TextBox is bound to a table in a DataSet. So here's the problem: when
the app loads if... more >>
Working with Collections and Datagrids
Posted by Guy Thornton at 7/5/2006 5:59:01 AM
I have an application that is using Datagrids to display a collection of
objects (.Net 1.x, VB.Net environment using Collection Object). The
Collection Object, lets say holds a collection of Customer Objects.
I want the datagrid to be editable, so that users can enter data through the
grid a... more >>
FileShare question
Posted by Rembo at 7/5/2006 3:47:06 AM
Can anyone tell why I can't create the second filestream object?
Stream s1 = new FileStream("C:\\test.txt", FileMode.Open,
FileAccess.ReadWrite, FileShare.Read);
Stream s2 = new FileStream("C:\\test.txt", FileMode.Open,
FileAccess.Read, FileShare.Read);
FileShare.Read should make it possi... more >>
DateTime.Add() query
Posted by madhur at 7/5/2006 3:07:07 AM
Hello
If I create a DateTime instance like this :
DateTime d=DateTime.Now();
And then
d.AddDays(3);
The 3 days doesnt get added to it. But If I do like this :
DateTime d=DateTime.Now.AddDays(4);
The days gets added correctly.
Can anyone explain me the behaviour ??
Madhur
... more >>
CheckIfInstallable method locks the file
Posted by Stefano at 7/5/2006 1:08:34 AM
Hi all,
when I try to use the CheckIfInstallable method of
System.Configuration.Install.AssemblyInstaller on a file not installable, I
correctly get an exception, but then the file checked remains locked by the
application until I close the program (e.g. I can't delete the file or
overwrit... more >>
SelectSingleNode Issue
Posted by Bob Mixon [SPS MVP] at 7/4/2006 9:18:50 PM
All,
There are so many newsgroups these days, I am not sure if this is the correct
one I should be posting to; if not, I apoligize!
I have the following xml file, this was generated by the .NET disco.exe utility.
<?xml version="1.0" encoding="utf-8"?>
<discovery xmlns:xsd="http://www.w3.... more >>
Using AddOutParameter and the DAAB
Posted by Pete at 7/4/2006 12:56:01 PM
Hi,
I'm running into an error while trying to get the output value of an
identity column. In my database, the identity column is of type 'bigint',
which is what seems to be causing the problem.
The DAAB syntax I'm using for adding in an output parameter is:
string storedProcName = "my... more >>
Disable error reporting
Posted by Lucvdv at 7/4/2006 12:20:17 PM
At http://support.microsoft.com/kb/325075/en-us it is explained how error
reporting can be disabled for Office.
Can this also be done for the .Net framework?
Or even better, can the errors for which a report is generated be filtered
(some ignored, some added) and can the reports then be redi... more >>
SerialPort.GetPortNames() returns incorrect port names?
Posted by Vile at 7/4/2006 9:28:02 AM
SerialPort returns incorrect port names for virtual COM ports.
In my case it reports "COM5i" instead of "COM5" for Siemens MC35i terminal
Hyperterminal shows "COM5". SerialPort.Open() doesn't work with these names
- Incorrect port name error.
Who knows how to get the correct names ?... more >>
Problem in Importing data from Excel (Urgent)
Posted by Abhijeet Kumar at 7/4/2006 4:05:01 AM
Hi
I am using following code to Import data from Excel File in .NET 2005
DataSet myDataSet = new DataSet();
string strConn = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\test.xls;Jet OLEDB:Engine Type=5; Extended Properties=Excel 9.0";
OleDbConnection conn = new OleDbConnection... more >>
Is WMI supported in Compact Framework 2.0
Posted by netcommander at 7/4/2006 3:23:02 AM
Can anyone tell me if Windows Management Instrumentation (System.Management
namespace I think) is supported in the CF 2.0 so I can discover information
about a device such as a PocketPC or SmartPhone?... more >>
How to generate automatic win-forms for SQL Server's tables?
Posted by ABC at 7/4/2006 12:46:14 AM
I need to build many data enter forms for SQL Server's tables. Is there any
best methods to generate data forms from database table structure?
... more >>
question about sending email
Posted by Crespo at 7/4/2006 12:00:00 AM
hi,every one! I have a question about sending emails.My codes works well
over some smtp servers,but doesn't over the others. My codes is listed
belowed:
try
{
MailMessage mailObj = new MailMessage();
mailObj.To.Add(receipientAddr);
mailObj.From = new MailAddress(senderAd... more >>
sending mails
Posted by Crespo at 7/4/2006 12:00:00 AM
hi,every one!
I have a question about sending emails.My codes works well over some
smtp servers,but doesn't over the others. My codes is listed belowed:
try
{
MailMessage mailObj = new MailMessage();
mailObj.To.Add(receipientAddr);
mailObj.From = new MailAddress(send... more >>
AppDomain just like Winword
Posted by Shahzad Godil at 7/4/2006 12:00:00 AM
I am able to keep same process for my different instance of my application
when we are launching "New Document" in our application using
AppDomain.CurrentDomain.ExecuteAssembly. Only issue is that one instance is
running, on double click on exe in explorer, it is creating seperate process
... more >>
Moving Chat sample from Http to Ipc channel...
Posted by Nathan Baulch at 7/3/2006 10:23:03 PM
After failing to a solution in the remoting newsgroup, I've decided to post
here also.
I'm trying to convert the "Remoted Events (Chat) Sample"
(http://support.microsoft.com/Default.aspx?id=312114) from Http to Ipc
channels in .net V2.
Since everything is setup in config files, I have only... more >>
Cannot Create Data Connection
Posted by JamesJ at 7/3/2006 6:38:19 PM
Just installed Visual Basic 2005 Express Edition. Off to a
very fast start. When attempting to link to a data source which
is a ms access database I get the following error (if I wrote it
down properly).
Format of the initialization string does not conform to
specification starting at 0.
I t... more >>
Method.property string
Posted by StumpedSteve at 7/3/2006 1:53:01 PM
In the framework of most OOP is the underlying ability to string commands
like Thread.CurrentThread.GetHashCode(). I have tried to find how this is
done, unsuccessfully I might add. I feel that it possibly one of those
building-block concepts that I’ve missed as I studied VB and .net
spe... more >>
.NET exe of Webserver is not executed in .Net 2.0
Posted by Christian Schönig at 7/3/2006 1:33:44 PM
When I put a .NET assembly (.exe) generated with VS.NET 2003 on a Webserver
(IIS) and try to invoke it over a Browser (IE) from another station the
following happens:
1. under .NET 1.1 the application gets executed (normal appearance)
2. as soon .NET 2.0 is installed as well, the application i... more >>
Best practices in .NET libraries compatible to Compact Framework
Posted by Mirek Endys at 7/3/2006 1:16:01 AM
Im writing .NET libraries for .NET Framework and .NET Compact Framework too.
What is the best practices to write 'multi-platform (.NET Framwork / .NET
Compact Framework)' libraries
:)
(Which attribute says; in my class; that this member of a class is .NET
Compact Framework compatible)
... more >>
Microsoft.Common.targets, HELP!!!!
Posted by Søren M. Olesen at 7/3/2006 12:00:00 AM
Hi
I'm suddenly getting the following error when I try to build a
class-library, Windows Application,....:
Error 1 Unable to copy file "obj\Debug\ClassLibrary2.dll" to
"bin\Debug\ClassLibrary2.dll". Could not find file
'obj\Debug\ClassLibrary2.dll'.
C:\WINDOWS\Microsoft.NET\Framework\v... more >>
disabling sound card
Posted by europa68 NO[at]SPAM hotmail.com at 7/2/2006 8:23:47 PM
Can some one provide information on programmatically disabling a sound
card. Thanks.
... more >>
Blob reading problems
Posted by excession at 7/2/2006 9:33:01 AM
Hi
I'm trying to read RTF and Word files from blob columns in SQL Server, but
the files can't be opened in Word when i retreive them. They seem to contain
garbage... What am I doing wrong?
This is some of the code used to get the files:
FileStream fileStream = new FileStream(filename, F... more >>
debug custom assemblies
Posted by Dierk Droth at 7/2/2006 12:30:01 AM
Hi,
My application provides a feature to load custom assemblies. The application
is build in release mode (/optimize). This is .NET 2.0.
As a user wants to debug his custom assembly be e.g. forcing a debugger
break ("Debugger.Break()"), he experiences that he can not inspect the value
of... more >>
File performance
Posted by Cairn at 7/1/2006 2:37:01 AM
I am opening a number of large files (100 to 900 Mhz) to extact some header
information (500 bytes). watching the memory usage on the task bar when ever
the call Filestream fs = File.Open(filename, Filemode.Open) is called, the
memory usage jumps way beyond that expected (89 Mhz file usage jum... more >>
FileStream & MapViewOfFile comparison
Posted by Lloyd Dupont at 7/1/2006 1:47:27 AM
I need to access big data in a readonly fashion.
I was thinking to open a FileStream and seek and read as needed.
I was wondering if it was worth doing my own FileStream class which would
use internally use MapViewOfFile internally?
Or pehaps a purely managed wrapper which, at least, load the b... more >>
XML Documentation & Namespace...
Posted by Lloyd Dupont at 7/1/2006 12:00:00 AM
How do you XML document namespace?
I'm tetsing my project documentation with NDoc.
And I could see I have no namspace documentation.
How do I fix that?
... more >>
|