Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet framework > october 2005 > threads for october 1 - 7, 2005

Filter by week: 1 2 3 4 5

Regular Expressions
Posted by Bill Long at 10/7/2005 8:46:01 PM
I need to take a short piece of html/xml as a string IE: <tagName attribute1='value' attribute2=value/> Note that one attribute value is quoted and one is not. The input string could have any number of attributes with any combination of quoted and unquoted values. The ouput string n...more >>


BinaryReader and Byte Length
Posted by Tom_B at 10/7/2005 7:54:02 PM
VB.Net Using a BinaryReader to read the data coming from a WebResponse stream into a byte array. How is the stream byte length determined? If cannot get the length, what is the best way to move bytes from the stream to the array? Thanks....more >>

problem in multiuse with asp.net
Posted by Deep Silent Ocean at 10/7/2005 7:44:53 PM
Hi All I am developing one Portfolio Management application where there is single database shared by all the traders. I have developed web-based application for this. I want to make this multiuser application. Following is the architecture of the application ... Front End is develope...more >>

USING CRYSTAL REPORTS IN A VISUAL BASIC.NET ASP.NET WEB APPLICATIO
Posted by Wendy Elizabeth at 10/7/2005 7:10:06 PM
I want to be able to use crystal reports in a ASP.NET web application. I have added crystal reports to my .net solution in solution explorer. However when I run my .net web application, the crystal reports does not display in the web page. Thus can you show me an example of how to have ...more >>

How can I change SortedList order?
Posted by Ken Varn at 10/7/2005 1:52:59 PM
I am using the SortedList class to sort an array of items. I want to bind the SortedList to a DataGrid, but I want the list to go in descending order. Is there anyway to change the sort order in SortedList when databinding so that I can reverse the sort order? -- -----------------------...more >>

Storing EventLog.
Posted by Ken Varn at 10/7/2005 1:52:15 PM
I am using the EventLog class to display log entries to my users. Is there any way that I can take the same log information that EventLog contains and package it into an EVT file similar to what the Windows Event Viewer uses for displaying events? -- ----------------------------------- ...more >>

How good is C# for serializing objects, C++ Vs. C#
Posted by Prasad Venkat at 10/7/2005 12:08:03 PM
Hi, Question from a newbie to C#. How effective is C# with respect to serialization techniques and object persistence ? also, I'm trying to create an application in C# in .Net framework. are there are pros and cons that one needs to be aware of when compared to C++ ? your feedback is appr...more >>

When i open ASP.NET application,i got error
Posted by SasiKumar at 10/7/2005 10:32:37 AM
Hi, When i try to open a existing ASP.NET.It's giving error like this. JIT Debugging failed with the following error:Access is denied. JIT Debugging was initiated by the user account 'sasi\ASPNET'. Check the Documentation index for 'Just-in-time debugging,errors' for more information. Su...more >>



byte[] <=> sbyte[]
Posted by David Thielen at 10/7/2005 10:09:04 AM
Hi; Is there a way to cast a byte[] to a sbyte[]? I know I can copy it but if I have a 32K array, that copy takes time & memory and yet the actual values are identical in both arrays. So is there some way to cast a variable in this case? -- thanks - dave...more >>

Nullable types & Reflection
Posted by cPetru at 10/7/2005 9:28:08 AM
Hello all. First of all, I am not sure this is the place to post my question, but I didn't find a more apropriate one. The problem: I try to fill some fields of an object with values from a database. Because some database fields are nullable, I use nullable types in my object. So, to set th...more >>

VB .net a crystal reports problem
Posted by amejiae at 10/7/2005 7:43:01 AM
Hi, I’m distributing an application that I Developed in VB .Net for medical purposes and it has a crystal report. When I execute the crystal report in the developer machine it works well, but when I execute the crystal report in my client machine the following error appear: “An unhandled...more >>

How can i connect and login to Windows 2000 server from c# code?
Posted by Mat at 10/7/2005 5:18:02 AM
Hi! I have the following scenario: I want to connect to a windows 2000 "File" -server from a ASP.Net -web application, running under network service account and create a directory on the file server. Both the web server and the file-server is in the same Active Directory. Clearly, the Netwo...more >>

