Answer Questions
jn_joe Help: new to Data access stuff
hi all, i am completely new to working in data base access using c# and visual studio 2005. i do not have db yet. where can i get beginners tutorial on creating, and accessing data base in VS2005 and c# will really appreciate. rnv Hi there, try this article http://www.dotnetspider.com/tutorials/DatabaseAccess.aspx it explains a lot about how to access a database from C#. Also Google "Database Acce ...Show All
MrCadburysParrot SslStream fails - switch to plain sockets...
Hi, I have problems getting the following to run. I have client/server which communicate over SslStream. However, for older clients, which don't support the SSL yet, I still need to be able to communicate with them over plain sockets if SSL fails. So I was hoping that this code would work: [code] private static void AuthenticatedCallback(IAsyncResult ar) { StateObject state = null; try { state = (StateObject)ar.A ...Show All
Latso ILGenerator.BeginCatchBlock() & ILGenerator.EndExceptionBlock() emit unwanted 'leave' instruction
hi , i'm having problems with the Reflection.Emit.ILGenerator.BeginCatchBlock() and the Reflection.Emit.ILGenerator.EndExceptionBlock() methods. I've got the idea that BeginCatchBlock() is the correct way to end a try block aswell as serving to start the catch block - please correct me if thats wrong. The problem is that these methods are always emitting an extra 'leave' IL instruction that I do not want before they close the preceeding ...Show All
ArcJeremy Memmory issue
Hi buddies, I am facing serious issues on memmory release. Issue is after disposing the objects also the memory is not releasing. It may be my code issue. I am using IDisposable to dispose and using, [System.Runtime.InteropServices.DllImport("Kernel32")] private extern static Boolean CloseHandle( object ClientList) to release the objects to memory, but still the app is holdin the allocated memory. Please help&nbs ...Show All
fixxorion .NET Framework - hotfix. Can I discard the original Framework?
I don't know where else to post this, but I just received an automated update hotfix for my .Net Framework that is 1,114 megs...this is in addition to the original .Net Framework that is also 1,114 megs. That's taking up too much of my disk space. I'd like to remove one of them if I can, but I don't know anything about the pros and the cons. Can I just remove the original and use the hotfix in it's place Thanks, Paul The Original is ...Show All
Malek Khan I want the CLR to probe the local folder BEFORE the GAC
Hi, I have some assemblies in the GAC. I am running an exe from a folder, and the assemblies in the GAC are also in the same folder as the exe. Is there a way to stop the CLR from loading the assemblies from the GAC and load them from the folder (if they are found) Is there an element I can add to the .config file for the exe I am running to tell it to do this Thanks. ...Show All
Madness Need System.IO.Ports Help
I am just trying to write to the com1 port using the System.IO.Ports. However when I try to write my data an exception is thrown saying that the com1 port does not exist. I am a newbie when it come to using System.IO.Ports. This is my first program ever written using this library. I have posted the trouble code below. Can someone please help me SerialPort port = new SerialPort ( "COM1" ); string data ...Show All
ssunnergren Is it possible to get back my original exception (From SoapException to SqlException)
I have winforms that accesses the data layer via web services. Exception occurred on the data access layer and I put try{}catch{} statements on the client layer(winforms) to capture the exception. The original exception type is SqlException but when the try{}catch{} on the client(winforms) captured the exception of diffent type which is SoapException. My question is can I make the SoapExcepton return to its original exception which is SqlE ...Show All
hemant kothiyal Native Images and Shared Memory
Hi all, I read in a article that Native images are loaded in a shared memory location which can be shared by other assemblies running in other process. I dont understand how this works. I was thinking that all the referenced assemblies (including the framework assemblies) by a .NET application are loaded as In-Process Dll's in the applications App Domain. Is it wrong Is it possible for a Dll to be loaded in a shared location so that the ...Show All
Henning Pohl Failed to access IIS metabase, VS2005 RC
I am developing a webservice in Visual Studio RC. I have just got a new pc and my problem is that I am not able to access this webservice. I have created a virtual directory in IIS, but if I try to browse there, I get a "Failed to acces IIS metabase" error message. Does anybody know how I can resolve this problem If that is the case, you can check a couple of these options. It should all be there, but you never know! Right-click ...Show All
Soccer8.NET User Rights
Does anyone know if you can access the "User Rights Assignments" (i.e. "Access this computer from the network," "Change system time) of a computer in its registry using the Registry Editor For example, I would like to read a registry key from the registry that tells me if "Change system time" is set to Admin, Power Users, Everyone, etc. I have to check these policies on computers over the server. I know how to do it using C# (a ...Show All
OrlandoRocks Open SQLConnection in Exclusive Mode
Hi, I've an application that when run for the first time needs to know if the SQLServer database is in use already by another user. In ADO I use the following command: try Db.close Db.Mode = ADODB.ConnectModeEnum.adModeShareExclusive db.open ConnectString Catch ex as Exception Db.Mode = ADODB.ConnectModeEnum.adModeUnknown End Try If Db.Mode = ADODB.ConnectModeEnum.adModeS ...Show All
double_metre Which client/server communication technology to choose?
Hi for all I will speak about the architecture of my App. and I want any help this is because I tried moore to achieve this architecture BUT the App is in Client / Server System O.K the client send some sql commands then the Server executing them using the connection to the database that this server is open O.K then the Server send the results back to this client then the client can request from this server to send a fil ...Show All
Iain Bryson MSFT How to write a Char formate in 8 bytes
Hi, i'm working on a project to read and write a char formated data set as an 8 bit char(c++) instead of a 16 bit (c#) When you open a file using class StreamReader, you can specify the Encoding in the constructor. The encoding selects how the strings are read and written. One of the encodings is ASCIIEncoding for 8-bit ascii values. UTF8Encoding encodes each Unicode character as between 1 and 4 8-bit values. ...Show All
Kaushik j Remotely accessing system certificate stores
I am developing a C application to use SSL/TLS. Using the samples provided by MS, I have been generally successful. I am using a stand-alone CA at this time. I have been able to run my server and client with a SSL connection on the same machine as well as 2 separate machines. However, to get this to work I have had to install the certificates on the machine on which the program is running. The issue that continues ...Show All
