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

security with principalpermissionsattribute and various AD environments

HI all,We have this code in one of our systems:[PrincipalPermission(SecurityAction.Demand,Role="svcPortal_admin_prod,svcPortal_admin_test,svcPortal_admin_dev")]however we have a problem where...

View Article


Generic List order

Hi,looking at the generic List documentation it appears that the order of the items will not be guaranteed.Empirically it always stays the same, but I appreciate this behavior might change in the...

View Article


Where can I add my MyApplication_Startup sub so that it will not get deleted

The NameSpace My is autogenerated, so if I add a Myapplication_startup sub it will sometimes get deleted.  Where can I add the sub so that it will run on startup and not be deleted?

View Article

IList to Generic IList

Hi,I need an result in Generic IList form.IList<ListItem> allFaqs = new List<ListItem>();allFaqs=PSF.ExecuteSQL(query);The above code shows an error as cannot convert type implicitly...

View Article

Issue with Microsoft.Speech.Dll documentation

I was using append dictation following the documentation of AppendDictation of Microsoft.Speech.DLL but then after I met the exception as mentioned here (Question: Microsoft Speech Platform -...

View Article


Encrypt a number to a 6 unique digits code

Hi, I wanted to know how can I encrypt any number to a 6 unique alphanumeric digits using C#? ThanksJassim

View Article

Is Socket async send crippled on Windows 7?

Recently we ran into an interesting problem with .Net Socket and wanted to find out if anyone has seen the same issue as well.We have an application that uses the Socket class to implement a...

View Article

Hex change Low to High order and then covert it into decimal

I have Hex string like 1480D604. Which I need to change order from Low to High 0x04D68014 and then I need to cast it into decimal value. One approach that I can think is first change their order first...

View Article


SignedXml.Checksignature returns false

Trying this with .NetFramework 4.0.I am working on implementatio of SSO using SAML for security. My code need to work as a Identity Service Provider where I need to validate a SAML Assertion generated...

View Article


How to combine string and array of string into one array?

i want to combine string and array of string into new string array. Below is my code which is working however i would like to simplify this if possibleNote that .each is the extension method i have on...

View Article

ITransaction::Commit or ITransaction::Abort was called, and object is in a...

ITransaction::Commit or ITransaction::Abort was called, and object is in a zombie stateWe are getting the above mentioned error in our C++ application that uses OLEDB method to interact with database...

View Article

How to check the signature for a signed XML document with SHA256?

Seems that SignedXml.CheckSignature is working fine only for signed documents using SHA1. I tried this code by adding the algorithm SHA256, and the CheckSignature worked fine but the WIF classes...

View Article

Need .NET Class for Winform Application for Windows 8.1 to take Picture Using...

Thanks for reading my post. We have an existing VB.net Winform application that captures images from the users webcam. We now need this to work on Windows 8.1. I cannot convert this application to a...

View Article


How to get session value in class anywhere ?

Hello guys. I have some sessions in ASP.net as follow .   In file Test.aspx.cs  have some sessionHttpContext.Current.Session["Id"]= obj.USER_MOD_ID;HttpContext.Current.Session["Group"]=...

View Article

MSBuild Portable Class Library problems

HeyI am becoming crazy of this one issue. Could you please help me out?I have an ordinary PCL library (targeting Windows Phone Silverlight 8 and 8.1, .NET 4.5 and WinRT). I try to build it via MSBuild...

View Article


Load specific userControl from DLL

Hi,I have created a DLL class and added two UserControls in it, UC01 and UC02.In my WinForm application, I want to reference to the DLL using:Assembly objAsm =...

View Article

Access denied exception when launching InternetDriverServer (C# Selenium)

Hi,  I've read numerous threads and posts regarding this issue experienced by many users, but have not found a solution.  When I launch my test it runs to the point where it attempts to launch the...

View Article


VB.NET - NAudio Buffer full TCP-Server

Hey, i have a problem with TCP-Server and the library "NAudio". I can send the input from microphone with a TCP-Client but the TCP-Server cannot play, because fast cames the error: "buffer full".I have...

View Article

Events, EventHanders and GenericAttributeProfile notifications (BLE)

Hello all,  I am using the GenericAttributeProfile to communicate with a Bluetooth (Low Energy) radio. A problem I'm seeing is that when the data is received, it is not necessarily in the order sent. I...

View Article

Run a code when form is activated

Hi,I want to run a code when the form is activaed. I added MessageBox.Show("HELLO") in the activated event and then opened the form, then I opened some Form as dialog but when I close I was expecting...

View Article
Browsing all 8156 articles
Browse latest View live


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