system.invalidoperationexception
Posted by Zabby at 10/7/2005 4:19:02 AM
hi, when i close my app with "end" i get an system.invalidoperationexception how can i get more information, why this exception is thrown? kind regards...more >>

Application referencing dll build with different version framwork
Posted by al_qwertyuiop NO[at]SPAM yahoo.co.uk at 10/7/2005 2:35:49 AM
Hi, I was wondering what happens if an .net exe compiled with 1.1 uses one dll compiled with 2.0 and one dll compiled with 1.1. Supposing that the target machine has both 1.1 and 2.0. Does the 2.0 dll correctly use the .net 2.0 system's dll? and the 1.1 correclty use 1.1 dlls? I'm know how...more >>

Settings for a windows service: where to store ?
Posted by Craig HB at 10/7/2005 2:34:03 AM
From a .net windows service, I was tryng to access the app.config file using System.Configuration.ConfigurationSettings.AppSettings, but it didn't return the settings. Can you access the app.config file from a .net windows service? If you can, where does the file need to be? If you can't, ...more >>

.NET MSDN documentation with no examples
Posted by John Dalberg at 10/6/2005 4:18:04 PM
Many of .NET class members and properties in MSDN have no examples. I just see prototype decleration. I find this pretty lacking in MSDN. Are there good resources out there which explain more on how to use some of the .NET functions? I am looking for a reference + a quick example. -- Joh...more >>

Field not found: System.Collections.Generic.KeyValuePair 2.Value
Posted by dotdevelop NO[at]SPAM gmail.com at 10/6/2005 3:25:13 PM
We have recently upgraded from VS.NET 2005 Beta 2 to VS.NET 2005 Release Candidate on all our development machines. It appears it the Framework is upgraded from v2.0.50215 to v2.0.50727. This appears to be a major change. For any of our 2.0 projects that use collections, I am getting missing fie...more >>

How do I clean the cache?
Posted by Juan Dent at 10/6/2005 2:16:03 PM
Hi, I have been using FUSLOGVW.exe to inspect bindings - both successful and not. Yet all the time I see the following: LOG: Found assembly by looking in the cache Now, if I wanted to start fresh, how can I empty the cache? At least empty the cache for my assemblies or certain assemblie...more >>

DateTime.Compare is always returning -1
Posted by Arne at 10/6/2005 10:41:04 AM
DateTime.Compare is always returning -1. What am I doing wrong? Dim today As DateTime = DateTime.Now Dim temp As Integer Dim endPeopleRegDate As DateTime endPeopleRegDate = Convert.ToDateTime("10/5/2005 23:59:59") temp = DateTime.Compare(today, EndPeopleRegDate) today = Date.Now.AddMonths(1)...more >>

working with scanner
Posted by z f at 10/6/2005 10:23:36 AM
Hi, is there some SDK to working with scanner - telling to scan a doc and getting the currently scaned file? TIA. BTW, not must be dot-net, also VB6 or VC++ sample can help ...more >>

How to figure out what script files gets loaded??
Posted by Søren M. Olesen at 10/6/2005 9:05:18 AM
Hi Is there an easy way to figure out, from code behind, what javascript files gets loaded on an .aspx page?? Of source I cound tap into the render and parse the html, but I was wondering if that information already exists somewhere.... TIA Søren ...more >>

Writing Stream to File
Posted by Annette Miller at 10/6/2005 12:00:00 AM
Hi All, I'm just wondering if someone can show me how to write a stream to a file. Specifically I have a file (bitmap) as an embedded resource in my app i.e. "MyApp.Resources.BitmapTemplate.bmp" and was wondering how I can write it to, say "C:\temp.bmp" from the following Stream stream =...more >>

Total CPU count
Posted by at 10/6/2005 12:00:00 AM
is it possibile to know how many cpu (physicaly or hyperthreading) a machine has using dotnet framework ? thanks ...more >>

