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

Query Execution takes lot of memory

HelloAt the time of executing the SQL/VFP query the application memory is taking a lot. If suppose the query result has 80000 records, then while executing the query the application is taking almost...

View Article


Can anyone explain me the whole idea behind Code Access Security (CAS) !

Can anyone explain me the whole idea behind Code Access Security (CAS) and how can you use this to provide security in terms of what has to be executed in our machines ?As far as i have read and...

View Article


HOW CAN I MAKE A MOVİNG THİNG like packman

ı want to do a thing like that. this is in console and ı want to use wasd for move.>first step >next step  > next...                 >ı cant do it ı tried but this...

View Article

“Key not valid for use in specified state” after IIS Reset?

I have had a ton of issues with the System.Security.Cryptography.CryptographicException: Key not valid for use in specified state. error. This seems to only occur now when IIS is reset and I try to...

View Article

How to make a Request to a REST API with a certificate in C#?

Hi  I work in an organisation where we about to make a REST request against an API of some company producing electronic equipment. My colleague has just gone on holiday, and left me with the task. I am...

View Article


How to convert HTML to JPEG Image

Can any one tell me how to convert basic html to image using c#?Regards,Vicky 

View Article

What is the Class used to get XMPPClientConnection()

Hi EveryOne,I was trying to integrate google chat in my asp.net application. What I need is as i have searched so many sites every one is saying use XMPP protocol or Jabber and some lines of code is...

View Article

Is there a flaw in the SerialPort class with Close() method

Hi,I have a problem while working with Serial Port class. I am using this class to communicate with COM port. SerialPort stream = null;  try            { if (stream != null)                {...

View Article


Problems with extending s.ds.am.UserPrincipal class

I have been trying to extend the s.ds.am.UserPrincipal class in VS 2010 VB app as I require access to AD User properties that are not by default a part of the UserPrincipal. This is a new concept to me...

View Article


Help on Event with multiple subscribers

see my comments inside public class Publisher { public event EventHandler OnCalculation; public void Calculate() { if (OnCalculation != null) { OnCalculation(this, new EventArgs()); } } } public class...

View Article

System.Printing Printqueue.AddJob methods consumes memory and doesnt releases...

Hi All,I am Using System.Printing library in my application with .net framework 3.5. When i Print job on any printer using PrintQueue.AddJob memory gets increased and doesnt releases it. Memory is...

View Article

Transactions, Custom Resource Manager, and Multiple Threads (Transaction Not...

A little background:We have a legacy COM component that we use in C# code via interop that updates configuration settings for our software. We needed to have multiple calls to this component to update...

View Article

GDI Drawings freezing after a few minutes

Currently in our program we create bitmaps to use on picture boxes to draw graphs and sketches.  We create a bitmap and then use the creategraphics function to begin drawing, creating a new bitmap and...

View Article


Validation of viewstate MAC failed.

Hello I have a web application running on .net Framework 2.0. I upgraded the framework version to .net framework2.0 SP2 and installed the patch so that postback events in the web application work fine...

View Article

What's the use of "Reference Assemblies"?

I found this blog post about the new "Reference Assemblies" folders that came up with .NET 3.0.However, that blog post didn't get clear on what's the benefit of having these.So, what's the use of...

View Article


Thread.Join hangs seldomly after thread passes its last line

I have console .NET application that performs execution of test automation.Application's main thread has apartments state STA.From the main thread application invokes new thread with STA apartment...

View Article

How do I retrieve the objects that are already loaded in Entity Framework in...

I load up my objects from a query, now, I want to get a Collection<Type> of the objects loaded from my query.  If I access the DbSets, they load up all the data I do not want.  Is there a way to...

View Article


Getting the error - "There is an error in XML document (36, 12)"

Did any one got similar issue when deserializing an XML file? Any help?ExceptionInnerException = {"Attempt by method...

View Article

OLE32.dll access violation

Not sure whether this is in the right place, but here goes:-We have an ASP.NET application running on IIS 7 (Windows 2008 R2). It is a 32-bit application, and accesses SQL Server databases, sometimes...

View Article

Fast way to enumerate forest and build domain trees?

I need to build a tree of domains in a forest. So far I have used the following code: using System.DirectoryServices.ActiveDirectory; ... List<Domain> domains = new List<Domain>(); // flat...

View Article
Browsing all 8156 articles
Browse latest View live


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