Create String from a DateTime with a different time zone
Hi,I need to serialize a DatTime after convertiong it to a different time zone. I would like it to be in the folowing format: yyyy-MM-dd HH:mm:ss.fff zzz when the zzz represents the new time zone....
View ArticleHow to access the Disk volume information
Hi,I would like to get the Disk Management Properties.For example, In the Disk Management window I have system with 5 local drives called "C, D, E, F, G" na dhave the partition name as "Disc 0", Disc...
View ArticleAsp.net Custom Control with custom property
I am trying to create custom RadioButtonGroup control and add custom ListItemCollection property to this control, i already added this property but my problem that: I drag the control to my web page...
View ArticleC# - .NET 4.5 Speech Recognition problems
Hello, my name's Jake Cross! I've recently ran into a problem when I upgrade to Visual Studio 2013 running .NET 4.5. I've been using Sharp-develop for programming C# with the .NET 4.0 framework but and...
View ArticleHow to use "posdm.exe" to register a Service Object(SO)?Thanks
After I use this command to register SO, I still can not open a com device through tool "Microsoft POS Tester". Can you help me? 1. I have used "posdm addDevice", "posdm addName". 2. Error...
View ArticlePOS.Net not opening Posiflex Cash Drawer
Hi,I'm trying to open a Posiflex cash drawer using POS.Net. Here is my code:CashDrawer cashdrawer = (CashDrawer)explorer.CreateInstance(device); if (cashdrawer != null) { cashdrawer.Open();...
View ArticleSAML 2.0 Error when signature comes next to AttributeStatement (.Net 4.5)
I am running integration testing with a service that sends request with SAML 2.0 Assertion the ReadAssertion(XmlReader reader) method of System.IdentityModel.Tokens.Saml2SecurityTokenHandler is...
View Article.Net exe Hung
I had few VB 6.0 dll.Using tlbimp command we have converted this dll and consumed in .Net AppplicationI have implemented below code in .Net dll, But Somehow this .net exe hung sometimes. Not always....
View ArticleAcquireToken returns null for RefreshToken property, contrary to what...
TLDR: AuthenticationContext.AcquireToken(String, String, Uri) in Microsoft.IdentityModel.Clients.ActiveDirectory returns NULL for AuthenticationResult.RefreshToken property, contrary to what...
View ArticleMifare Desfire EV1 Change PICC Master Key Problem (91 1E = Integrity Error)
Hi, I am trying to change the PICC Master Key of a Mifare Desfire EV1 8K v1.06, but I get a 911E error, what means that CRC or padding must be wrong. I can authenticate to the master key and get the...
View ArticleWindows service getting stopped abruptly
Hi,I have a windows service application which pings server continuously every 10 secs and downloads files from the server.Recently, I have faced an issue where suddenly service is getting stopped and I...
View ArticleCatch a specific exception
Hi All,I am using VS 2013 to create my windows application. In my application in a class I am firing sql query which is been enclosed in the try catch block. I have written a specific catch for...
View Articlenot working in IE 10.">< input type="file" multiple /> not working in IE 10.
< input type="file" multiple /> not working in IE 10.I am trying to use the HTML 5 multi-file upload capability in a MVC 4 app.The control allows me to select multiple files when running under...
View Articlehow to create a web site . please tell step by step.
hi all. im the new one in learning dotnet ...
View ArticlePasswordDeriveBytes.GetBytes
This method is marked as obsolete ( Rfc2898DeriveBytes is recommended to be used instead) Anybody knows what are the chances of this method to be removed in the next .NET version ?
View ArticleSaveFileDialog initial directory and Search Results
Hi folks,I'm running into a problem with the SaveFileDialog class. I've been letting Windows remember the previous directory used by a common dialog (e.g. OpenFileDialog) and when the user does a save...
View ArticleWhy use WebHostHiddenAttribute attribut?
I find some system class has WebHostHiddenAttribute ? I want to know why use this. Thank you!
View ArticleHow to deploy assembly 32 from installer 64 ?
Hi,I have 2 assemblies 32 and 64. I want to put them in GAC folder in Deployment project target x64. I already put them in GAC folder. When I try to install, I got error 2908 and after click OK, it...
View ArticleRequestValidationMode change from 2.0 to 4.5
My current application is using RequestValidationMode=2.0 for now and planning to move to RequestValidationMode=4.5.We are currently using .Net Framework 4.5.There are any specific things to be taken...
View ArticleC#, simple for loop
Hi! Just out of curiosity, I'd like to know if there any way that in a single 'for loop', one statement can loop after the other completes the loop. Not that I know of. Code Snippet: using System;class...
View Article