MSWinsck.ocx
Posted by Rui Dias at 10/6/2005 12:00:00 AM
Hi there! I would like to know something. I've this feature, where I implement some code to communicate to a device via FTP. I've implemented this using MSWinsck. However I noticed that the communication with this device is very slow, mainly during the connect. But when I'm using a Wi...more >>

Remoting, CallContext, NLB
Posted by Hawix at 10/6/2005 12:00:00 AM
Our application server uses Remoting and CallContext class to assign context data for communication with client. We want to use network load ballancing (NLB) to scale out our architecture. CallContext is assigned after valid execution of login method (own method of authorization) - so, it is ses...more >>

Service Stop Problem
Posted by Prasad at 10/6/2005 12:00:00 AM
Hi, Is it generally acceptable that the SCM says that the service has stopped but the service has spawn a thread which is still doing the cleanup thing which keeps the process running. ...more >>

Overriding CollectionBase.Clear()
Posted by Jazper Manto at 10/5/2005 6:35:01 PM
hi i wrote a class which is deverted from the CollectionBase. now i tried to overwrite the Clear() method with the keyword "override". the compiler says then that this is not possible because the base method is not marked as virtual. however when i have a look at Clear method of the Collect...more >>

Catching exception errors in a C# Windows service?
Posted by emdeusenet NO[at]SPAM yahoo.com at 10/5/2005 5:32:30 PM
Not sure if I have the correct group, but here goes. I am trying to write a Windows service in c# and am having trouble catching exceptions. I purposley tried to write to a bad file name hoping that the exception would be caught and I could log to the event log or external log file. For some r...more >>

Regex bug?? Insufficient hexadecimal digits
Posted by Mori at 10/5/2005 4:29:03 PM
I have a string that contains the \", \t, \r, \n. I need to get the xml. sample below: "<?xml version=\"1.0\"?>\r\n<USERS xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.slcorp.com\\xml\\slcorp_dtd_schema.xml\">\r\n...more >>

How to create a script to trust an assembly - Excel 2003 - Office System Project with C#
Posted by John Yung at 10/5/2005 2:01:37 PM
Hi, In order to run Excel 2003 - Office System Project with C#. All assemblies (.DLL) use by the project must be set to full trust. To do it manually, you right click on .NET Configuration 1.1-->Runtime Security Policy and select "Trust an Assembly". How can I automate this process? Th...more >>

Rollback when trying to install Beta2
Posted by Teri at 10/5/2005 10:26:07 AM
When trying to install the .NET Framework Beta 2 on my coworker's system (Windows 2000), there is a "roll-back" error. The installation rolls back and will not install. I am not a programmer. Can anyone please help? -Teri in San Diego...more >>

Strong Naming an Assembly using the Project settings in VS2005
Posted by Oldman at 10/5/2005 8:55:02 AM
You get warnings when compiling a project that is using the AssemblyKeyFile attribute. It recommends changing this to use the compiler option. I read about this and the reasons sound good, HOWEVER signing using project settings require that the snk file exists in the project directory. In fac...more >>

Howto create instances of nested classes in autogenerated xsd clas
Posted by JussiS at 10/5/2005 12:12:04 AM
When I autogenerate class files from XSD schemas using XSD.EXE the generated class doesn't generate instances of nested classes. Is there any way to autocreate instances of nested classes also? I don't want to modify autogenerated code because all changes would be lost when the class would be ...more >>

NSIS installer
Posted by Lloyd Dupont at 10/5/2005 12:00:00 AM
I just stumbled on NSIS today, which look like a cool installer tool (I particularly like the facts that, unlike MSI: 1. you have small install bundle, 2. you could ship multiple language in 1 installer) Does any of you uses it? What about the .NET boostrapper? I mean when you create and i...more >>

.NET Framework 1.1 install fails
Posted by Ivan Debono at 10/5/2005 12:00:00 AM
Hi all, I'm trying to install the above but it fails. When I look at the event viewer, I find the following entries: Product: Microsoft .NET Framework 1.1 -- Internal Error 2908. {7D4B5591-4C80-42BB-B0E5-F2C0CEE02C1A} Product: Microsoft .NET Framework 1.1 -- Internal Error 2908. {9922FCCE-...more >>

