Answer Questions
Helen999888 Help with DES Encryption & Decryption using C#.Net
Hi, Could you spare some time to help me with a small problem I need to perform encryption and decryption using the DES algorithm. This is the way I want the program to work : My form has 4 textboxes - 1) tbPlaintext --- For the user to enter the plaintext 2) tbCiphertext --- For displaying he ciphertext 3) tbKey --- For displaying the key 4) tbIV --- For displaying the Initialization Vector and 2 buttons - 1) Button1 --- When clicked performs encryption using key form tbKey and the IV from the string - "init vec" 2) Button2 --- When clicked performs decryption using the key in tbKey and the IV "init vec" The user enters the plaintext -"Hello wo ...Show All
marthew Multiple elements in a configuration section
Hello All, I would like to know whether it is possible to have multiple configuration elements with the same name within a custom section. Changing the element name to say "operation1" instead of "operation" (see sample file below) seems to work but i would like to use the same element name. I think i have to set something like maxOccurs=unbounded but not sure where to do it inside my custom classes. I have already implemented custom classes inherting from ConfigurationSection,ConfigurationElement and ConfigurationElementCollection to implement the stuff below. Am i missing something Currently if i add multiple elements with the same name within the section i see the following error "The element <opera ...Show All
RyanB88 Progressive Slow Down using XmlDocument
I am writting an application that communicates with another local application through xml using TCP/IP. There is steady communication, and one application acts as a server sending and receiving contant results to and from the main interface. After a while simple methods invoked on an XmlDocument object take longer and longer. I was origrinally using one member XmlDocument in the class that was doing the work, so I changed it to use localized XmlDocument's inside each function of the class, and the progressive slow down persists. I have mapped the time it takes for specific lines of code and it grows at an exponential order. One line of code that does this is: p_obj_XmlDoc.LoadXml( "somexml string here"); Any ideas of what coul ...Show All
nosajeel C# Dereference Operator
Hi, I have the following method in C# and have a requirement to put it into a VB.Net class but not knowing VB.Net as well I was hoping someone could help: private unsafe IntPtr MessageHookProc ( int nCode, IntPtr wparam, IntPtr lparam) { if (((nCode == 0 ) && this . isHooked ) && ((( int ) wparam) == 1 )) { NativeMethods . MSG * msgPtr1 = ( NativeMethods . MSG *) lparam; if (msgPtr1 != null ) { NativeMethods . MSG msg1 = new NativeMethods . MSG (); msg1. hwnd = msgPtr1-> hwnd ; msg1. lParam = msgPtr1-> lParam ; msg1. message = msgPtr1-> message ; msg1. pt_x = msgP ...Show All
Lakshmi N 64 bit ODBC driver for Microsoft Access
Hello, I am trying to connect to one of my Access databases (.mdb file on my local) from ODBC connection. The problem is, I am using 64-bit Xp Pro and it does not see any Access driver on 64-bit architecture. Does anybody have 64-bit compatible ODBC driver for Microsoft Access Any other help also will be appreciated.... Can any of you tell an "average Joe" how to compile the application against the x86 processor I'm not a developer just a sys admin trying to connect to an Access db - thanks! Paul Run it through SQL Server Express (which is 32-bit) http://gorm-braarvig.blogspot.com/2005/11/access-database-from-sql-200564.html Not straight-forward but a lasting solution, hop ...Show All
sharath.n Is it possible to discover SecurityAttributes in the Reflection Only context?
Hi, I'm doing some stuff with the Reflection-Only context at the moment and I'm running into a bit of trouble with discovering security-related attributes defined on a member. I can use CustomAttributeData.GetCustomAttributes to find most things, but I since SecurityAttribute classes are just pseudo-custom-attributes, they don't show up. Is there any other way to detect these Unfortunately the current reflection object model does not expose the security attributes (either in the Reflection-Only or standard contexts). You've pointed out the reason -- security attributes are not real custom attributes, in that they have their own metadata table and are stored seperately from the custom attributes that refl ...Show All
edukulla How to verify if an email was sent or not ? Net framework 1.1
Hello , how can I Know if an email was sent or if there is an error in the smtp server with the Net Framework 1.1 Namespace System.Web I am Using the System.Web.Mail.SmtpMail.Send(MaiMessage) method but it does not return anything telling me if the message was sent or Not . Also a note : I am using this namespace from a windows application . Thanks in advance for your replies well I guess it depends on the SMTP Server some SMTP Servers allow checking of an email address with a special command some dont but will accept any email address and send the email to them, if any errors itll handle itself some also bounce back emails if the email address is not valid. Mariya . ...Show All
CS05pp2 AVOID THE ?DO YOU WANTO TO REPLACE IT?? QUESTION
AVOID THE REPLACE FILE QUESTION I`ve export the data of a data grid to an excel file, but everytime that i run the app the question doyo wan to replace it (the file shows, con anyone help me Sub entrar() 'Start a new workbook in Excel. oExcel = CreateObject( "Excel.Application" ) oBook = oExcel.Workbooks.Add 'Create an array with 4 columns and 100 rows. Dim DataArray(99, 3) As Object For r = 0 To 99 DataArray(r, 0) = "ID" & Format(r + 1, "000" ) DataArray(r, 1) = blu(r) DataArray(r, 2) = bla(r) DataArray(r, 3) = fecha.Text Next 'Add headers to the worksheet on r ...Show All
GT_MSDN Thread
I have two threads one for windows forms the other for tcp sockets. i set a field (for example the main socket) When i go to the windows thread then go back to the tcp socket thread the fields i had set are now set to null why is this happening How can i fix this Can you please provide more detail What do you mean by "When i go to the windows thread then go back to the tcp socket thread the fields i had set are now set to null " Some short sample code might be helpful. This is off-topic for the XML and the .NET Framework forum, moving to the .NET Framework Networking and Communication forum. you are right sorry did not notice where i put it ...Show All
Sweeps78 .net remoting and classic COM Client
Hi I have a .net remoting object hosted in windows service. This remoting object will be generating different events when there is any activity on smart card reader connected via USB. Everything goes fine with windows client but now i want to use the same remoting object in classic com client written in ATL(in activex). I tried this by exposing windows client as COM Visible. Here every thing goes fine if i donot use events but as soon as i starts using events i got wrong results. Can anyone point me how to use remoting object in classic COM cleint. Thanks in advance. Amandeep S Kaile With the COM client, how are you registering the callback channel with port="0" ...Show All
Acco1953 Underlying socket was closed
I have set up a remoting configuration over the internet using a Tcp channel. After I have started the remoting host I try to make a connection with it from the client. It ends up however with a RemotingException stating "Underlying socket was closed". No further information is available. Which aspects might cause this exception thanks, Henk Thanks for your response. It didn't help me however. I already tried this. What I forgot to mention is, that everything works when I use an Http channel. Could it be that it has something to do with the fact that it has to go through ISA We use port 2211 and we succeeded reaching port 2211 when applying Http. With the usage of Tcp channel is fails however. Any ideas / suggest ...Show All
Chefbrenner help.........
I'm using visual studio wed developer edition. In that I'm using OLEDB connection for MSAccess Database. When run the application by VS itself, no error was found. But when host it in IIS.. i got the error like..."The 'Microsoft.jet.oledb.4.0' provider is not registered on the local machine". plz any one give me the solution. Most likely Jet OLEDB provider is not installed on a server. Jet is not a part of MDAC or Windows installation anymore and you need to download and install it separately. You could download it from this link http://www.microsoft.com/downloads/details.aspx FamilyID=2deddec4-350e-4cd0-a12a-d7f70a153156&DisplayLang=en ThanX ...Show All
BlueBeetle Web Services & Partial Encryption
i am developing a set of web service methods which return reporting data. ideally i do not want to use HTTPS due to the extra performance hit. what would be ideal is to encrypt only that data which is sensitive. for example, 1 particular report has 12 columns of data. but only 1 column of data really needs to be encrypted over the wire (the client name). at the moment my web service method returns a dataset. although i can change this, if it is easier to implement partial encryption by returning a different type. please could anyone advise if it is possible to perform partial encryption in .NET2.0 like this if so i would be grateful for any advice, URLS, etc. to get me off on the right foot. thanks ...Show All
MIKE DANAHER How can I copy a whole table from MS Access database to another?
Hello, I have 2 MS Acess database, in each one I have a table named Catlog, what I want is to open the two tables and copy the Catlog table from the a database to the other, at runtime for sure! Is there an easy solution or I should use SQL to delete all the rows from the first table and then read the rows from the second table and write it again to the first one!!! Please help. Thanks in advance. There is no reason that the password must be hardcoded. You can build the connection string based upon dynamic information, such as the path to the database or database password. For example: DatabasePath = "C:\Test Files\db1 XP.mdb" DatabasePassword = "mypassword" ...Show All
Timo123 install .Net Framework 1.0 over 2.0??
I have 2 XP machines with the same software, both have WinXP SP2, VS Pro 2005, SQL Server Standard 2005, and IIS 5.1 (comes with windows). I have a sample site that I am learning from Wrox Publishers, "Beginning ASP.net 2.0". I can't get it to work on one machine, and I've noticed this machine doesn't have the .Net Framwork 1.0 - it has only the 2.0 framework. The machine where all is fine has both frameworks, and IIS Application Configuration has several more extensions. On the machine with just the 2.0 framework, I keep getting "Microsoft SQL isapi extension" error 500, internal Server error, HResult: 0x80070005. Am I on the right track Do I need to install 1.1 on the machine that has only 2.0 framework on it &nbs ...Show All
