all groups > dotnet framework > september 2006
Filter by week: 1 2 3 4 5
ObjectDisposedException if USBtoSerial Port is unplugged
Posted by rfw68 at 9/30/2006 3:17:02 PM
Hello,
I'm writing an Application for a serial device, which is using a
USB-to-Serial Converter. I'm polling that device for new data every 500 ms.
So this is working fine.
But if the customer unpluggs the USB-to-Serial Converter, I get an
System.UnauthorizedAccessException on the next w... more >>
Error opening database
Posted by Steve Barnett at 9/30/2006 2:12:17 PM
I've developed a test application on my PC that uses the JET Engine. The
connection string is very basic and is constructed as follows:
connectionString = String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source='{0}'", modelName);
On the development PC, this works fine. On a test PC,... more >>
How to pass a Dataset as a parameter to a WebService
Posted by Poornima at 9/30/2006 1:10:06 AM
I need to pass a DataSet from my windows application in vb.net to a
webservice .
Thanks In Advance
... more >>
HTMLTextWriter... and to read?
Posted by Andrea Raimondi at 9/30/2006 12:00:00 AM
Hello,
I'm using dotNET 1.1 and I found this wonderful class, HTMLTextWriter,
which is half of what I need :D I also need an HTMLTextReader but,
judging from the help files, it's not there.
Any suggestion on what the correct class name may be?
TIA,
Andrew... more >>
SQL Connection Query
Posted by Poornima at 9/29/2006 11:36:01 PM
Hi
I have a windows application in VB.net which creates a dataset and
updates the dataAdapter by connecting to the SQL Server 2005 and sends
the dataset as a parameter to my webService.My code is
Dim strCon As String
Dim sValue As String
Dim strQuery As String
... more >>
Installing .net framework 3.0
Posted by David Houliston at 9/29/2006 2:53:02 PM
The uninstall tool indicates that all previous installs have been
uninstalled. The download of 30MB but then just as the installation starts I
get the error log:
[09/29/06,21:45:35] VS Scenario: [2] CPrevProductInstalledCheck failed :
<font face=Verdana size=8pt>
Thank you for participatin... more >>
DataGridView vertical scrollbar freeze
Posted by Oyvind Eriksen at 9/29/2006 2:25:37 PM
Hello.
I have an application that includes a DataGridView.
This application load data into a DataTable based on mpeg audio files which
the application validates.
Since this can take some time (specially if you choose several large files)
the void which load the data runs on a seperate thread.... more >>
Floating Point Calculation Problem
Posted by DJ at 9/29/2006 1:16:01 PM
Hello,
In an application that worked fine until recently I have started to have
problems with calculations involving two doubles. For example: -24.708 +
26.0 = 1.2920000000000016, however, -24.708 + 8.0 = -16.708. What would
cause this? I don't think the numbers are so large that it wo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
listbox drop style
Posted by GS at 9/29/2006 12:09:16 PM
in visual studio 2005 express VB I found mention of drop style for listbox
but so far my searches came up empty as to how and what they are.
I was to set height and I figure I can probably do something with setting
height during the focus events to simulate drop down list
However if there ar... more >>
String -> StringBuilder Optimization
Posted by Michael D. Ober at 9/29/2006 9:52:06 AM
OK, I can't figure out a way to optimize the following VB 2005 code using
StringBuilders:
Public Const RecSize as Integer = 105
Private buffer As String
Public Sub New()
init
End Sub
Public Sub New(ByVal value As String)
buffer = LSet(value, 105)
End Sub
Public Sub init()
... more >>
regex expression
Posted by GS at 9/29/2006 8:09:25 AM
what is a good general regex expression for html <img ....> tag?
I tried
"<img [/:.a-z =0-9\""_;&]*\->", RegexOptions.IgnoreCase)
but it is not quite working
thank you for your time
... more >>
ASP.NET web farm with Oracle - design and deploy
Posted by yoram.ayalon NO[at]SPAM structuredweb.com at 9/29/2006 8:08:29 AM
We have a web application running on classic ASP, where the session is
maintained in the Oracle DB, so every page redirect/form submit can
switch servers without any problem
we are looking now at writing a .NET application on the farm using same
Database. a couple of questions/notes:
- I u... more >>
Is new & free in CLR heap fast?
Posted by Hyun-jik Bae at 9/29/2006 12:00:00 AM
I am a newbie in C# programming. I've been working in C++ language for some
years.
The new/delete statement in C++ is rather slow so it is recommended using
static data structure in some cases which require very fast performance as
you know. However, there's no way but using value type class ... more >>
Algorithm of lock (obj) { ...} statement in C#
Posted by Hyun-jik Bae at 9/29/2006 12:00:00 AM
What is the algorithm of lock(obj) { ... }?
The statement above roughly makes me guess that the lock/unlock algorithm in
CLR is inefficient because it adds a critical section for each CLR object
instance.
Am I right? Please reply. Thanks in advance.
Hyun-jik Bae
... more >>
Very large arrays and .NET classes
Posted by Peter Duniho at 9/28/2006 10:49:53 PM
This is kind of a question about C# and kind of one about the framework.
Hopefully, there's an answer in there somewhere. :)
I'm curious about the status of 32-bit vs 64-bit in C# and the framework
classes. The specific example I'm running into is with respect to byte
arrays and the BitCo... more >>
shared object in GAC across processes
Posted by Amil Hanish at 9/28/2006 9:19:50 PM
Is it possible, using static properties, to have a shared object in the GAC
that can be accessed by differnet processes? If so, how? If not, how can I
have a shared .NET object that can used by different processes?
Thanks.
Amil
... more >>
.Net 2.0 Hashtable Insert Failed. Load factor too high
Posted by Ranga at 9/28/2006 6:49:01 PM
Hi,
I am currently getting System.InvalidOperationException: Hashtable insert
failed. Load factor too high error. I noticed that this only seems to
happen, when we are trying to do run a Stress Tool with a few users(5-10).
I know this is a known issue in .net 1.1, but there seems to be ... more >>
dollar sign ($) changed to a strange character
Posted by bhughes10 at 9/28/2006 4:51:02 PM
I saw a question from Norman Yuan several months back with the same problem
I'm having now. Never saw an answer.
My currency that should be displayed as $200.00 is displayed as ¤200.00
randomly when my production server is under load. It doesn't happen on the
dev computers. An IIS reset tem... more >>
Programmatically checking a DataGridViewCheckboxCell
Posted by CJM at 9/28/2006 3:36:19 PM
I can't for the life of me figure out how to check or uncheck a cell
programmatically. I've looked in Lutz's reflector to see how the
control is doing it and it calling an UpdateButtonState method that I
don't have access to.
This must be super simple but I'm just missing something.
Any hel... more >>
Is al.exe redistributable?
Posted by mbhansen NO[at]SPAM gmail.com at 9/28/2006 12:47:36 PM
We have a utility that creates a resources.dll on the users computer.
Can anyone tell me if .Net Framework SDK tools, like al.exe, can be
distributed with .Net applications?
Thanks,
MattH
... more >>
Custom Collection Editor - how to block the up and down buttons ?
Posted by Robert R. Richter at 9/28/2006 12:22:01 PM
I have a Custom Collection Editor and overridden some methods - everything
works fine...
BUT I now want to block the up and down buttons, so the User won't be able
to move the Collection Items within the Index.
Is there any possibilty by overriding a method so it won't move the
collectio... more >>
Customize html output of WebBrowser Control or Get Cursor Position
Posted by ASP Developer at 9/28/2006 9:26:01 AM
I followed the following example to create an html text editor.
http://www.codeproject.com/useritems/editor_in_windows_forms.asp
It works great but when you press enter in the text box the control inserts
p tags instead of br tags. So you end up with double spacing throughout the
docume... more >>
Cursor Position of WebBrowser control
Posted by ASP Developer at 9/28/2006 7:14:02 AM
Is it posible to get/set the cursor position of the webbrowser control? With
a regular text box you can use the SelectionStart property. Any help would
be greatly appreciated.... more >>
Jscript Stack Overflow on 2003 Server
Posted by Confused in Georgia at 9/28/2006 6:12:01 AM
I have some Jscript compiled code the works on XP but gets stack overflows on
my 2003 server.
The Jscript code uses recursive calls. If the nember of levels is more than
4, I receive a stack overflow. On the XP (using same .dll compiled code, .net
1.1) I can have more than 10 levels withou... more >>
XmlWriter do not use settings specified in XmlWriter.Create
Posted by av at 9/28/2006 1:55:01 AM
hi all,
please review the following code snipped, my goal is just to transform a
document.
The problem is that XmlWriter.Create do not honor passed
Trans.OutputSettings. The debuggin shows that Trans.OutputSettings.Encoding
is set to {System.Text.UTF8Encoding}, but OutWriter.Settings.Encodin... more >>
Loading the existing AppDomain
Posted by Debasish Pramanik at 9/28/2006 12:00:00 AM
Hi All,
I have created an App Domain in a process on the first request. Now I would
like retrieve the same AppDomain everytime there is certain type of
request.
Is it possible?
--
Regards,
Debasish Pramanik
Assetlink India.
Phone: +91 20 26119531 (226)
... more >>
Hybrid Windows Service + Console App
Posted by Chris Mullins at 9/27/2006 9:52:10 PM
For some reason the question, "Can I make an EXE that is both a Windows
Service and a Console Application?" has come up quite a bit for me over the
last few weeks.
I've been doing this for years, but for some reason I've never seen it
documented anywhere. C# (or VB.Net) is perfectly happy t... more >>
iterator in Dictionary<>?
Posted by Hyun-jik Bae at 9/27/2006 9:03:56 PM
Is there anything correspondant to the iterator for Dictionary<>? For
example, something which is similar to std::map::iterator in C++?
Reply please. Thanks in advance.
Hyun-jik Bae
... more >>
Remoting over SMTP channel
Posted by Hardy Wang at 9/27/2006 7:54:01 PM
Hi all,
I read I can use SMTP channel to send SOAP message. But what is the
benefit of using SMTP instead of TCP, HTTP?
Hardy
... more >>
Problem with .NET object registered in COM+
Posted by eric.goforth NO[at]SPAM gmail.com at 9/27/2006 10:58:31 AM
Hello,
I have a .NET object that's registered in COM+. I'm calling it from a
VB6 dll that's registered in COM+ like so:
Set objEFV = CreateObject("MyDotNetDLL.MyClass")
strResult = objEFV.DoMyMethod(Param1, Param2)
I think it's registered correctly. I generated a .tlb file for it on... more >>
interval when GC is run
Posted by Roger at 9/27/2006 10:53:01 AM
What is the interval when garbage collection is run and is there a way to
monitor it through Perfmon?... more >>
FileSystemWatcher create event Is a File or Directory
Posted by Jerry C at 9/27/2006 10:50:01 AM
Does the file system watcher have a why to tell if a file or directory is
created.
ThaFileSystemWatchernk you
--
Jerry ... more >>
Deployment of ActiveX with ThirdParty Control(COM) on ASP.Net
Posted by vishal868 at 9/27/2006 9:37:22 AM
Hi,
Can anybody please help me out to solve this problem. I try to find the
solution of it all around but i m not able to get it from anywhere.
I have created on ActiveX control in VS 2005. I have put one Third
Party Control(which is created in VB) on that ActiveX control.
Now I have deployed t... more >>
Remoting serialization fails with custom object
Posted by Greger at 9/27/2006 4:44:02 AM
Hi,
I have a client application that is using remote objects from a IIS.
Everything works fine when using this from my code.
However. When a word add-in loads my code the request fails with a message
that it can not find the a assembly.
The assembly in question is one that is reference... more >>
StreamReader.Peek Timeout
Posted by Bishop at 9/26/2006 10:01:10 PM
I'm trying to use the StreamReader to read messages from a newsgroup but
after downloading several messages it will get stuck on the
streamReader.Peek line and never timeout (or at least not after 12 hours)
Any suggestions on how to timeout?
... more >>
WebServices Query
Posted by Poornima at 9/26/2006 9:32:57 PM
I have a device application with a database in it.I want to push the
tables from this database to the one in Remote SQL Server.I have
written the both the devce and the Windows application in VB.net.
The methods to accomplish the aboce are RDA,WebServices,Replication.
Now i do not know how to wr... more >>
Development Type
Posted by Jon Vaughan at 9/26/2006 4:02:22 PM
Hi, I design programs starting with the database and once I have a solid
database I buikd the classes from these and work my way upto the interface ?
is there a name for this development style ? does it fit into top - down ,
bottom - up design ?
Thanks
... more >>
Trying to use an Ldap-Connection (VS2005, C#, .Net 2.0)
Posted by Harald at 9/26/2006 2:08:21 PM
Hi,
I try to read some data from a server using LDAP with the
System.DirectoryServices.Protocols types. I startet with:
....
string server = "servername.intern.MyCompany.de:52000";
LdapDirectoryIdentifier ldapDir = new LdapDirectoryIdentifier(server, false,
false);
LdapConnection ldapCo... more >>
changing the value of parameters in constructor
Posted by nick1510 at 9/26/2006 1:40:01 PM
Hi,
I want to create a new constructor in a class that inherits from another...
in VB.Net
I still want to call the base class after some code has 'manipulated' the
parameters
VB is telling me i carn't as MyBase.New needs to be the first call in the
New methd....
But how else could i ... more >>
Opposite of string.split?
Posted by Bruce Hendry at 9/26/2006 12:31:09 PM
Any built in framework function that takes a string array and converts it
back to a concatenated string with a delimiter?
Thanks.
... more >>
DotNet ActiveX Equivalent ?
Posted by craigkenisston NO[at]SPAM hotmail.com at 9/26/2006 12:08:06 PM
I have a website which currently uses an ActiveX component made in
Delphi. The ActiveX provides a simple but nice functionality to the
website. Recently, it was ported from the old Asp, to Asp.Net 2.0. I
was wondering, if I want to replace the Delphi ActiveX component, what
could I use to create... more >>
Uploading big files
Posted by ThunderMusic at 9/26/2006 11:17:41 AM
Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right now
the ASP.Net UploadFile control can't do it as we are limited 1) by the
MaxRequestLength (4Mb) and 2) with big files (such as 250Mb) the server ... more >>
GAC - Re-installing new DLL
Posted by TMesh at 9/26/2006 8:04:03 AM
Hello
I am having an issue with re-installing a DLL with the GAC.
When I modify the DLL, I first unistall the assembly by right clicking on
the assembly and select uninstall. I then copy the modified DLL to the
assembly folder. Everything looks like it worked fine, except I do not see ... more >>
savefiledialog for webforms
Posted by kollatjorva NO[at]SPAM gmail.com at 9/26/2006 7:34:46 AM
hi
I have a web page with displays informations from an xml. On the same
web page is a "save xml as" button and when the button gets fired, I
want to display a save as dialog for the user to save the xml in a file
on his client machine.
Is this possible to do, we have savefiledialog in winfor... more >>
IIS crashes
Posted by Kuchen at 9/26/2006 7:01:20 AM
Hi there,
I've got an IIS webserver running on a WIN 2000 Pro machine w/
installed NET Framework 1.1 hosting an ASP.NET application for more
than one year - working perfectly. No changes to the system or the app.
Today calling an aspx page on the local machine suddenly results in a
crash o... more >>
visual studio setup project gone horribly wrong
Posted by Liming at 9/26/2006 3:30:10 AM
Hi,
I was testing out a simple project and I did a "setup" project for my
simple application.
After installed the application, everything went horribly wrong. All my
other applications executable has been "hijacked". Whenever I click any
program, my simple application got launched.
I can... more >>
.NET 3.0
Posted by Prem Kumar at 9/26/2006 1:54:01 AM
Hi
I just thought of writing my MCTS exam, which targets .NET 2.0. However, i
also came across many info on .NET 3.0, now this just makes me to think,
whether should i go ahead and do MCTS? Any idea when is 3.0 getting released
and is there any new IDE again going to be launched for it?
... more >>
How to programmatically change which framework a web site should use
Posted by Angelo Brusati at 9/26/2006 12:00:00 AM
Hi everybody
Do you know how to change which framework a web site should use - =
programmatically?
For example: my web server has both Framework 1.1 and 2.0. My =
installation/deployment program has to set a specific web site to run =
under Framework 2.0.
How to do it through ADSI or else?... more >>
About DataGridView control's issue
Posted by Steven Shi at 9/26/2006 12:00:00 AM
Hi, all
I want to customize the column of DataGridView as a DataTimePicker control
in a windows form, how to do this?
Could you give me several samples of VB.net?
Thanks in advance.
Steven
... more >>
Version 1.1
Posted by Perry at 9/25/2006 8:30:01 PM
Do I need version 1.1 and it's service pack if I install version 2? Thanks in
advance.... more >>
|