Delegate property and component serialization
Posted by Arthur Dent at 10/4/2005 11:08:30 PM
Hello all... I have a component which i wrote, which is used for automatically emailing errors, so that when an app (usually a website) goes into production, i automatically get emailed about any exceptions which occur on the site. A friend wanted to use the same thing but have the ability ...more >>

Running GUI application in separate application domain
Posted by nickdu at 10/4/2005 1:00:05 PM
I'm trying to isolate "applications" into their own application domain within a single process. I've quoted applications because it's a logical representation of an application. Basically it consists of a bunch of components supplied by some application group. I got this to work, somewhat. ...more >>

New Project Template in VS 2003
Posted by Victor at 10/4/2005 12:56:42 PM
Hello there, When ever visual studio loads up web projects it creats WebForm1.aspx, web.config files right, I want to include my own custom files (login.aspx, Logout.aspx) along with Webform1.aspx. How can I do this. ...more >>

How can I embed .manifest into a .net class libaray
Posted by jamiec at 10/4/2005 11:49:07 AM
Hi there, I am making a class libaray which is to use interop to work with a unmanaged COM object. What happens is that I also need to use .manifest file to control the version of COM object to load becuase there are multiple versions of COM objects. example: myapp.exe.manifest <?xml v...more >>

Error opening FolderBrowserDialog
Posted by Filipe Marcelino at 10/4/2005 9:14:46 AM
Hi, I'm having a little strange problem. When opening a FolderBrowserDialog with the following instruction: FolderBrowserDialog1.ShowDialog() the following exception is thrown: An unhandled exception of type 'System.InvalidCastException' occurred in system.windows.forms.dll Addition...more >>

MSMQ Permissions
Posted by yofnik NO[at]SPAM comcast.net at 10/4/2005 9:11:45 AM
Hello, I have an application that runs as a Windows Service. When the application runs for the very first time, it creates a new MSMQ Queue. Because the Queue was created under the SYSTEM account, now I cannot modify, delete, or even view the contents of the queue from the MSMQ Admin. What are ...more >>

