Answer Questions
James M - new user Sign a XML file by SmartCard on the .NET
Sign a XML file by SmartCard on the .NET I'm having problems to access the private key of the certificate stored on the chip card. If i access the private key of a certificate with private key stored on the machine certificate store it works well.....but in the case of the chip card, when i read the X509Certificate2.PrivateKey property, i receive a System.Security.Cryptography.CryptographicException: There are more data available. ...Show All
Bjorka Serializing List<T>
I just read in the help file for the XmlSerializer, it couldn't serialize classes using Arrays or Lists. It says: "Serialization of ArrayList and Generic List The XmlSerializer cannot serialize or deserialize the following: Arrays of ArrayList Arrays of List" But, I just did it. My class has a List<sometype> within, and it serializes just fine. Parts of the code is below: [System.CodeDom.Comp ...Show All
PLCweaver System.IO.FileStream steam = new System.IO.File.Create(TempFile) Question
I'm trying to figure out how to not create a file that has zero bytes. I have an FTP client that uses a stream to download the files from the server. You can see the code below. I was wondering if there was a way that we can make a stream first, then if the file exist, then create the file with the stream. Any ideas are greatly appreciated. try { System.IO.FileStream stream = System.IO.Fil ...Show All
RajeshPKumar Problems with SQlDataReader
Guys, Hope you can help me. I have one application that is basically divided on two parts First One: Creates records on one table (Gets info from different tables) Second One: Reads the records one by one from the table and send mails with that info (for this part I use a SqlDataReader) One important thing to mention here is that we are talking about huge amount os info (200 000, 500 000) and this process is running every ha ...Show All
mike s1 AppDomain and PrivateBinPath
Hi together, I have got a question according to AppDomains and their PrivateBinPath property. I am doing the following: ------> SNIP AppDomainSetup actSetup = new AppDomainSetup(); actSetup.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory; actSetup.PrivateBinPath = @"Lib2;Lib1"; AppDomain firstLibDomain = AppDomain.CreateDomain(Guid.NewGuid().ToString(), null, actSetup); IClassLibrary actLib = firstLibDomain.Crea ...Show All
Punpromk Implementing ISynchronizeInvoke when using System.Timers.Timer
MyObject is running on the main thread. MyObject.Start is called which calls an unmanaged API to begin a process. It then starts a System.Timers.Timer for 5 seconds in the future The Timer elapses and called MyObject.Stop which calls into the unmanaged API to end the process. Of course this is called on a secondary thread. I suspected that this wouldn't work becuase the unmanaged API doesn't like being called from 2 thre ...Show All
jibreel Web Service state question
Hello, Is it possible to maintain a database connection via a web service If I have 1000 clients hitting a web service, is there a way to have them all use the same database connection instead of opening a connection, passing some sql, then closing the connection I assume this is not possible, if it is not what suggestions would you offer Thank you. its not possible, the connection must be expl ...Show All
SS38 Odd class behavior
I'm redesigning a website and am creating classes for business logic. When I create a new object: Dim obj as new objBusiness obj.Foo has a default value as 'Nothing' if i write code like so: if obj.Foo is Nothing then Response.write("ERROR") end if I keep getting this error: Referenced object has a value of 'Nothing'. It doesn't really make sense As long as obj has r ...Show All
KCastillo0319 Need help with Database programming...
Hello, I am new to database programming in vb.net. Maybe you can help me. I want to do the following: - Create a new ACCESS DATABASE - Fill the ACCESS DATABASE with data from a treeView + a column, where I can see the state of the checkboxes of each item - The points above in the other way --> reading the data out Thank you juvi Hi, In creating a access database. if you want your program to do it for you, t ...Show All
slee1435 HOW TO ACCESS REGISTRY KEY FOR DLLS
hi, I ve a problem in my application its not able to access the dll used.The error says registry key not found.Can i solve the problem using regedit I tried out regedit and didnt found the key HKEY_CLASSES_ROOT\Component Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29} so i created the above key and gave the required permissions and still it was unsuccessfull. was i on the right p ...Show All
CAyson Where is the packaging & deployment wizard?
Hi, I spend a few days searching around and reading and re-reading http://msdn.microsoft.com/library/default.asp url=/library/en-us/cptutorials/html/common_packaging___deployment_concepts.asp but I must be missing something very big . I still can't find any information on how to package a .NET application, one with sub-folders containing the different language resources. Would someone be so kind as to lead me the way. Tha ...Show All
Vikram Bade Cannot create ActiveX component with word.apllication
Exception Details: System.Exception: Cannot create ActiveX component. Source Error: Line 278: Dim docType As Object = 0 Line 279: Dim isVisible As Object = True Line 280: oWord = CreateObject("Microsoft.Office.Interop.Word.Application") Line 281: Getting the above error when moved to production IIS server. It works fine from Visual Express Developer 2005 which is on the same machine. Some solutions indi ...Show All
kenichi yamazaki Discrepancy between how Uri class parses URL and the way Internet Explroer does it?
Here's a Google Desktop URL: " http://127.0.0.1:4664/&s=8lD6KsMwZ1Zd3ZWWqfZb327gN6g&q =". Internet Explorer properly treats everything after the last '/' as a query string (even though starting query string with '&' instead of ' ' is odd). To prove this is the case just look at the page sorce and see google desktop logo <img> has relative src=hp_logo.gif, which corresponds to http://127.0.0.1:4664/hp_logo.gif URL (ch ...Show All
David Gardiner How to prevent Gzip to create a compressed file bigger than the original
I am working in the Graphic Art industry where most common files are Adobe Acrobat PDF, big image file with Jpeg compression, and 1-bit TIFF file for plate making. Working with the new Gzip Class on those file types is outstanding since the compressed files are usually much more bigger than the original. Is there a way in .NET 2.0 to prevent this behavior Hello Henri, Unfortunately, this is a known issue with the GZi ...Show All
ChrisHelt [c#] Problem to get my connection string from settings
Hello, I try to connect to retrieve my database connection string with the following code : using System; using System.Configuration; namespace Lafon.Easy.Data.ProfilFonctionnel { public class ProfilPersistor { private string _connString; public ProfilPersistor() { ...Show All
