Marshalling nested structs
We have COM Server (as dll, we have only dll file), that implements two COM interfaces. One of interfaces allows us to get messages (as structure) from some device. Depending on message we need to...
View ArticleSelecting Multiple Items From CheckBoxList
i am trying to get multiple selected items from a asp:CheckBoxList but when i try to compare selected items with some value it says indexing is not allowed. here is the code and Underlined line...
View ArticleCant disable "Unable to start correctly - Application Error (0xC0000142)"...
I am using API Process.Start(ProcessStartInfo) to start an application. In my code I am starting an application and monitoring application's process using Process.Start(ProcessStartInfo). As soon as...
View ArticleSystem.Security.Cryptography.CryptographicException: Access denied when...
I am writing a simple example code to demonstrate how encryption and decryption with the X509 certificates works. public static byte[] Encrypt(byte[] content, X509Certificate2Collection...
View ArticleMicrosoft Visual C++ Debug Error
Hello.My Error is:Retrieving the COM class factory for component with CLSID {DDB97CDF-36EB-494C-B07E-DE050F24EF9E} failed due to the following error: 80000003 One or more arguments are invalid...
View ArticleInput string was not in a correct format. Could'n store in RaO Column....
this erros appear when open one software after pc was shut-down on a drop the power.please help to solve problem if its possiblePetre Praporgescu
View Article0xc0150002
I have windows7 and have been running artcam pro for sometime now and then I installed Corel draw x4 and now I get the error 0xc0150002 and artcam will not open. Any ideas on how to fix this????
View ArticleDataContractJsonSerializer and underlying environments
Hello,I am starting a new discussion because I ran into a weird issue with the DataContractJsonSerializer. Indeed, we used this serializer on a project targeting framework 4 where we serialized an...
View ArticleExport Grid View in Excel
Export GridView to Excel is working Fine But My problem is when excel open thefile, it became numeric, this may cause problem, cause the field is a creditcard number (e.g 1234567812345678 ), the excel...
View ArticleSteps for implementing a reg-free .Nett dll in a VB6 program
Hello,I am desperately trying to get my vb .NET .dll to work registration-free with my vb6 progam. I tried to create a manifest by several different methods (Make my Manifest, UMMM, Side by Side...
View ArticleWhy does Microsoft create specific Extension Methods?
I wrote my first Extension Method a few days ago. Extension Methods are a great idea.But I don't understand why Microsoft supplies specific Extension Methods. The documentation for the String Class,...
View ArticleHow to close Windows form through User control
Dear All,I have a User control with a button = CLOSEi want to use that control on windows form.Now when i run that windows form, and click on CLOSE button, it should close form, but it won't do it,...
View ArticleDo we have the CCC(clear command channel) and SSH/SFTP support in .net...
Hello,I am using C3 .net 4.0, do we have the CCC(clear command channel) and SSH/SFTP support in .net FtpWebRequest class?Thanks, Nitin
View ArticleHow to get user machineID in asp.net web application
I have a Web application which is limited to the employees in a company. When a employee login i want to identify the Machine of the current user.Someone said to me that it is possible through ActiveX....
View ArticleFileSystemWatcher not working when large amount of files are changed on short...
We have used FileSystemWatcher to notify content changes on asp.net application that runs on webfarm. The FileSystemWatcher works fine when small no of files are changed due to it's internalbuffersize...
View ArticleIssue with PrintDocument.DocumentName
I have set the PrintDocument.DocumentName = "My Print Job", and when I print to my printer (Spirit LS laser engraver printer) the Document Name does not appear on the printer's LCD where print job...
View ArticleNavigation Properties null exception MVC Model
Hello, I try to add new entity in database in controller action.This is my model classpublic class Product { public int ProductID { get; set; } [Required(ErrorMessage = "Please enter product name")]...
View Article.NET 4.5 - weird behavior of WindowsPrincipal.Current
Here's my code:var b = WindowsPrincipal.Current.IsInRole(@"TEST\YYY Setup Group"); var ba = WindowsPrincipal.Current.IsInRole(@"BUILTIN\Administrators"); WindowsIdentity id =...
View ArticleMemory Leak while opening the XPS document in DocumentViewer
FilePath is XPS file namexpsDoc = new XpsDocument(FilePath, FileAccess.Read, CompressionOption.NotCompressed); FixedDocumentSequence fixedDocumentSequence = xpsDoc.GetFixedDocumentSequence();...
View ArticleEditing other (local) user's HKCU registry entries
I am writing C# windows application which will run On WinXP. It can only be installed and uninstalled by user's with admin rights as it needs to register some COM components during installtion. In my...
View Article