Software Development Network Logo
  • Windows Vista
  • Microsoft ISV
  • SQL Server
  • Visual C#
  • Audio and Video
  • Visual FoxPro
  • Visual Studio
  • Visual C++
  • VS Team System
  • Windows Forms
  • .NET Development
  • Game Technologies
  • Smart Devicet
  • Visual Basic
  • IE Development

Software Development Network >> .NET Development

.NET Development

New Question

SerialPort Class Error, Freezing/Restarting PC
Query question
Could not find installable ISAM
Returning DataReaders
1000+ threads in windows service (c# .net remoting)
finalize new columns added to a table
CLR and thread deadlocks
Extending security classes to work with own objects
Video
ProcessStartInfo ENVIRONMENT & UseShellExecute

Top Answerers

clint 2
Eugene Katz
kleinma
Fiat
Kay-Davis
Rainadaman
AnaC
Shady Brady
Sweeps78
Gurpreet_Sodhi_69db48
sitemap
Only Title

Answer Questions

  • ComicSansMS Error when failing over to mirrored database

    I'm having a problem with SQL2005 Database mirroring. I have an ASP application that loops for a certain amount of interations and in each iteration I create a SQL Connection object and use the failover partner in the connection string. The object then writes a simple record and then the connection is closed and the process starts again. About half way through my loop I force a failover to the server mentioned as the failover partner in the connection string. At this point my application encounters a SQL Exception error and the application fails. I read in this article, http://msdn2.microsoft.com/en-us/library/ms366199.aspx , that this is expected and that you shoud request a new connection using the same connection string but ...Show All

  • Prathapbolar Convert string to SystemColor?

    I have a string on database like this string stra= "System.drawing.Systemcolor.Red" (sorry if spelling not correct) And I try to make new Label lb=new Label(); and asigne lb.foreColor= new (SystemColors) stra; but it does not work , how can i correct this error because i want to store user's color setting into database so the next time the user uses my program has the color he chosed before. thank you for any reply DongMT Thank you boban.s I follow your instruction and my problem has been solved thank you Thank you, Michael Taylor I have a small probem with English and i understand your opinion ; way #1 to solve problem is stra="0xFF0000"; lb. ...Show All

  • Zero_ viewing all memory objects

    Is there anything that will work simular to the watch, but list instead all objects existing in the current process (assuming debugger mode + PDB) You can use SOS and do a !dumpheap command, but there is going to be a lot of data coming back. There are some filters you can apply (object size, object type, generation) to reduce the amount of information. See Vance's post for getting started with SOS. For memory leaks you'll want to read this SOS post, too: http://blogs.msdn.com/ricom/archive/2004/12/10/279612.aspx I believe there are some other good tips if you google for SOS and memory leak. Thanks Scott! I knew there had to be a way. I have been trying to find memory leaks, and this looks to be the tool for the jo ...Show All

  • ReneeC Remove Empty tag from XML file

    Hi All, I have a xml document which has one empty element. I want to remove/delete it using aspx page. e.g. Xml file is in this format <abc> <xyz> <efg/> </xyz> </abc> In the above exampele I want to remove <efg> tag This taks is best accomplished using the XSLT design pattern "Override the identity transformation". The following tramsformation: < xsl:stylesheet version =" 1.0 " xmlns:xsl =" http://www.w3.org/1999/XSL/Transform "> < xsl:output omit-xml-declaration =" yes " indent =" yes "/> < xsl:strip-space elements =" * ...Show All

  • OpinionatedGeek Fail to Load dll from C# when no VS2005 installed -'System.IO.FileNotFoundException'

    Hi, I am running C# application with a MFC dll on VS2005. When I copy the .exe file and the dll to another computer I get the following errer: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in FilesUpdateApplication.exe Additional information: Could not load file or assembly 'StrtData, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Where the StrData is my dll file. Please advice, Thanks Idit I didn't have the change to test it yet, but I think that it is something with the runtime environment. So I will try to install the package you suggested , this might help. Thank you Idit Are you sure it is an ...Show All

  • YA say hello Mulitple .NET runtimes running at the same time

    If I have an exe build with v1.1 of the .NET runtime and it invokes a DLL built with v2.0 of the runtime, will multiple versions of the .NET runtime be running in that process I know I can override the default via an app config file. I was just wondering if a single process could be concurrently running multiple versions of the .NET runtime. thx in advance, todd I believe it was originally on the cards to allow different runtimes to be hosted in seperate app domains in the same process for .NET 3.0, but I think this has been dropped. It will probably happen some time but for now Nikhil is right, whichever runtime is loaded first is the one you're stuck with, and if you try and call a 2.0 ass ...Show All

  • bmains WMI Classes for SAN HBAs

    I'm looking for the WMI classes for Storage Area Network (SAN) Fibre Channel (FC) Host Bus Adapters (HBAs). Similar to Win32_NetworkAdapter, Win32_NetworkAdapterConfiguration, and Win32_NetwrokAdapterSetting. I'd like to be able to Query the Manufacturer, Model, Firmware version, BIOS version, and Driver Name and Version. I'm using Framework 2.0. If there are add-ons, I'd be interested. Play with this tool to find out what the manufacturer made available to you. ...Show All

  • Allen Razdow How to connect to remote computer by LAN

    Hello In VB6, I was connecting to another computer by LAN using Microsoft Winsock Control and I was making conversations between computers. Is there better way to do it in VB2005 Thanks the examples shown in the links given can achieve this :-) of course you need to have a client/server app going on, again as shown/demo'd in the doc's in order to send and recieve data See this Thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=871666&SiteID=1 It has the simples working example of Client and server in C# however you can convert it to VB.Net very easily, create two Console Applications and use one Server and one Client and put the code appropriately. You just nee ...Show All

  • messaoud CoCreateInstance doesn't work if the InstallShield is installed

    Hi, I'm programming a DB access application using SQL Server 2005 OLE DB(Native client) provider. There's no problem everytime calling CoCreateInstance until I install the InstallShield program. After the InstallShield(Express edition) is installed in my pc, the result of calling CoCreateInstance() is strange. It seems that just return and I could not get the any error code. Anyone help There are occasionally interactions between InstallShield and Visual Studio, like this: http://support.installshield.com/kb/view.asp articleid=q106194 and maybe that's what you mean, but you need to be more specific. Does every CoCreateInstance fail What is the object you're trying to create, its classid etc I struggle to see the c ...Show All

  • RayRay1039 SerialPort DataReceived Timeout?

    I'd like to get better control over when DataReceived are generated while using System.IO.Ports.SerialPort. In particular, I want to be able to control the timeout behavior. This can be done using SetCommTimeouts() when writing to the Win32 API but so far I have not found anything equivalent under .NET Anyone know how this might be done I was thinking I might be able to control it using IOCTL_SERIAL_SET_TIMEOUT but have not been able to find a way to access the underlying filehandle. Is there a way Hi, thanks for the reply. I agree that ReadTimeout applies to Read*() and not the DataReceived event. However what I want to be able to do is utilize the SetCommTimeouts functionality to control when DataRe ...Show All

  • Giedrius Banaitis Read Write multi string into - from xml file

    Hi, i have an xml file which i read from and write to for example: <items> <item>MYVALUE</item> </items> now the things is that i want to keep in MYVALUE a couple of null terminated strings,but i dont want to keep them like this: <item>string 1</item> <item>string 2</item> i want them all in one item element. string[] myStrs = { "str1","str2" } how to: 1. write a string array into xml file 2. read a string array from xml file Best Regards. Your original post had a string array not a byte array. If you want to put a byte array into an XML element then with .NET you have two possibilities, you can base64 encode the bytes and write the byte array using the WriteBas ...Show All

  • AlanT1 Math in c#...

    I'm a young man with a problem 1. I got Skizofrenia/Asperger... 2. whay dossent this work: using System; namespace IVatNoV { class engine_More { static void Main( string [] args) { /// purpose: determine whether a number is a power of 2 /// input: the number being checked /// output: true if it's a power of 2, else false bool powOfTwo( int num) { return !(num & (num - 1)); } } } } I seem to be lost in VC#... Read the c# bible and the c# black book, besides O'Rileys Learning c#... Dos'ent seem 2 work! You code is wrong! Use this: using System; namespace IVatNoV { class engine_More { static void Main( string [] args) ...Show All

  • Erl Egestad How do I use one app.config across multiple projects in a solution?

    I have a solution with three projects - Common (which contains all the common business and data logic), Project A and Project B (their actual names don't matter). They all need to share the same app.config (in the Common project) but I can't work out how to do this in VS2005/.Net 2.0. Someone here ( http://www.dotnet247.com/247reference/msgs/56/284247.aspx ) suggested putting <appSettings file="common.config" /> in the app.config for Project A and Project B then adding a file called common.config to the Common project to which I move all the actual settings into. So I tried that but I still get no values when using the ConfigurationManager.AppSettings() call... it seems to me that Project A and Project B will have no id ...Show All

  • VSChallenged Error in receiving binary data from socket

    Hello all :) Am trying to call an aspx page that returns the contents of a photo as a binary blob .. Am using the socket method Here is the code : using System; using System.Text; using System.IO; using System.Net; using System.Net.Sockets; /// <summary> /// Summary description for WebConnector /// </summary> public class WebConnector { public static Socket ConnectSocket(string server, int port) { Socket s = null; IPHostEntry hostEntry = null; // Get host related information. hostEntry = Dns.GetHostEntry(server); // Loop through the AddressList to obtain the supported AddressFamily. This is to avoid // an exception that occurs when the host IP Address is not compatible with the address family // (typical in the ...Show All

  • nidionys Convert.ToString(Object,IFormatProvider)

    Hi Guys.. Please help me on this.. What's the difference between Convert.ToString(Object) method and Convert.ToString(Object,IFormatProvider). And how to implement the method Convert.ToString(Object,IFormatProvider) in my code. I get the following error when testing my code with FxCop: " MyClass makes a call to System.Convert. ToInt32 (System.Object) that does not explicitly provide an IFormatProvider. This should be replaced with a call to System.Convert.ToInt32( System.Object,System.IFormatProvider) " Ex: This is how I've implemented my code. Id= Convert.ToInt32(dataRowItem["FlPlnCmpntDefID"]); Thanks in Advance. Yogi Consider it a warning, no ...Show All

181920212223242526272829303132333435

©2008 Software Development Network

powered by phorum