Sockets data errors
Posted by Fredster at 10/4/2005 7:50:41 AM
I'm unsure of the best group to post this in, so feel free to direct me to the most appropriate group... I'm trying to use Sockets to send data from one computer to another. I have running a fairly simple sockets interface using a blocking socket (I experimented early on with sync and asy...more >>

Marshal.GetFunctionPointerForDelegate
Posted by Lloyd Dupont at 10/4/2005 12:00:00 AM
I try to get a function pointer from a delegate with Marshal.GetFunctionPointerForDelegate() Doesn't works with Action<AManagedC++ type> is there any reason why :-( ?! -- Regards, Lloyd Dupont NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> ...more >>

aspnet_wp.exe memory problem
Posted by EDom at 10/4/2005 12:00:00 AM
Hi, I have aspnet_wp.exe with increasing on every postback and not every revisit to any page. Even if I clear session and close the browser it remains in the memory. What could be the issue?? Regards, Vineet ...more >>

Component and Class library
Posted by Chakra at 10/4/2005 12:00:00 AM
Can any one tell me what is the diference between a component and a class library in .NET ? We can add a component to a class library , but then the contents of the component could as well have been packaged in the class library itself ? Regards, Chak. ...more >>

Help needed with Search/Replace
Posted by Mori at 10/3/2005 7:45:02 PM
I have a string that has several occurrences of \" and I would like to replace them with " msg = msg.Replace("\"", """); //this does not work Any suggestions?...more >>

Windows services using VS2003 problems
Posted by tshad at 10/3/2005 7:07:11 PM
I have been running into all kinds of problems with VS2003 and handling Windows services. One of the main problems is trying to uninstall services. It doesn't work half the time. Mainly it seems that is the case if you you try to change the service name (which it wants to force as Service1)....more >>

BinaryReader (et al) leave open
Posted by William Stacey [MVP] at 10/3/2005 1:39:52 PM
Shouldn't BinaryReader and BinaryWriter (or any stream that takes another stream) have an overload to LeaveInnerStream open. bool leaveInnerStreamOpen = true; using(BinaryReader br = new BinaryReader(innerStream, leaveInnerStreamOpen)) { // Use the br stream, but don't close innerStream...more >>

Files, Directories and LINQ
Posted by William Stacey [MVP] at 10/3/2005 1:13:34 PM
It occurs to me that in the same way you can use LINQ and DLinQ to get strong typing and operations over a objects and tables, you could use the same method to operate over files and directories. So within VS or at the Command Line I could start type: \temp\dir\file.txt And get intellisense...more >>

Read/Return the Framework version with the SP?
Posted by wa4lef NO[at]SPAM gmail.com at 10/3/2005 12:53:13 PM
How do I determine if SP 1 has been installed on a remote server? I can use the following Me.FrameworkVersionInfo.Text = System.Reflection.Assembly.GetExecutingAssembly().ImageRuntimeVersion() but it doesn't return any service pack info. Thanks in advance Greg ...more >>

Detecting a ComboBox selection
Posted by NormD at 10/3/2005 8:01:05 AM
(This was first posted in the VB newsgroup, but I got the impression that is really for VB6 so I'm posting it here, too.) We have an application that is used to edit properties of a .NET form. It looks sort of like the .NET IDE, but is just for basically alterinf visyal attributes on the f...more >>

Microsoft enterprise library and Oracle
Posted by ilyas NO[at]SPAM igsoftwaresolutions.co.uk at 10/3/2005 7:54:54 AM
I have the following code Database db=DatabaseFactory.CreateDatabase(); DBCommandWrapper dbCmd=db.GetStoredProcCommandWrapper("test1"); dbCmd.AddInParameter("modUsr", DbType.String, "QUINNJ"); dbCmd.AddOutParameter("CUR", DbType.Object, 2000); DataSet result= db.ExecuteDat...more >>

Catch Checkbox events
Posted by Phuff at 10/3/2005 7:30:18 AM
Hi all. I know I can catch individual events in a sub by handling the check state for a particular checkbox, but what if I was to catch for all check boxes? I need to check for whcih checkbox was clicked so I can pass that info into a variable for a select/case statement. Any ideas? ....I w...more >>

re: FTP Active Mode - Can't Get Server To Connect after PORT Command
Posted by Chad Z. Hower a.k.a. Kudzu [msft] at 10/3/2005 7:21:45 AM
Is there a specific reason you are trying to code FTP yourself? In general this is not a good idea. _________________________ Chad Z. Hower Regional .NET Developer Advisor (DPE DE) Microsoft Middle East & Africa +90 212 326 5185 +90 533 685 6256 (Mobile) Legal Disclaimer Any newsgroup ...more >>

FTP Active Mode - Can't Get Server To Connect after PORT Command
Posted by Jim Davis at 10/3/2005 6:12:49 AM
I am trying to implement a Active mode connection to an FTP server, but cannot get the server to connect to the port specified by the PORT command. Below is the code that creates an active data connection. It is based on code found in the FtpWebRequest class referenced in the following articl...more >>

Restricting entry in textbox
Posted by Altramagnus at 10/3/2005 3:10:47 AM
I have searched throught the newsgroups on how to restrict entry in textboxes, for example, I only want the textbox to only accept numberic. The standard answer is to use the KeyPress event. However, this do not address the paste event User is still able to copy and paste any characters. H...more >>

Framework freezes on control access?
Posted by Rab Hallett at 10/3/2005 12:00:00 AM
In certain situations, accessing a simple control property can cause our entire application to freeze. On inspection, it has always frozen inside a framework call, such as Control.Visible. > system.windows.forms.dll!System.Windows.Forms.Control.SetVisibleCore(bool > value = false) + 0x47e ...more >>

Stacktrace constructor hangs
Posted by Kurt Biesemans at 10/3/2005 12:00:00 AM
Hello, I have a line code : StackTrace stackTrace = new StackTrace(false); When I run the project in debug, the application keeps hanging on this line. My Environment: Windows 2003 Server Standard SP1 Visual Studio 2003 SP1 Any help is welcome Kurt Biesemans ...more >>

how to format financial value?
Posted by Lloyd Dupont at 10/2/2005 12:00:00 AM
I would like to format financial value with something as simple as: string.Format("{0:$#.###.00}", value) but instead of hardcoding the format string I would like to use the system one. I found the NumberFormatInfo but I can't find how to get the currency format string from it.... Any ti...more >>

Sensors....
Posted by Paul Aspinall at 10/2/2005 12:00:00 AM
Hi Does anyone know of any 'Sensors' (such as Ph, float switches, temperature etc), that are available to be connected to a PC, and their values read via the .NET framework?? Thanks ...more >>

gac
Posted by z f at 10/2/2005 12:00:00 AM
what are the benefits of using the GAC? ...more >>

[Slightly OT] Is this possible with a regex?
Posted by Cool Guy at 10/2/2005 12:00:00 AM
Is it possible, with a regular expression, to split a string by spaces, *not* splitting substrings between quotation characters? e.g.: one two "three three" four "five five" six --> 1: one 2: two 3: three three 4: four 5: five five 6: six...more >>

X10 devices
Posted by Paul Aspinall at 10/2/2005 12:00:00 AM
Hi Does anyone know of a class library which is available for coding against X10 devices (notably the CM12U) Thanks ...more >>

locale info: currency symbol and moey formating
Posted by Lloyd Dupont at 10/2/2005 12:00:00 AM
In my application I want to display 1 Unit = <Text Box> $ and This is worth $10 000.00 where, in each case the $ symbol or the $#.### formating come from the system. Where could I find these? ...more >>

D=E9j=E0_vu_bug:_The_Matrix_uses_the_.NET_Framework!
Posted by laurentfromparis NO[at]SPAM gmail.com at 10/1/2005 9:57:53 PM
You remember the Matrix "D=E9j=E0 vu" bug where the same sequence is executed twice. I may have I found the root cause of this. The Matrix encounters a .NET Framework bug. To make a long debugging story short I have been chasing an intermittent lock leak that was not the kind you find in text ...more >>

xml manipulation -- dataset or dom???
Posted by Martin at 10/1/2005 6:49:44 PM
Hi, I have been doing a bit of work lately with xml. I have been using the xmldocument class to manipulate the DOM, I was wondering if I would be better to just to manipulate the xml as a dataset (just adding, deleteing, updating rows) or whether I should just stick to the xmldocument met...more >>

Where does the .NET framework store the current folder for OpenFile and SaveFile Dialog?
Posted by Howard Weiss at 10/1/2005 11:37:23 AM

can I develop Test Automation tools for VC++ Project in >NET Framework
Posted by Tarandeep Singh at 10/1/2005 10:00:23 AM
Hello All As we know we can develop Test Automation tools for .NET Application in C#.NET it is discribed in James McCaffrey Article in http:\\msdn.microsoft.com/msdmag/issues.03/01/UITestAutomation/default.aspx someone tell me can it Possible we Develop this Tool in .NET Framework for ...more >>

.NET Framework 2.0
Posted by Daya at 10/1/2005 5:31:03 AM
Where do I get the architecture representation of .NET Framework 2.0? Where can I find the documentation for .NET 2 - also details on differences between 1.1 & 2.0 thanks...more >>

VB.NET Designer - Properties
Posted by Zabby at 10/1/2005 4:43:05 AM
hi, since today, in my project every "properties box" is empty, in the designer mode. for example, when i click an a label, i can´t change it´s properties via designer... it looks like the link between sourcecode and designer is destroyed... what can i do?...more >>

Software protection - Activation method??
Posted by juvi at 10/1/2005 1:50:03 AM
Hi, how can I implement a trial software with activation possibilty for Pocket PC or PC? Is there somewhere an example for .net? How does the activation procedure work?Thank you juvi...more >>


DevelopmentNow Blog