C# installed but closes immediately whenever I want to open the program
C# installed but closes immediately whenever I want to open the program. I am running Windows 7 and a clean install of VS C# 2010 has been performed prior to trying. Whats wrong?
View ArticleSystem.AccessViolationException unhandled by catch exception statement
I have a legacy C++ dll used as interop in C# application. I used following code block and thought it should catch all exceptions. However, I am seeing System.AccessViolationException unhandled in the...
View ArticleUsing block
DbCommand dbCommand = null; using (dbCommand = GetDbCommand(db, sql)) { FillUpdateCommandParams(ref db, ref dbCommand, entity);}Will dbcommand be disposed at the end even though i am passing it by...
View ArticleXML Document
public static nonpublicExecutionReport xmlToObj(String xmlData) { var serializer = new XmlSerializer(typeof(nonpublicExecutionReport)); var stringReader = new StringReader(xmlData); var obj =...
View ArticleUrgent: Good books for WCF & MVC
Hello,I got laid off from my company and I am in 'looking for job' pool now. I have been working on C#/ MS SQL Server / SSRS and WPF & ASP.Net environment and did not get any chance to learn new...
View ArticleHelp with Explorer context menu (adding submenu) c#
Im looking for C# code , where i could see how can i programmatically in c# add submenu into windows explorer context menu (right/click menu). Post me please any codes or anything else what would help...
View ArticleRed-Gate ANTS memory profiler
Profiler snapshot is not returning consistent results. One snapshot showed an object in gen1, but another snapshot showed the same object in gen2.Anonymous
View ArticleHow to acces a webservice data(SOAP)
Hi, I have a requirement that , access & download all the information from a database usingsoap web service from the following site:-http://healthindicators.gov/Developers/, and write it into...
View ArticleC# - Issue with extended classes and base methods
I have a scenario where I am working with a library from another department in my company that I cannot just change (otherwise it could cause problems later when they release upgrades), and I'm trying...
View ArticleC# Coding help
I am a novice when it comes to programming, but do have a slight understanding of how. I read a lot of C# books and patterns books, and I am stumped on how to perform something. So basically what I am...
View Articledebugger nops?
HiWhen doing a debug build and looking at the generated il using ildasm there are a lot of 'nop' statements that seem to do nothing.Am I correct in assuming they are used by the debugger to inject...
View ArticleMicrosoft TechNet Wiki Guru - Winners for August!!
The results for August's TechNet Guru competition have been posted!http://blogs.technet.com/b/wikininjas/archive/2013/09/11/technet-guru-awards-august-2013.aspx Congratulations to all our new Gurus for...
View Articlehow to remove event by action delegate
Hi,I am not able to remove event handler by action delegate. If I click on button1, no run time error appears, but I still have message 'a'.Thanks for help private void button1_Click(object sender,...
View ArticleAdditional False Bytes, RS-232 ... C#, Visual Studio 2008
Given this code for transmit: //------------------------------ private void SerialPortSendBytesViaThread(UInt16 uiModbusReadWriteCategory, byte[] abyBuf, int iNumOfBytes) {...
View ArticleWinForm Application Login Process
Hi guysI am looking to build a login process for my winform application.The process should:1. Handle user name and password based on AD user name and password2. Handle form authorization/ security...
View ArticleC# bindings + MVPVM framework - overhead assessment
Hi,I have started a project in Visual Studio C# without bindings, and without official framework because my project manager said it was OK to start without previous knowledge in C# (I know very well...
View Articlecreate connect-server type powershell cmdlet
We use a product called papercut to handle printing for students and staff, and i'm wanting to create a powershell module that contains cmdlets that map to functions that are exposed by their Api....
View ArticleJSON in C#
Hi,Just a simple and fundamental question:JSON is the same as XML in that it is a hierarchical data structure, the difference is simple the syntax. C# offers XmlDocument, XmlElement,...
View ArticleSystem.Net.Mail.SmtpException occurs randomly while sending emails C# MVC
Hi,I am facing a strange problem. I have a small application that sends email to the specified user. When the email is sent, one at a time after an interval of few minutes(1 min or more), the emails...
View ArticleUtility that shuts down computer?
I need to create a small app (console or Windows) that automatically shuts off the computer, no questions asked. The OS can range from WinXP to Win 7.We have some laptops that will be tested by a few...
View Article