Quantcast
Channel: .NET Framework Class Libraries forum
Browsing all 8156 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

How 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 Article


Asp.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 Article

C# - .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 Article

How 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 Article


POS.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 Article

SAML 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 Article


AcquireToken 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 Article


Mifare 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 Article

Windows 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 Article

Catch 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 Article

not 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 Article


how to create a web site . please tell step by step.

hi all. im the new one in learning dotnet ...

View Article

PasswordDeriveBytes.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 Article


SaveFileDialog 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 Article

Why use WebHostHiddenAttribute attribut?

I find some system class has WebHostHiddenAttribute ? I want to know why use this. Thank you!

View Article


How 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 Article

RequestValidationMode 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 Article

C#, 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
Browsing all 8156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>