Strings and their memory utilization
I have two questions about strings1> When we pass string as a parameter, and if the same string value is getting passed to different methods, and since strings are immutable, will .Net run time...
View ArticleComboBox bug? SelectedValueChanged of ComboBox(binding to BindingList)...
ComboBox is binding to BindingList<T>. Repro step:1. add item to empty BindingList<T> (click Add button)2. clean BindingList<T> (click Clean button)3. add item to empty...
View ArticleProgramming
I am a fresher in the programming field. While coding i get much more confused about what to write what not to... would anyone can suggest about how to code efficiently?? please do help me out.
View ArticleRegarding PEX
I am using VS 2010(.NET FW 4). When I go to "Run Pex", I am not able to see the test units made by Pex. Along with that I am getting these two errors again & again-1....
View ArticleEvents stops firing after about 40 minutes in class library.
Events stops firing after about 40 minutes in class library.I have a Taskbar application that uses a Class Library that I created that responds to Events from a Com Object and responds back to a "Are...
View ArticleUnicode string compare problem
I face string compare problem my code is like thisvar itemCategory = _itemCategoryDa.ReadAll().Any(m => m.ItemCategoryName.Equals(model.ItemCategoryName, StringComparison.Ordinal));and it return...
View ArticleIFsrmClassificationManager EnumFileProperties slow first time
Hi,I'm attempting to classify a file on disk immediately using the EnumFileProperties method of IFsrmClassificationManager.When I create a new instance of FsrmClassificationManager object and call...
View ArticleMultithreading and Datatable
Hi,I'm building an application which uses a datatable to hold some information.The datatable is bound to a datagridview and it is constantly being updated by multiple threads.Each thread is responsible...
View ArticleCannot access a disposed object. Object name : System.Net.Mail.MailMessage
Hi,I am trying to send email message in C# using this MSDN article:http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient(v=vs.110).aspxbut I am getting this error:Cannot access a disposed...
View ArticleTrouble with Powershell.
What is the best forum to file PowerShell problems?-------------------------------------------------------------------------Problem in short:Using Set-PrinterProperty i get a "read-only" error when...
View ArticleAntiForgeryToken not working in IE9
hi Experts,I am developing web application in asp.net mvc 5. I am using @Html.AntiForgeryToken() inside @using (Html.BeginForm()) tag. I am also using ValidateAntiForgeryToken attribute against...
View ArticleHow to get the asp.net apps v2.0.50727 performance counter from C++
How to get the asp.net apps v2.0.50727 performance counter from C++ using COM interface?Just don't know the Class name for 'asp.net apps v2.0.50727 'Anyone know?
View ArticleHandling "Server does not support secure connections" using an...
I would like to attempt to send mail via SSL first, and then only if that fails, revert back to EnableSsl = false and try again. I would prefer to check the exception for a StatusCode that indicates...
View ArticleHow to apply rotate transform for Metafile?
Hi,I tried to rotate the Metafile to 270 or 180 degree but it does not apply the rotate transform for Metafile. The blank image was return after applying the rotate transform to Metafile. And also I...
View ArticleASP.NET ScriptManager and ToolkitScriptManager do not work together
I read some articles about ASP.NET ScriptManager and ToolkitScriptManager but I dont find the solution for my problem. I have a webapplication with AJAX updatepanel which is working fine. Now I want...
View ArticleMicrosoft OCR Library for Windows Runtime on a Web Application
Hi there,There is a good OCR library from Microsoft that's been recently released.I need to use that library in a web application but it looks like it can only be used by windows 8 and windows phone 8...
View Articledelete a file like jpg in window host with asp and c#
i want to delete a file in plesk widows host with my asp page. i tried that in visual studio and local host.that worked.but when i uploaded my site on host and tried that, i got this error...
View ArticleDesktop App: Directory.Exists returns false but new FileStream inside it works?
Hi,I have a weird case with one of our deployments. The application is a Desktop .NET 4 Client Profile Winforms app that is usually started from a network share. During startup, our application does a...
View ArticleFileSystemWatcher high cpu load when no changes happen to the monitored...
My case is the following:Files are creating inside a directory by some process (about 10 files per minute with max file size 5MB each). Lets call this folder MYROOT.That files need to be moved and...
View ArticleBindingList does not propagate property information in ListChanged event for...
If I have BindingList(Of T) and T implements INotifyPropertyChanged, every time I raise T.PropertyChanged event with property name, BindingList converts it to PropertyDescriptor, and I get this...
View Article